
Maximum Digit Finder Quiz

Quiz
•
Computers
•
10th Grade
•
Hard
John Streety
Used 1+ times
FREE Resource
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)
Create a free account and access millions of resources
Similar Resources on Wayground
17 questions
Flowcharts and Actuators

Quiz
•
7th - 10th Grade
10 questions
7.10 Writing and Amending Algorithms Cambridge IGCSE 0478

Quiz
•
10th Grade - University
10 questions
7.3 Designing and Constructing a Solution Cambridge IGCSE 0478

Quiz
•
10th Grade - University
15 questions
1 - Pseudocode

Quiz
•
9th - 10th Grade
15 questions
Tes Informatika

Quiz
•
10th Grade
10 questions
String Manipulation Quiz

Quiz
•
10th - 11th Grade
10 questions
Introdução ao JavaScript

Quiz
•
10th Grade
20 questions
Prova sobre p5.js

Quiz
•
10th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade