Search Header Logo

Python Quiz - Basics & Turtle

Authored by Bowrna Vijayan

Computers, Other

3rd - 8th Grade

Used 14+ times

Python Quiz -  Basics & Turtle
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Guess the Output.

4

5

6

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

x = 5

print(x == 2)

True

False

5

1

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

To convert all the characters of the string to Capital letters,we have to use __________ function.

lower()

upper()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

__________ function starting from 0 by default, and increments by 1 (by default), and stops before a specified number

print()

range()

input()

random()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the keyword needed to repeat code (iterate) in Python?

if

print

input

for

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

for i in range(5):

print(i)

0

1

2

3

4

0

1

2

3

4

5

1

2

3

4

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these functions gives a random integer from a range?

random.randint()

random.choice()

random.sample()

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?