int sum=10;
for (int i=0;i<=10;i++) {
sum+=i;}
How often does the loop run?
C loops
Quiz
•
Computers
•
University
•
Hard
Ansgar Meroth
Used 8+ times
FREE Resource
10 questions
Show all answers
1.
FILL IN THE BLANK QUESTION
1 min • 1 pt
int sum=10;
for (int i=0;i<=10;i++) {
sum+=i;}
How often does the loop run?
2.
FILL IN THE BLANK QUESTION
1 min • 1 pt
int sum=10;
for (int i=0;i<10;i++) {
sum+=i;}
What is the result of sum after the loop?
3.
FILL IN THE BLANK QUESTION
1 min • 1 pt
int sum=10;
for (int i=0;i<10;i++) {
sum+=i;}
How often does the loop run?
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which type of loop is a for loop?
Pretest
Nontest
Midtest
Posttest
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct format of a "for" loop?
for(int i = 0; i < 10; i++);
for[int i = 0; i < 10; i++];
for(int i = 0; i < 10; i++)
for[int i = 0; i < 10; i++]
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are the three parts of a for loop?
initialize; test; increment
test; initialize; increment
increment; test; initialize
Larry; Mo; Curly
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
int i=0;
while (i>0){
cout << "hello";
i++;}
How often does this run?
0
1
infinite
not sure
11 questions
Array
Quiz
•
University
8 questions
Quiz - 1
Quiz
•
University
12 questions
Lógica Programação
Quiz
•
University
10 questions
Quiz 8: Arrays&Vector
Quiz
•
University
15 questions
Java Programming
Quiz
•
University
10 questions
Array in C
Quiz
•
University
15 questions
C programming
Quiz
•
University
10 questions
Quiz 3
Quiz
•
University
15 questions
Multiplication Facts
Quiz
•
4th Grade
25 questions
SS Combined Advisory Quiz
Quiz
•
6th - 8th Grade
40 questions
Week 4 Student In Class Practice Set
Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025
Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)
Quiz
•
9th - 12th Grade
15 questions
June Review Quiz
Quiz
•
Professional Development
20 questions
Congruent and Similar Triangles
Quiz
•
8th Grade
25 questions
Triangle Inequalities
Quiz
•
10th - 12th Grade