Calling Procedures
Quiz
•
Computers
•
12th Grade
•
Practice Problem
•
Hard
Diana Mousa
Used 8+ times
FREE Resource
Enhance your content in a minute
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which one of the following is NOT an input to this procedure or an output from this procedure?
highGrade
passingGrade
count
testGrade
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What can replace “<missing condition>” so that the procedure will display true if both the temperature is between 80 and 95, inclusive, and it is sunny and will display false if it is raining?
The parameter “a” is the temperature. The parameter “b” is a Boolean, true if it is sunny and false if it is raining.
Examples:
mystery [90, true] would display “Pool Party on Flag Day ”
mystery [90, false] would display “Pool Party is Cancelled”
mystery [100, true] would display “Pool Party is Cancelled”
mystery [95, false] would display “Pool Party is Cancelled”
(a ≤ 80 ≥ 95) AND (b = true)
(a ≥ 80 ≤ 95) AND (b = true)
(a ≥ 80) AND (a ≤ 95) AND (b = true)
(a ≤ 80) AND (a ≥ 95) AND (b = true)
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will the following procedure display where “num” can be any integer (e.g., 0, 1, 2, 3, 4 …) ?
All numbers from 0 to num
All numbers from 0 to num with the exclusion of numbers divisible by 5
All numbers from 1 to num
All numbers from 1 to num with the exclusion of numbers divisible by 5
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will the following call to the procedure display?
stressed
desserts
list1
backronym
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will price contain after running the following code segment?
[4, 8, 2, 12]
[20, 40, 10, 60]
[40, 80, 20, 120]
[20, 80, 10, 120]
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
Random functions
Quiz
•
12th Grade
10 questions
Control y Robótica
Quiz
•
12th Grade
10 questions
HTML Basics Quiz
Quiz
•
1st Grade - University
10 questions
Defensive Design/ Robust Coding
Quiz
•
9th Grade - University
10 questions
AP Computer Science-Quiz 2(G10)
Quiz
•
9th - 12th Grade
10 questions
CMYK and RGB
Quiz
•
9th - 12th Grade
8 questions
Small Basic Mid Point Review
Quiz
•
6th - 12th Grade
10 questions
User Interface Design Practice
Quiz
•
9th - 12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
