Nested conditions

Nested conditions

8th - 9th Grade

10 Qs

quiz-placeholder

Similar activities

Lesson 11 - Iterative statements

Lesson 11 - Iterative statements

5th - 8th Grade

10 Qs

Lesson 15 - Test 2

Lesson 15 - Test 2

5th - 8th Grade

15 Qs

Coding Quarter #3

Coding Quarter #3

8th Grade

10 Qs

If_&_While_Statments: ICS

If_&_While_Statments: ICS

9th - 12th Grade

8 Qs

python-loops

python-loops

6th - 8th Grade

11 Qs

Python IF Statements

Python IF Statements

9th - 12th Grade

10 Qs

Python Basics Quiz

Python Basics Quiz

6th - 10th Grade

15 Qs

Switch case

Switch case

8th - 9th Grade

10 Qs

Nested conditions

Nested conditions

Assessment

Quiz

Education

8th - 9th Grade

Hard

Created by

Learn CSharp with Sharpi

Used 7+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Choose which conditional statements you can nest:

if and if

switch and switch

for and if/switch

if and switch

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Is true that you can nest how many times you want?

True

False

3.

MULTIPLE SELECT QUESTION

2 mins • 1 pt

Why is not good to overdo the nesting?

Is good to nest how many time you want.

Because the code becomes too long.

Because the code starts losing its readability.

Because it can become confusing.

Because is better to have separated conditional statements.

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which is better, to nest if in switch or if in if and switch in switch?

if in switch

if in if and switch in switch

It doesn't matter

To don't nest

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

In case the expression of the nested if statement is true, but the that of the other "if" is false, will be the code of the nested "if" executed?

Yes

No

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Is it preferred the usage of the nested conditional statements to the single usage of the if and switch case?

Yes, it's better to use nested conditional statements.

No, you use that what you need.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Is that a correct part of the nested conditional statements syntax?


switch if ()

Yes

No

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?