Search Header Logo

Python 1.1

Authored by Hortense Cyr

Computers

10th - 12th Grade

10 Questions

CCSS covered

Used 4+ times

Python 1.1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which Python code segment will display “Hello, world!” on the screen?

display Hello, world!

print("Hello, world!")

print = "Hello, world!"

"Hello, world!"

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the following Python code output?

print ("Hello")

print ("World")

Hello

World

HelloWorld

Hello World

Hello


World

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What type is the following variable?


x = "Hi there"

float

boolean

integer

string

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the following Python program print?


x = "I am"

y = 6

z = "feet tall"


print (x, str(y) + z)

I am 6 feet tall

I am

6

feet tall

I am 6feet tall

x, y + z

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will output when this code is run?


guessLetter = "my favorite programming language"[9]

nothing because I don't have a print command

t

T

i

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What symbol must be used to write a single line comment?

$

<!--

#

?

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will the output be from the following code?
print(Hello world!)

Hello world!
SyntaxError
Hello world
print(Hello world!)

Tags

CCSS.L.2.2C

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?

Discover more resources for Computers