Search Header Logo

variables , if … else, while and loop for_HKICO_Python

Authored by Sỹ Minh

Computers

12th Grade

Used 2+ times

variables , if … else, while and loop for_HKICO_Python
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

27 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of the following code?

A. JamesJamesJamesJamesJamesJames

B. JamesJamesJamesJamesJames

C. JamesJamesJamesJames

D. JamesJamesJames

E. Error: invalid syntax

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

A. 20

B. 21

C. 10

D. 30

E. None of the above

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Media Image
Media Image
Media Image
Media Image

E. It doesn’t generate any output.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What gets printed?

A. 4

B. 3

C. 2

D. 1

E. 7

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

A. 2, 4, 6

B. 0, 1, 2, 4, 5, 6

C. 0, 1, 4, 5

D. 0, 1, 4, 5, 6, 7, 8, 9

E. 1, 2, 4, 5, 6

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Consider the following code,
What is the output?

A. 1

B. 2

C. 3

D. 4

E. 5

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What gets printed as the output of the below code?

A. 1

B. 2

C. 3

D. 4

E. None of the above

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?