
Maximum Digit Finder Quiz
Authored by John Streety
Computers
10th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the pseudocode procedure findMaxDigit, which is intended to return the maximum digit in the integer num. For example, if num is 294, findMaxDigit returns 9 because 9 is the maximum digit in 294. What should replace the missing code segment to ensure findMaxDigit works as intended?
num / 10 + 10
num % 10
num * 10
num + 10
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the following function: void drawTriangle () // print a line break after each print statement print "*" print "**" print "***" print "****" end drawTriangle What would happen as a result of calling drawTriangle()?
****
**********
* ** *** ****
* ** *** ****
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the following procedure header: int getSum(int num1, int num2, int num3) Which procedure call is valid?
getSum("A", 96, 95)
getSum(94.5, 96, 95)
getSum(96, 95)
getSum(getSum(92, 93, 95), 96, 95)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the following pseudocode procedure and procedure call: void practicePassing( pass-by-reference int X, pass-by-value int Y) Y = X / 2 // Division symbol uses integer division X = X + 3 print X, Y end practicePassing Int i = 2 Int j = 3 practicePassing( i, j) print i, j What would print as a result of executing the code?
4 1 4 3
4 1 2 3
6 1 6 3
4 1 2 1
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the following pseudocode procedure: void changeTemp( boolean airFlowing) int currentTemp = 68 if (airFlowing = = true) currentTemp = currentTemp + 2 else print “A/C is off” end if end changeTemp What happens for the method call changeTemp(true)?
“A/C is off” is printed
An error prevents it from executing
The variable currentTemp is increased to 70
“A/C is off” is printed and the variable currentTemp is increased to 70
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which pseudocode procedure is used to draw a circle on a coordinate grid?
drawSquare
drawCircle
drawLine
drawRectangle
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are the coordinates of the center of the first circle in the correct pseudocode?
(3, 6)
(5, 4)
(7, 2)
(2, 3)
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
14 questions
C++ - Loops and Random Numbers
Quiz
•
9th - 12th Grade
10 questions
Программирование алгоритма 8 класс
Quiz
•
1st - 10th Grade
20 questions
Excel էլեկտրոնային աղյուսակներ
Quiz
•
5th - 10th Grade
10 questions
Cyber Security
Quiz
•
1st - 10th Grade
10 questions
Computer in the society
Quiz
•
2nd - 10th Grade
20 questions
Python básico
Quiz
•
9th - 12th Grade
20 questions
Google SketchUp Tool
Quiz
•
KG - University
16 questions
Python programming
Quiz
•
6th - 12th Grade
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
10 questions
Exploring Valentine's Day with Charlie Brown
Interactive video
•
6th - 10th Grade
18 questions
Valentines Day Trivia
Quiz
•
3rd Grade - University
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
10 questions
Valentine's Day History and Traditions
Interactive video
•
6th - 10th Grade
21 questions
Presidents Day Trivia
Quiz
•
6th - 12th Grade
10 questions
Valentine's Day: History and Modern Celebration
Interactive video
•
9th - 12th Grade
11 questions
Valentine's Day Trivia
Quiz
•
8th - 12th Grade
10 questions
Factor Quadratic Expressions with Various Coefficients
Quiz
•
9th - 12th Grade