Python procedures and functions

Quiz
•
Computers
•
8th - 10th Grade
•
Hard
Henry Sanderson
Used 31+ times
FREE Resource
35 questions
Show all answers
1.
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 []:
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What would the output be from the program shown here? (assuming that the user enters "John" and "Smith"
John
Smith
John Smith
Error
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What would the output be from this program?
Error
Hello
Hello, World
World
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the difference between a procedure and a function?
They are the same thing
A procedure passes values back out to the program, a function does not
A function passes values back out to the program, a procedure does not
A function can run without being called
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the output of this program be when it is run?
Nothing
Hello, world
It will generate an error
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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 CHOICE QUESTION
30 sec • 1 pt
What would the output be for the following program if the user enters 4 and 6?
10
14
16
error
Create a free account and access millions of resources
Similar Resources on Wayground
40 questions
Python - Lists, Dictionaries and Loops

Quiz
•
9th - 12th Grade
40 questions
Semester Final 2025

Quiz
•
10th Grade - University
38 questions
Python Fundamentals Concept Checkup

Quiz
•
9th Grade - University
32 questions
Arduino

Quiz
•
7th - 12th Grade
35 questions
Scratch coding

Quiz
•
7th - 9th Grade
30 questions
Latihan soal Akhir Semester satu

Quiz
•
9th Grade - University
30 questions
PYTHON AI

Quiz
•
9th Grade
35 questions
Unit 9.1 - Textual Programming

Quiz
•
8th Grade - University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
18 questions
Company Logos

Quiz
•
6th - 8th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade