Subroutines: Python Basics

Subroutines: Python Basics

12th Grade

15 Qs

quiz-placeholder

Similar activities

CS Python Fundamentals Quiz 7 Review

CS Python Fundamentals Quiz 7 Review

9th - 12th Grade

10 Qs

TN +2 -LESSON1 FUNCTIONS

TN +2 -LESSON1 FUNCTIONS

12th Grade

20 Qs

Test on Python Function

Test on Python Function

11th - 12th Grade

12 Qs

Python Definitions

Python Definitions

10th - 12th Grade

12 Qs

Python Review 2023-01-12

Python Review 2023-01-12

9th - 12th Grade

10 Qs

Unit 2 Programming Quiz

Unit 2 Programming Quiz

9th - 12th Grade

20 Qs

p5.js Week1 PREtest

p5.js Week1 PREtest

7th - 12th Grade

14 Qs

Quiz Review

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