Search Header Logo

Phase_2 Pre- Python Quiz

Authored by Coding Department

Computers

Professional Development

Used 13+ times

Phase_2 Pre- Python Quiz
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

What is Python?

A type of snake

A web browser

A high-level programming language

An operating system

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which symbol is used to comment a single line in Python?

//

#

/* */

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you print something in Python?

console.print()

echo()

printf()

print()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to assign the value 10 to a variable?

10 = x

x == 10

x = 10

x := 10

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid variable name?

2value

first-name

first_name

class

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of print(2 + 3 * 4)?

20

14

24

9

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What data type is the result of 5 / 2 in Python 3?

int

float

str

bool

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?