Java Programming I 3

Java Programming I 3

University

17 Qs

quiz-placeholder

Similar activities

UTS pemrograman web lanjut

UTS pemrograman web lanjut

University

20 Qs

Quiz 9: Pointer

Quiz 9: Pointer

University

12 Qs

JAVA Basics Quiz

JAVA Basics Quiz

University

20 Qs

Java Programming

Java Programming

University

20 Qs

Computer Programming Final Exam Part 2

Computer Programming Final Exam Part 2

University

20 Qs

Control Statements - Java

Control Statements - Java

University

15 Qs

Java Operators

Java Operators

University

14 Qs

Algoritma + Pascal

Algoritma + Pascal

University

20 Qs

Java Programming I 3

Java Programming I 3

Assessment

Quiz

Computers

University

Hard

Created by

Sherif Abdelhamid

Used 19+ times

FREE Resource

17 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Select the correct option :


The _____ in switch statement is used to terminate the execution of the rest of the code in the switch block.

default

case

break

2.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

State True or False :


It is not necessary to break the last case in a switch block.

True

False

3.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Select the correct option:


_______________ is a situation that occurs when we miss out break statement with switch cases.

Fall through

Default

Desired output

No output

4.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Is that correct?

switch (number < 10) ...

Yes

No

5.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Can you use if case instead of switch case?

Yes

No

6.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Can I make a switch case without inserting code to be executed in the default case?

No

Yes

7.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What is the keyword that we use, when we want to have different cases based on the expression's value?

switch

Switch

if

default

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?