Java Programming I 3

Java Programming I 3

University

17 Qs

quiz-placeholder

Similar activities

Mobile CSP Unit 4 Test Prep

Mobile CSP Unit 4 Test Prep

KG - Professional Development

17 Qs

Kuis Dasar-Dasar PPLG

Kuis Dasar-Dasar PPLG

University

20 Qs

Java Quiz - 1

Java Quiz - 1

University

15 Qs

tableur

tableur

University

18 Qs

Infrastructure (Network)

Infrastructure (Network)

University

20 Qs

TLJ

TLJ

1st Grade - University

15 Qs

Memahami PBO

Memahami PBO

11th Grade - University

15 Qs

ITMajor1 & IntroSoftEng- Prelim Examination

ITMajor1 & IntroSoftEng- Prelim Examination

University

20 Qs

Java Programming I 3

Java Programming I 3

Assessment

Quiz

Computers

University

Hard

Created by

Sherif Abdelhamid

Used 20+ times

FREE Resource

AI

Enhance your content

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

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

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?