Gateway Level 3 Python Quiz 3

Gateway Level 3 Python Quiz 3

9th - 12th Grade

15 Qs

quiz-placeholder

Similar activities

Grade 8 End of Unit Revision

Grade 8 End of Unit Revision

8th Grade - University

15 Qs

AQA GCSE Computer Science - 3.2.10 Subroutines

AQA GCSE Computer Science - 3.2.10 Subroutines

8th - 10th Grade

20 Qs

Python String

Python String

12th Grade

20 Qs

Python Basics Quiz

Python Basics Quiz

9th Grade

15 Qs

Programming

Programming

9th - 11th Grade

20 Qs

Python Variables

Python Variables

7th - 12th Grade

10 Qs

APCSP CodeHS Unit 3

APCSP CodeHS Unit 3

10th - 12th Grade

20 Qs

Python Lists and Strings

Python Lists and Strings

9th Grade

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