Search Header Logo

Programming constructs & for loops

Authored by Christine Ince

Computers

9th Grade

Programming constructs & for loops
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

An example of Selection in Python is

If

For

While

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

While loop is an example of which programming construct?

Sequence

Selection

Iteration

Variables

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

The following is code contains:

Selection only

Sequence only

Selection and iteration

Iteration only

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

The following is code contains:

Selection only

Sequence only

Selection and iteration only

Selection, Sequence and iteration

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the output of this program if grade = 65?

Distinction

Merit

Pass

Fail

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will the following code display? for x in range(10): print("Hello")

Hello 10 times

Hello 9 times

An error

x 10 times

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will the following code display? for x in range(10): print("Nice")

Nice 10 times

Nice 9 times

An error

x

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?