How many times will this code execute?
while(true)
System.out.print("AP CSA ");
Topic 4.1 Video 2
Assessment
•
Myra Deister
•
Computers
•
11th Grade
•
1 plays
•
Medium
6 questions
Show all answers
1.
MULTIPLE CHOICE
30 sec • 1 pt
How many times will this code execute?
while(true)
System.out.print("AP CSA ");
2.
MULTIPLE CHOICE
30 sec • 1 pt
What is an infinite loop?
3.
MULTIPLE CHOICE
30 sec • 1 pt
From the video, what must be done to avoid an infinite loop?
4.
MULTIPLE CHOICE
30 sec • 1 pt
What is output by the code below?
int n = 0;
while(n<10)
{
n+=3;
}
System.out.print( n );
5.
MULTIPLE CHOICE
30 sec • 1 pt
What is output by the code below?
int n=4, a=0;
while(n<13)
{
a += n;
n+=3;
}
System.out.print( a );
6.
OPEN ENDED
3 mins • 1 pt
Upload a screenshot of the last screen of the video. Make sure your name is displayed and the title of the video. There is an example on the left.
17 questions
CAASPP Math Practice 3rd
•
3rd Grade
15 questions
Grade 3 Simulation Assessment 1
•
3rd Grade
20 questions
math review
•
4th Grade
19 questions
HCS Grade 5 Simulation Assessment_1 2425sy
•
5th Grade
16 questions
Grade 3 Simulation Assessment 2
•
3rd Grade
21 questions
6th Grade Math CAASPP Practice
•
6th Grade
13 questions
Cinco de mayo
•
6th - 8th Grade
20 questions
Reading Comprehension
•
5th Grade