What would the output be for the following program if the user enters 4 and 6?
Subroutines

Quiz
•
Computers
•
9th - 11th Grade
•
Medium
Used 173+ times
FREE Resource
16 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
10
14
16
error
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
If the user inputs "Connolly"into surname and "Luke" into first what would be output?
Error
Connolly Luke
Luke Connolly
Connolly Luke Connolly Luke
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
John wants to create a subroutine in python that will roll a dice. Which is the correct method below?
DEFINE diceroll:INTEGER
def diceroll[]:
def diceroll():
def diceroll:
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Norah wants to print her multiplication equation of 12 x 12. What code should she add below?
print (multiply)
a = 12
b = 12
answer = a * b
print(multiply(12, 12))
print(multiply(12 * 12))
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
"Declaration" refers to...
Storing data in variables
Creating variables
Repeating sections of code
Checking a condition to see which piece of code to run next
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
"Iteration" refers to...
Storing data in variables
Creating variables
Repeating sections of code
Checking a condition to see which piece of code to run next
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A loop within a loop is...
Definite iteration
Indefinite iteration
Nested iteration
Reverse Polish iteration
Create a free account and access millions of resources
Similar Resources on Quizizz
16 questions
Digital Solutions - Algorithms

Quiz
•
11th - 12th Grade
17 questions
Flowcharts and Actuators

Quiz
•
7th - 10th Grade
20 questions
GCSE - Algorithms 1

Quiz
•
9th - 10th Grade
15 questions
Programming terminology

Quiz
•
9th Grade
15 questions
Subroutine

Quiz
•
10th Grade
20 questions
AQA GCSE Computer Science - 3.2.11 Structured programming

Quiz
•
8th - 10th Grade
12 questions
HIGHER Python Subroutines Quiz

Quiz
•
9th Grade
20 questions
Python turtle

Quiz
•
8th - 9th 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
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
8 questions
"Keeping the City of Venice Afloat" - STAAR Bootcamp, Day 1

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

Quiz
•
4th - 9th Grade
20 questions
Distance, Midpoint, and Slope

Quiz
•
10th Grade
20 questions
Figurative Language Review

Quiz
•
10th Grade
27 questions
STAAR English 1 Review

Quiz
•
9th Grade