Switch case

Switch case

8th - 9th Grade

10 Qs

quiz-placeholder

Similar activities

LA1.C1: Introduction to Small Basic

LA1.C1: Introduction to Small Basic

9th Grade

15 Qs

Quiz Jelajah Rupiah NTT

Quiz Jelajah Rupiah NTT

1st - 12th Grade

12 Qs

PSR @ Bowen

PSR @ Bowen

7th - 10th Grade

8 Qs

WJEC GCSE ICT Unit 1 E-Mail

WJEC GCSE ICT Unit 1 E-Mail

9th - 10th Grade

13 Qs

Scratch

Scratch

KG - Professional Development

10 Qs

Cyber Security KS4

Cyber Security KS4

8th - 12th Grade

15 Qs

CSS9_Q3M2L1_QUIZ3

CSS9_Q3M2L1_QUIZ3

9th Grade

10 Qs

Switch case

Switch case

Assessment

Quiz

Computers, Education

8th - 9th Grade

Practice Problem

Hard

Created by

Learn CSharp with Sharpi

Used 32+ times

FREE Resource

AI

Enhance your content in a minute

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

10 questions

Show all answers

1.

FILL IN THE BLANK QUESTION

2 mins • 1 pt

By the ? keyword, the other cases will not be executed and the program continues executing the code after the switch case if there is more code.

Which is the "?" keyword?

2.

FILL IN THE BLANK QUESTION

1 min • 1 pt

The code inside the ? case will be executed if the expression doesn't correspond to the other cases.

Which is the "?" case?

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What we can use, if we want to execute certain code in situation, that the expression doesn't corresponds to the other cases that we have?

The default case

The break case

If case

We can't execute that code

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

switch

Switch

if

default

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

No

Yes

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Can you use if case instead of switch case?

Yes

No

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Is that correct?

switch (number < 10) ...

Yes

No

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?