Gateway Level 3 Python Quiz 2

Gateway Level 3 Python Quiz 2

9th - 12th Grade

20 Qs

quiz-placeholder

Similar activities

Programming Quiz 4

Programming Quiz 4

9th - 10th Grade

20 Qs

Iteration

Iteration

11th Grade

20 Qs

Python

Python

11th Grade

20 Qs

XII Unit1: Control Structures in Python

XII Unit1: Control Structures in Python

12th Grade

21 Qs

Python_Exam

Python_Exam

6th - 10th Grade

15 Qs

python

python

12th Grade

15 Qs

Python Fundamentals Quiz

Python Fundamentals Quiz

11th Grade

15 Qs

PY4E chapter 2 quiz

PY4E chapter 2 quiz

8th - 9th Grade

20 Qs

Gateway Level 3 Python Quiz 2

Gateway Level 3 Python Quiz 2

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Samuel Markham

Used 2+ times

FREE Resource

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.

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?