Java Decision Making Quiz

Java Decision Making Quiz

Professional Development

25 Qs

quiz-placeholder

Similar activities

PH NH CSC Voice Quiz #4

PH NH CSC Voice Quiz #4

Professional Development

20 Qs

Coding Assignment

Coding Assignment

Professional Development

30 Qs

Keselamatan Operasi

Keselamatan Operasi

Professional Development

21 Qs

got7 igot7

got7 igot7

1st Grade - Professional Development

22 Qs

SJIT ECE ZOHO PRACTICE TEST

SJIT ECE ZOHO PRACTICE TEST

Professional Development

30 Qs

History/Career Review

History/Career Review

Professional Development

22 Qs

LATIHAN 5 - OTBC 2023 "IPO & PPMS"

LATIHAN 5 - OTBC 2023 "IPO & PPMS"

Professional Development

20 Qs

PENGELASAN SMAW DASAR (PELATIHAN LSP)

PENGELASAN SMAW DASAR (PELATIHAN LSP)

Professional Development

21 Qs

Java Decision Making Quiz

Java Decision Making Quiz

Assessment

Quiz

Other

Professional Development

Medium

Created by

mukilan selvaraj

Used 2+ times

FREE Resource

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What keyword is used to start a conditional statement in Java?

case

if

for

loop

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a relational operator?

+=

==

&&

||

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code? int a = 5, b = 10; if (a > b) System.out.println("A is greater"); else System.out.println("B is greater");

A is greater

B is greater

No output

Compilation error

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following best describes a nested if statement?

If statement inside a loop

If statement inside another if statement

If-else inside a function

If statement with multiple conditions

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of 10 % 3 in Java?

1

3

10

0

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does && operator do?

OR operation

NOT operation

AND operation

XOR operation

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct syntax for a switch case?

switch {}

case (expression):

switch(expression) { case value: ... }

switch case()

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?