Search Header Logo

Python - Branching and Looping - 1

Authored by Lathika Valavan

Computers, Professional Development

6th Grade - Professional Development

Used 13+ times

Python - Branching and Looping - 1
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 • 5 pts

How do we differentiate the body of the loop from the rest of the code?

Writing loop above.

Writing loop below the whole code.

Using proper indentation.

All are correct.

2.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

a, b = 12, 5

if a + b: print('True')

else: print('False')

True

False

3.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

Media Image

Given the nested if-else structure below, what will be the value of x after code execution completes

2

0

3

4

4.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Media Image

Given the nested if-else below, what will be the value x when the code executed successfully

0

4

2

3

5.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Media Image

Mark the output:

cpp

learnpython

java

None

6.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Media Image

What is the output?

Or learning python?

Or learning python 4 sona

Am I learning python?

Or learning python? Or learning python 4 sona

7.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Media Image

What is the output?

You rock

Not interested

None

Error

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?