Java Programming Quiz

Java Programming Quiz

University

20 Qs

quiz-placeholder

Similar activities

Javapie Quiz

Javapie Quiz

University

20 Qs

ambot para asa ni

ambot para asa ni

University

20 Qs

Tech quiz Round 1

Tech quiz Round 1

University

15 Qs

Java Booleans FQ1

Java Booleans FQ1

University

20 Qs

Test Faham?

Test Faham?

12th Grade - Professional Development

23 Qs

round 2

round 2

University

25 Qs

execption handling

execption handling

University

17 Qs

MIDTERM EXAM

MIDTERM EXAM

University

18 Qs

Java Programming Quiz

Java Programming Quiz

Assessment

Quiz

Other

University

Hard

Created by

A Sanjib Kumar Patro

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output? java int a = 10; System.out.println(a++ + ++a);

21

22

20

23

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a valid Java keyword?

static

Integer

this

final

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output? java int x = 5; int y = ++x * 2 + x--; System.out.println(y);

13

18

16

12

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of the following? java String s1 = "Java"; String s2 = new String("Java"); System.out.println(s1 == s2);

true

false

error

null

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which concept allows you to use the same method name with different parameters?

Inheritance

Polymorphism

Encapsulation

Abstraction

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be printed? java String str = "abc"; str.concat("d"); System.out.print(str);

abcd

abc

Error

null

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will the output be? java int[] a = {1, 2, 3}; System.out.println(a.length);

3

2

4

Error

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?