Search Header Logo

Quiz 1: Basic Python and Arithmetic (Codehs)

Authored by Bryan Campbell

Computers

10th Grade

Used 10+ times

Quiz 1: Basic Python and Arithmetic (Codehs)
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

40 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

On which line will this program call an error in the console?

Line 1

Line 2

Line 3

Line 4

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What will be printed to the screen when the following code snippet is run?

<class str>

120

1210

<class int>

An error will occur

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

In Python, what is the data type of the literal value 'Hello'?

int

float

string

None

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What symbol is used in python to assign values to a variable?

=

/

*

==

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

On which line will this program call an error in the console?

Line 1

Line 2

Line 3

Line 4

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What Python function lets the user enter an response to a question via the keyboard?

answer()

open()

print()

input()

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

On which line will this program call an error in the console?

Line 1

Line 2

Line 3

Line 4

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?