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

Quiz
•
Computers
•
8th - 10th Grade
•
Hard
Henry Sanderson
Used 30+ times
FREE Resource
35 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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 Quizizz
30 questions
BCHS Y9 Python Topic 6 Quiz

Quiz
•
9th - 12th Grade
30 questions
Python Beginner

Quiz
•
6th - 12th Grade
30 questions
Python Basics Quiz

Quiz
•
10th Grade
30 questions
Python Test 1

Quiz
•
6th - 8th Grade
35 questions
Strings In java

Quiz
•
9th - 10th Grade
30 questions
PYTHON AI

Quiz
•
9th Grade
30 questions
Python (Week 7)

Quiz
•
9th Grade
30 questions
Year 8 Assessment review

Quiz
•
8th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade