

Loop Conditions and Counting Digits
Interactive Video
•
Mathematics
•
9th - 10th Grade
•
Hard
Thomas White
FREE Resource
Read more
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the issue with the initial loop condition when counting digits in a number?
It only works for numbers less than 100.
It only works for even numbers.
It stops counting too early.
It counts too many digits.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What should the loop condition be to correctly count the digits in a number?
While temp is greater than 10
While temp is less than 10
While temp is greater than or equal to 10
While temp is less than or equal to 10
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In the example where n is 123, what is the initial value of count?
3
0
1
2
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens to the value of temp after the first division by 10.0 when n is 123?
It becomes 0.123
It becomes 1.23
It becomes 12.3
It becomes 123
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When does the loop stop executing for n = 123?
When temp is less than 10
When temp is equal to 10
When temp is greater than 10
When temp is equal to 1
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the initial value of temp when n is 100?
1
0
100
10
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Why does the loop stop prematurely when n is 100 with the initial condition?
Because temp becomes greater than 10
Because temp becomes zero
Because temp becomes less than 10
Because temp becomes equal to 10
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
6 questions
CLEAN : Fears for Turkey ballot as Kurdish conflict deepens
Interactive video
•
10th - 12th Grade
6 questions
CLEAN : Underground rail system on track to ease Jakarta's traffic
Interactive video
•
9th - 10th Grade
6 questions
These Countries Are The Least Populated In The World! | KLT
Interactive video
•
KG - 9th Grade
6 questions
Coronavirus Model Predicts U.S. Death Toll Of Over 200,000 By October
Interactive video
•
9th - 12th Grade
Popular Resources on Wayground
8 questions
Spartan Way - Classroom Responsible
Quiz
•
9th - 12th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
14 questions
Boundaries & Healthy Relationships
Lesson
•
6th - 8th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
3 questions
Integrity and Your Health
Lesson
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
9 questions
FOREST Perception
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
Discover more resources for Mathematics
20 questions
Graphing Inequalities on a Number Line
Quiz
•
6th - 9th Grade
11 questions
Adding and Subtracting Polynomials
Quiz
•
9th Grade
20 questions
Box and Whisker Plots
Quiz
•
9th Grade
18 questions
Exponential Growth and Decay
Quiz
•
9th Grade
12 questions
Equation of a Circle
Lesson
•
10th Grade
12 questions
Exponential Growth and Decay
Quiz
•
9th Grade
14 questions
Making Inferences From Samples
Quiz
•
7th - 12th Grade
24 questions
Solving Linear Equations with Variables on Both Sides
Quiz
•
9th Grade