Search Header Logo

Python Basics Quiz

Authored by Zubaida Al-Soudi

Computers

9th Grade

Used 4+ times

Python Basics Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

55 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which line of code prints Hello world! as one line of output?

print(Hello world!)

print("Hello", "world", "!")

print("Hello world!")

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which line of code correctly obtains and stores user input?

input()

today_is = input

today_is = input()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is displayed by print("You entered:", name) if Sophia enters her name?

You entered:

You entered: Sophia

You entered: Sophia!

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which can be used as a variable name?

median

class

import

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why is 2nd_input not a valid variable name?

it is a keyword

it starts with a digit

it is too long

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which would be a good name for a variable storing a zip code?

z

var_2

zip_code

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a string?

Hello!

29

"7 days"

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?