Java Programming Quiz

Java Programming Quiz

University

37 Qs

quiz-placeholder

Similar activities

Demoo

Demoo

University

32 Qs

Computer Programming (Mid-term Exam)

Computer Programming (Mid-term Exam)

University

40 Qs

Java1-Week4

Java1-Week4

University

37 Qs

Computer Science Quiz

Computer Science Quiz

University

32 Qs

c-debugging

c-debugging

University

40 Qs

Unit_1-team1 quiz

Unit_1-team1 quiz

University

39 Qs

PRE-TEST PTIT II T.A. 2022/2023

PRE-TEST PTIT II T.A. 2022/2023

University

40 Qs

Chapter 2. CAD/CAM Systems in CIM Environment

Chapter 2. CAD/CAM Systems in CIM Environment

University - Professional Development

38 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?