Subroutines: Python Basics

Subroutines: Python Basics

12th Grade

15 Qs

quiz-placeholder

Similar activities

C++ Functions

C++ Functions

10th Grade - University

20 Qs

Python Programming Quiz

Python Programming Quiz

10th Grade - University

20 Qs

AP CSP Functions, Returns, Libraries

AP CSP Functions, Returns, Libraries

9th - 12th Grade

12 Qs

Python Functions

Python Functions

12th Grade

15 Qs

Python 2

Python 2

9th - 12th Grade

10 Qs

G10 CS Functions and Procedures

G10 CS Functions and Procedures

12th Grade

15 Qs

Code.org Unit 3

Code.org Unit 3

9th - 12th Grade

14 Qs

Unit 6 Review

Unit 6 Review

9th - 12th Grade

11 Qs

Subroutines: Python Basics

Subroutines: Python Basics

Assessment

Quiz

Computers

12th Grade

Medium

Created by

Andrew Duckworth

Used 128+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following keywords marks the begining of the function block in Python?

Func

define

def

function

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What term is used to describe data passed into/out of a program?

Variable

Loop

Constant

Parameter

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Leo wants to create a subroutine that will roll a dice. Which syntax is correct?

def dice roll ():

def diceroll ()

def diceroll ():

def diceroll []:

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What would the output be from the program shown here? (assuming that the user enters "John" and "Smith"

John

Smith

John Smith

Error

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What would the output be from this program?

Error

Hello

Hello, World

World

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the output of this program if the user enters "Han" and then "Solo"?

An error

Nothing

first surname

Han Solo

7.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Which of these are types of subroutines?

for loop

function

procedure

while loop

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?