Understanding Conditional Statements

Understanding Conditional Statements

11th Grade

15 Qs

quiz-placeholder

Similar activities

conditionals mix

conditionals mix

10th Grade - University

19 Qs

Research Terms

Research Terms

9th - 12th Grade

17 Qs

The Breakers of Limitations from Gurung Mali

The Breakers of Limitations from Gurung Mali

12th Grade

12 Qs

Argumentative Writing

Argumentative Writing

8th - 12th Grade

15 Qs

Research Vocabulary

Research Vocabulary

9th - 12th Grade

20 Qs

Explanation Text

Explanation Text

8th - 11th Grade

10 Qs

B1+ Vocabulary List 2 (Fall) - Words 1-10

B1+ Vocabulary List 2 (Fall) - Words 1-10

University

10 Qs

Conditional Statements

Conditional Statements

12th Grade

12 Qs

Understanding Conditional Statements

Understanding Conditional Statements

Assessment

Quiz

English

11th Grade

Hard

Created by

Sarah Williams

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

If Sally ... her leg, she ... on holiday

wouldn't have broken - had gone

didn't break - would go

won't break - goes

hadn't broken - would've gone

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

We ... a cake if we ... to buy some eggs.

made - wouldn't forget

would've made - hadn't forgotten

had made - would have forgotten

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

If Roberto ... some English, he ... the job.

would've known - had got

knew - got

had known - would've got

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

If you'd lived here, you ... have enjoyed it.

won't

must

might

should

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the purpose of using else if in an if-else statement?

To skip the initial 'if' condition and directly move to the 'else' condition

To terminate the if-else statement and move to the next block of code

To add additional conditions to be checked if the initial 'if' condition is not met.

To repeat the initial 'if' condition with different parameters

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

When is the code inside an if statement executed?

When the condition specified in the if statement is true.

When the program encounters a syntax error.

When the condition specified in the if statement is false.

When the code outside the if statement is executed.

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the difference between the if-else statement and the switch statement?

The if-else statement can only be used for single condition checks, while the switch statement can handle multiple conditions.

The if-else statement can only handle boolean conditions, while the switch statement can handle any type of condition.

The if-else statement is based on a condition, while the switch statement is based on a value.

The if-else statement is more efficient than the switch statement in terms of execution speed.

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?