Search Header Logo

Python - Basic Variables, Arithmetic and Display

Authored by Tim Helland

Computers

9th Grade

Used 10+ times

Python - Basic Variables, Arithmetic and Display
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

In Python, which of these assigns an integer to x?

int x = 5

x = 5

x := 5

x == 5

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data type would the value "Hello" be?

int

string

boolean

float

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Python, what is the result of 3+7?

10

37

"3 + 7"

4

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Python, what is the result of "3"+"7"?

10

37

"3 + 7"

4

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Python, which of these displays what is stored in a variable called `name`?

print name

print(name)

echo(name)

printf(name)

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Python, which of these is a boolean value?

"True"

1

True

"False"

false

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of 8-3 in Python?

5

83

-5

3

38

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?