Make this code loop three times:
in tries= 0;
while(_________ ) {
cin>> “Looping!”;
tries++;
}
untitled
Quiz
•
Computers, Science, Mathematics
•
6th - 8th Grade
•
Hard
kollin vos
Used 1+ times
FREE Resource
22 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Make this code loop three times:
in tries= 0;
while(_________ ) {
cin>> “Looping!”;
tries++;
}
tries < 3
answer == 3
tries > 0
tries < 0
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Make this code stop looping when you get the right answer or have no more tries left
string answer;
int tries = 5;
while(_________) {
cin>> answer;
if (answer == “the right answer”){
cout<<“correct”<<endl;
break;
}
tries - - ;
}
tries == answer
tries > 0
tries >= 3
tries <= 5
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of these statements stops a while loop?
stop;
break;
loop pause;
do { }
4.
FILL IN THE BLANK QUESTION
2 mins • 1 pt
Fill in the blank with the right symbol to make this code print Tacos 4 times
int tacos = 4;
while(tacos ___ 0){
cout<<“Tacos”<<endl;
tacos - - ;
}
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Fill in the blank to make this code print Go Heat!
3 times
int loop = 0;
while(__________){
cout<<“Go Heat”<<endl;
loop ++ ;
}
loop < 3
answer == 3
loop = 0
loop == 3
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Fill in the blank to make this code print Go Heat!
3 times
int loop = 0;
while(__________){
cout<<“Go Heat”<<endl;
loop ++ ;
}
loop < 3
answer == 3
loop = 0
loop == 3
7.
MULTIPLE SELECT QUESTION
1 min • 1 pt
Select all of the statements properly increments an int variable by one?
variable++;
variable += 1;
variable + 1;
variable = variable * variable;
21 questions
OCTAVO GRADO REPASO C++
Quiz
•
8th Grade
20 questions
Python -Iteration (loops)
Quiz
•
7th - 12th Grade
17 questions
Programare cu C++ nivel incepatori 8
Quiz
•
6th - 8th Grade
20 questions
Язык программирования Python
Quiz
•
1st - 10th Grade
23 questions
SHS 8.4 Python
Quiz
•
8th Grade
17 questions
Алгоритмы ветвления
Quiz
•
8th Grade
18 questions
Python 1 модуль
Quiz
•
1st - 10th Grade
25 questions
Equations of Circles
Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)
Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System
Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice
Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers
Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons
Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)
Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review
Quiz
•
10th Grade