Understanding Conditional Statements

Understanding Conditional Statements

11th Grade

15 Qs

quiz-placeholder

Similar activities

ASSERTION

ASSERTION

11th Grade

15 Qs

Accounting Vocabulary Check

Accounting Vocabulary Check

University

16 Qs

Sentence Connectors

Sentence Connectors

9th - 12th Grade

16 Qs

CONDITIONAL SENTENCE QUIZ

CONDITIONAL SENTENCE QUIZ

11th Grade

20 Qs

Fundamental C Programming

Fundamental C Programming

University

14 Qs

An Accounting Department

An Accounting Department

University

15 Qs

Second and third conditionals

Second and third conditionals

1st - 12th Grade

17 Qs

Rainbow Six: Siege

Rainbow Six: Siege

4th Grade - Professional Development

10 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?