Search Header Logo

Switch Statement in C#

Authored by hafizah Hafizah

Computers

University

Used 66+ times

Switch Statement in C#
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The data type of the variable in the switch and value of a case must not be of the same type.

True

False

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The _____ in switch statement is used to terminate the current sequence.

default

goto

break

jump

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The default statement is optional and it can be used anywhere inside the switch statement.

True

False

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Multiple "default" statements are allowed in switch case statement

True

False

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A nested switch statement is allowed.

True

False

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Switch statement can not be combine with if..else in one coding

True

False

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

We can have any number of case statements within a switch

True

False

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?

Discover more resources for Computers