Java Programming Quiz for swapna

Java Programming Quiz for swapna

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

Quiz de Programação e Sustentabilidade

Quiz de Programação e Sustentabilidade

10th Grade - University

15 Qs

Java programming

Java programming

University

20 Qs

JAVA-LAB-VIVA-2

JAVA-LAB-VIVA-2

University

15 Qs

Java1 - Week2

Java1 - Week2

University

25 Qs

Multiple-Choice Quiz on Java Arrays

Multiple-Choice Quiz on Java Arrays

University

15 Qs

First Meet Sains Data 2022

First Meet Sains Data 2022

University

20 Qs

Java Programming Quiz for swapna

Java Programming Quiz for swapna

Assessment

Quiz

Other

University

Hard

Created by

A Sanjib Kumar Patro

Used 1+ times

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?