Search Header Logo

Python first steps Quiz 1

Authored by Tom Care

Computers

8th Grade

Used 7+ times

Python first steps Quiz 1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

24 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Everything that we want do display in a print() function must:

be inside parentheses - ()

quotation marks - ""

be inside single quotation marks - ''

be inside hash marks - #

2.

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")

3.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

The output of the program

x = 4

x = "Sally"

print(x)

four

Saly

Sally

4

4.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Media Image

What is the name of the variable in this program?

print

colour

input

" "

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

equals =
plus + 
forward slash /
asterisk *

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The rules for putting together a correct computer language statement are called Syntax. Therefore if these rules are broken e.g. no brackets, speech marks etc. it is a...

Syntax error

Logic error

Code error

Run time error

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the syntax error with this code:

print”Hello World”

No brackets around "Hello World"

Speech marks are not needed

Colon is not needed

print is spelt incorrectly

Print has a capital P

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?