Search Header Logo

Python

Authored by Ngoc Nguyen

Computers

11th Grade

DOK Level 1: Recall covered

Used 3+ times

Python
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

16 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 10 pts

Look at the following code:

age = "23"

age = age + 1

print (age)


What is the result of this code?

23

24

23 + 1

an error message

2.

MULTIPLE CHOICE QUESTION

20 sec • 10 pts

What will be displayed by the following statement:

She said " I went to New York"

print("She said \"I went to New York"")

print("She said "\ I went to New York"\")

print("She said \" I went to New York\"")

3.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What is a variable?

A box(memory location) where you store values
a type of graphics
Data type
a type of memory

4.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

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

equals =
plus + 
forward slash /
asterisk *

5.

MULTIPLE CHOICE QUESTION

30 sec • 10 pts

What will be the output?

name = "Dave"

print ("name")

Dave

'Dave'

name

(name)

6.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Which statement correctly assigns the string "Tanner" to the variable name?

name  = print( "Tanner")
input("Tanner")
name = "Tanner"
name = input("Tanner")

7.

MULTIPLE CHOICE QUESTION

45 sec • 10 pts

The correct way to write a variable in Python?

my_variable = 10
my variable = 10
my_variable is 10
my_variable: 10

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?