Gateway Level 3 Python Quiz 3

Gateway Level 3 Python Quiz 3

9th - 12th Grade

15 Qs

quiz-placeholder

Similar activities

Subroutines - Procedures & Functions

Subroutines - Procedures & Functions

9th - 12th Grade

20 Qs

Python L5

Python L5

6th Grade - University

10 Qs

CS Unit 1, Programming part 1: Sequences

CS Unit 1, Programming part 1: Sequences

9th - 12th Grade

18 Qs

Python Functions

Python Functions

12th Grade

15 Qs

PBO

PBO

12th Grade

15 Qs

Procedures and Functions

Procedures and Functions

10th Grade

20 Qs

Python turtle year 8 assessment

Python turtle year 8 assessment

7th - 9th Grade

20 Qs

Python (Selection)

Python (Selection)

8th - 10th Grade

13 Qs

Gateway Level 3 Python Quiz 3

Gateway Level 3 Python Quiz 3

Assessment

Quiz

Computers

9th - 12th Grade

Hard

Created by

Samuel Markham

Used 4+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the built in function to get user input in Python?

read_input()
user_input()
get_input()
input()

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What Python keyword is used to create functions?

create
def
function
return

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the meaning of a parameter in Python functions?

A parameter in Python functions is a keyword that defines the type of data that can be passed into a function.
A parameter in Python functions is a variable that is used to receive data from a function.
A parameter in Python functions is a variable that is used to pass data into a function.
A parameter in Python functions is a variable that is used to store the return value of a function.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the meaning of a argument in Python functions?

A variable used within a function
A keyword used to define a function
A data type used in Python functions
A value passed to a function when it is called

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the short hand to update a python variable by one?

++ 1

+= 1

-= 1

*= 1

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What mode is used to create a new file in Python when the file does not exist?

r
a
w
x

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What mode is used to write to a file in Python without overwriting the contents?

x
w

a

r

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?