Gateway Level 3 Python Quiz 3

Gateway Level 3 Python Quiz 3

9th - 12th Grade

15 Qs

quiz-placeholder

Similar activities

Rẽ nhánh 3

Rẽ nhánh 3

1st Grade - University

20 Qs

General Python year 10

General Python year 10

9th Grade - University

20 Qs

Exit Ticket 1/17

Exit Ticket 1/17

9th - 12th Grade

12 Qs

python quiz

python quiz

12th Grade

20 Qs

Python Basics

Python Basics

KG - University

15 Qs

The Weald Computer science

The Weald Computer science

11th Grade

11 Qs

python String and comment

python String and comment

3rd Grade - University

13 Qs

Scope of Variables in Python

Scope of Variables in Python

1st Grade - Professional Development

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