Java Programming Quiz for swapna

Java Programming Quiz for swapna

University

20 Qs

quiz-placeholder

Similar activities

ĐỌ NÃO TỪ XA -18/06

ĐỌ NÃO TỪ XA -18/06

University

20 Qs

Trivia Day

Trivia Day

9th Grade - University

15 Qs

D6AD A_DBMS_CA1_Quiz1_24-25

D6AD A_DBMS_CA1_Quiz1_24-25

University

20 Qs

LGS 117: Principle of Account

LGS 117: Principle of Account

University

20 Qs

SIA WEEK 16

SIA WEEK 16

University

20 Qs

PA5 - Resistencia de Materiales (Minas)

PA5 - Resistencia de Materiales (Minas)

University

16 Qs

Test Administrasi Pajak KD 3.1 dan 3.2

Test Administrasi Pajak KD 3.1 dan 3.2

10th Grade - Professional Development

20 Qs

Quiz No. 4 & 5 - One-Way ANOVA and Two-Way ANOVA

Quiz No. 4 & 5 - One-Way ANOVA and Two-Way ANOVA

University

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