Search Header Logo

Python basic commands

Computers

8th Grade

CCSS covered

Used 647+ times

Python basic commands
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a command to have a message appear on the screen?

print

write

msg

input

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Pick the Python command used to let the user type in some data

get

input

int

float

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a Python command word used to indicate we want to work with WHOLE numbers

input

int

float

print

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a Python command word used to indicate we want to work with DECIMAL numbers

input

int

float

print

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a Python command word used to indicate we want to set up a fixed loop

while

print

next

for

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following will print the numbers 5,7,9,11,13 in a column

for counter in range(13):

print(counter)

for counter in range(5,13,2):

print(counter)

for counter in range(5,13):

print(counter)

for counter in range(5,14,2):

print(counter)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a Python command word used to indicate we want to set up a conditional statement

if

when

while

for

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?