Search Header Logo

Quiz 1 - Python

Authored by Joshua Reid

Computers

8th Grade

Used 25+ times

Quiz 1 - Python
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In programming, what is a variable?

A variable is a symbolic name for a storage location that can hold data and whose value can change.
A variable is a command that executes a function.
A variable is a type of programming language.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

How many variables exist in the following code?

Two - Num1 and Num2

Three - if, elif and else

Two - AND, OR

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What would be output if the following code was executed?

Num1 is larger

Num1 is smaller

Both the same

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

In python programming, what does the following code demonstrate?

Selection

Iteration

Variable Assignment

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid variable name in Python?

1variable

variable_name

variable-name

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following would produce an error?

print(7 * 7)

print(7 * "7")

print("7" * "7")

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which is the correct definition for "syntax"

The rules of language

The errors that a program produces

The programming concepts such as variables and selection

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?