Gateway Level 3 Python Quiz 2

Gateway Level 3 Python Quiz 2

9th - 12th Grade

20 Qs

quiz-placeholder

Similar activities

Python Functions

Python Functions

12th Grade

15 Qs

Functions in Python

Functions in Python

9th - 12th Grade

16 Qs

Java switch/for/while

Java switch/for/while

9th - 12th Grade

15 Qs

Year 9 Data Science: Revision

Year 9 Data Science: Revision

9th Grade

20 Qs

Level 3 Python Quiz 4

Level 3 Python Quiz 4

9th - 12th Grade

20 Qs

PSPD & C++ Revision Time

PSPD & C++ Revision Time

12th Grade

17 Qs

Python

Python

11th Grade

20 Qs

Python Fundamentals Quiz

Python Fundamentals Quiz

11th Grade

15 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?