Search Header Logo

Gateway Level 3 Python Quiz 2

Authored by Samuel Markham

Computers

9th - 12th Grade

Used 2+ times

Gateway Level 3 Python Quiz 2
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Python, the escape character owes its name to the fact that it what?

Allows special characters to be printed as is
Allows special characters to be ignored
Allows special characters to be escaped or interpreted differently
Allows special characters to be executed

Answer explanation

The escape character is \
Its lets you include things like quotes inside strings - " Hello \"sam\"!"
It also lets you invoke things like line breaks - \n

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The most important difference between integers and floating point numbers is the fact that what?

Integers are represented in binary format, while floating point numbers are represented in decimal format.
Integers are positive numbers, while floating point numbers can be negative.
Integers are numbers between 0 and 1, while floating point numbers are numbers greater than 1.
Integers are whole numbers without decimal points, while floating point numbers can have decimal points.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the // operator do in Python?

Rounded division

Floor division
Exponentiation
Bitwise OR

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of the following addition in Python?
123 + 0.0

123
0

Error

123.0

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these statements about the order of operations is true?

There is no specific order for performing operations.
Multiplication and division should be performed before addition and subtraction.
Addition and subtraction should be performed before multiplication and division.
Multiplication and division should be performed after addition and subtraction.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the default data type for a Python input?

integer
string
boolean
float

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which statement is correct about Python keywords?

Keywords can be used as variable names in Python.
Keywords are used to define functions in Python.
Keywords are reserved words that have special meanings and cannot be used as variable names.
Keywords are case-sensitive in Python.

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?