Search Header Logo

Python Introduction Quiz

Authored by BITE Department

Computers

8th - 9th Grade

Used 359+ times

Python Introduction Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will the output be from the following code?

print(“Hello world!”)

SyntaxError

“Hello world!”

Hello world!

Print (Hello world!)

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The correct way to write a variable in Python?

myVariable = 10
my Variable = 10
myVariable is 10
myVariable: 10

3.

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

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does this function do?

input()

Opens the CD tray.

Asks the user to type something in.

Displays the word 'input'.

Exits the program.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a variable?

A number such as 25.

Plus, minus, multiply, divide or equals.

An array of text.

A storage location in the program which stores a value.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Gjdk is not a good name for a variable, why?

It starts with a capital letter.

It does not contain any spaces.

There are no vowels.

It's meaningless.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function takes a users input

print()
int()
input()
def

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?