Search Header Logo

Python Quiz

Authored by Ridhaan Mishra

Computers

6th - 8th Grade

Used 10+ times

Python Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How many spaces is an indentation?

2 spaces

3 spaces

4 spaces

5 spaces

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will it print?

num 8

num8

8

nothing

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

How many errors are there in this code?

1

2

3

4

4.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Where can a global var be used? Select all that apply.

They can be used inside a loop

They can be used in a function

They can be used in a conditional

They can be used only in a function.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why is an indentation used in functions?

to make it look cool

to indicate the name of the function

to indicate the block of code in a function

to make it indented

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the result?

3

256

512

256

1

512

1

512

256

512

256

3

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the answer?

23 89

112

xy

x + y

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?