Java Programming Quiz

Java Programming Quiz

University

30 Qs

quiz-placeholder

Similar activities

Understanding Strings and Arrays

Understanding Strings and Arrays

University

32 Qs

C# Skill Review

C# Skill Review

12th Grade - Professional Development

32 Qs

Разработка приложений в C# 1 аттестация

Разработка приложений в C# 1 аттестация

University

25 Qs

OOPs Quiz - Advanced

OOPs Quiz - Advanced

University

25 Qs

C++ Basics

C++ Basics

University

25 Qs

Programming in Java

Programming in Java

University

32 Qs

final round

final round

University

30 Qs

TP-002

TP-002

University

25 Qs

Java Programming Quiz

Java Programming Quiz

Assessment

Quiz

Other

University

Easy

Created by

InfiTechLearn Team

Used 1+ times

FREE Resource

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword is used to create a class in Java?

function

define

class

object

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the size of an int in Java?

2 bytes

4 bytes

8 bytes

Depends on the system

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a Java primitive data type?

int

float

string

char

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the default value of a boolean variable in Java?

true

false

0

null

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the entry point for any Java program?

main()

static void main()

public static void main(String[] args)

start()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these cannot be used for a variable name in Java?

_value

$result

2data

result123

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword is used to inherit a class in Java?

implement

import

extends

inherits

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?