
C loops
Authored by Ansgar Meroth
Computers
University
Used 9+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
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
15 questions
Monday Week#2
Quiz
•
University
10 questions
1ª Recuperação - 3° Trim. - Pensamento Computacional - 9º ano
Quiz
•
9th Grade - University
10 questions
Arquitectura de computadoras
Quiz
•
University
10 questions
JSPS Competition Hackathon - Scratch Language - Grade 1
Quiz
•
2nd Grade - University
10 questions
cybercrime
Quiz
•
12th Grade - University
14 questions
Input, output and storage de
Quiz
•
8th Grade - Professio...
12 questions
Data Science Quiz
Quiz
•
University
15 questions
Assessment 08
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade