Python Programming U1M2

Python Programming U1M2

9th - 12th Grade

11 Qs

quiz-placeholder

Similar activities

Inspire - AI Trivia

Inspire - AI Trivia

11th Grade

10 Qs

OOP 1 Undiksha

OOP 1 Undiksha

12th Grade - University

13 Qs

Empowerment Technologies Quiz 2

Empowerment Technologies Quiz 2

11th Grade

10 Qs

8525 AQA GCSE  3.1.1 Pseudo-code

8525 AQA GCSE 3.1.1 Pseudo-code

10th - 11th Grade

14 Qs

Programs and Variables in Code and Play

Programs and Variables in Code and Play

5th - 9th Grade

7 Qs

B Words GCSE Computer Science

B Words GCSE Computer Science

1st - 10th Grade

15 Qs

After Effect Intoduction

After Effect Intoduction

10th Grade - University

15 Qs

Python Programming U1M2

Python Programming U1M2

Assessment

Quiz

Computers

9th - 12th Grade

Practice Problem

Medium

Created by

Jennifer OKeefe

Used 11+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Function names cannot begin with a number as the first character.

True

False

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

def show_name():

print("Tobias Ledford")


Which code calls the unction in the above code?

show_name.run()

open(show_name)

run show_name

show_name()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A function with 2 integer parameters could start with which definition?

function add_numbers(num_1, num_2):

def add_numbers(num_1, num_2):

def 2_numbers(num_1, num_2):

FUNCTION add_numbers(x,y):

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

def add_num(num_1 = 10):

print(num_1 + num_1)


Choose the correct output of calling the above function using the following code:


add_num()

0

10

20

An error

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Python function return values must be stored in variables.

True

False

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

def add_num (num_1 = 10):

return num_1 + num_1


Choose the correct output of calling the function above using the following code:


print(add_num(100))

20

100

200

An error

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

def add_numbers(num_1, num_2=10):

return num_1 + num_2


Choose the correct output of calling the function above using the following code:


print(add_numbers(100))

100

110

200

Ann error

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?