While and For loop

While and For loop

Assessment

Interactive Video

English

7th Grade

Hard

Created by

Ashu wadhwa

FREE Resource

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What type of statement repeats a block of code as long as a certain condition is true?

For Loop

While Loop

If statement

or operator

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

(i)              What type of statement allows you to skip code or terminate a loop?

None of these

Looping Statements        

 Conditional Statements        

Jump statement

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

(i)              What type of statement are used to specify a code block that executes when none of the preceding conditions in the if and elif statements are true?

if

elif

else

for

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator is used to combine two conditions together to test in Python?

Or operator

if

elif

for

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

(i)              In programming, _____________ statements are used to execute different blocks of code based on specific conditions.

Function

variable

Conditional statement

Loop

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

(i)              What happens when the condition that controls the loop is always true?

(a)  The loop runs only once.

The loop doesn't run at all

An infinite loop is formed.

The loop runs a fixed number of times

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

(i)              What is the variable naming convention where words are separated by underscores called?

Snake Case

camel case

cabab case

none of these

8.

MULTIPLE CHOICE QUESTION

30 sec • Ungraded

Are you enjoying the video lesson?

Yes

No