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 31+ 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
Python Programming End of Unit Assessment

Quiz
•
7th - 9th Grade
31 questions
Python - Variables

Quiz
•
6th - 8th Grade
30 questions
Python 4 topic (циклы)

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

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

Quiz
•
8th - 10th Grade
30 questions
Algorithms, Flowcharts, Scratch & Python

Quiz
•
10th Grade
34 questions
Year 8 Homework 2

Quiz
•
8th Grade
30 questions
Python Basics: Variables and Syntax

Quiz
•
10th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade
Discover more resources for Computers
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
25 questions
Spanish preterite verbs (irregular/changed)

Quiz
•
9th - 10th Grade
10 questions
Identify Slope and y-intercept (from equation)

Quiz
•
8th - 9th Grade
10 questions
Juneteenth: History and Significance

Interactive video
•
7th - 12th Grade
15 questions
Volume Prisms, Cylinders, Cones & Spheres

Quiz
•
8th Grade
8 questions
"Keeping the City of Venice Afloat" - STAAR Bootcamp, Day 1

Quiz
•
9th - 12th Grade
26 questions
June 19th

Quiz
•
4th - 9th Grade