Java Programming Quiz

Java Programming Quiz

University

30 Qs

quiz-placeholder

Similar activities

JAVA

JAVA

University

25 Qs

JavaScript

JavaScript

University

30 Qs

python programming quiz

python programming quiz

12th Grade - University

26 Qs

Tech CivilWar

Tech CivilWar

University

30 Qs

DEBUGGING

DEBUGGING

University

26 Qs

ACC Quiz

ACC Quiz

University

35 Qs

Python Quiz SE 27/10/2023

Python Quiz SE 27/10/2023

University

26 Qs

Exception Handling Quiz

Exception Handling Quiz

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?