Java Programming Quiz

Java Programming Quiz

University

37 Qs

quiz-placeholder

Similar activities

Data Structures Quiz

Data Structures Quiz

University

37 Qs

Ujian Sekolah Produktif RPL

Ujian Sekolah Produktif RPL

University

40 Qs

Database Systems Final Exam

Database Systems Final Exam

University

40 Qs

Python Programming Quiz

Python Programming Quiz

University

33 Qs

Final Review

Final Review

University

42 Qs

C# Skill Review

C# Skill Review

12th Grade - Professional Development

32 Qs

ACC Quiz

ACC Quiz

University

35 Qs

Javascript - php - oop

Javascript - php - oop

University

40 Qs

Java Programming Quiz

Java Programming Quiz

Assessment

Quiz

Other

University

Hard

Created by

Niveditha N

Used 1+ times

FREE Resource

37 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these is not a Java keyword?

static

volatile

unsigned

native

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the default value of Boolean in Java?

0

null

false

true

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How many times will this loop run? for (int i = 0; i < 10; i++) { if (i == 5) break; }

10

5

4

Infinite

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What's the output of: int[] arr = new int[5]; System.out.println(arr[2]);

Error

Garbage

0

null

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method can return multiple values?

void

int[]

boolean

char

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is immutable in Java?

StringBuffer

StringBuilder

String

char[]

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is true about constructors?

Return type required

Called manually

No return type

Must be static

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?