Java Programming Quiz for swapna

Java Programming Quiz for swapna

University

20 Qs

quiz-placeholder

Similar activities

EMBEDDED SYSTEM DESIGN

EMBEDDED SYSTEM DESIGN

University

20 Qs

OS(II UNIT)

OS(II UNIT)

University

15 Qs

Module 7: Digital Storage Quiz

Module 7: Digital Storage Quiz

University

19 Qs

GRizal Review

GRizal Review

University

20 Qs

Linguistics Quiz 1

Linguistics Quiz 1

University

15 Qs

Fluids and Electrolytes Acid Base Balance

Fluids and Electrolytes Acid Base Balance

University

15 Qs

EL APRENDIZAJE DEL CONSUMIDOR

EL APRENDIZAJE DEL CONSUMIDOR

University

20 Qs

AWT - Kapitel 1

AWT - Kapitel 1

University

23 Qs

Java Programming Quiz for swapna

Java Programming Quiz for swapna

Assessment

Quiz

Other

University

Practice Problem

Hard

Created by

A Sanjib Kumar Patro

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?