Switch Statement in C#

Switch Statement in C#

University

15 Qs

quiz-placeholder

Similar activities

Control Statements - Java

Control Statements - Java

University

15 Qs

Topic 4-2: Multiple if-else and switch-case

Topic 4-2: Multiple if-else and switch-case

University

10 Qs

C Programming quiz 3

C Programming quiz 3

University

10 Qs

Algoritma Pert 4

Algoritma Pert 4

10th Grade - University

10 Qs

Weekly Contest #6 - TechXNinjas

Weekly Contest #6 - TechXNinjas

University

10 Qs

C - Flow Control

C - Flow Control

University

20 Qs

Java Programming I 3

Java Programming I 3

University

17 Qs

C Programming Quiz-5

C Programming Quiz-5

University

10 Qs

Switch Statement in C#

Switch Statement in C#

Assessment

Quiz

Computers

University

Medium

Created by

hafizah Hafizah

Used 64+ times

FREE Resource

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

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?