
C Programming For Loop Review cf

Quiz
•
Computers
•
10th Grade - University
•
Medium
Curtis Forbes
Used 3+ times
FREE Resource
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
How many times will the message be printed in the loop?
for(i = 0; i< 10; i++)
printf("Today is Saturday"
0
9
10
11
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What was omitted from the following line of code?
scanf("%f", cost);
printf
%d
&
#
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
State the error in the code fragment
char[15];
printf("Enter a name");
scanf("%d", &name);
&
char
[15]
%d
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
How many times will the message be printed?
for(j=0; j<=10; j++)
printf("Happy birthday");
0
9
10
11
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output from the code fragment?
for(j=3; j>0; j--)
printf("%d", j);
1 2 3
0 1 2 3
3 2 1
3 2 1 0
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will the following code print?
for(k = 2; k<=10 ; k = k+2)
printf("%d", k);
1 2 3 4 5 6 7 8 9 10
2 4 6 8 10
10 8 6 4 2
2 4 6 8
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
For loop are used for bounded iteration
true
false
8.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
How many times will goodbye be printed?
for(k=0; k<10; k++)
printf("%d", k);
print("goodbye");
0
1
9
10
Similar Resources on Wayground
11 questions
Introduction to computer programming

Quiz
•
12th Grade
10 questions
IT Quiz Round 3

Quiz
•
University
10 questions
Comp Sci unit 3 #8

Quiz
•
11th Grade
10 questions
C Programming Quiz

Quiz
•
12th Grade
10 questions
Rapid Round 1

Quiz
•
University
10 questions
CIS1101-programming practice2

Quiz
•
University
12 questions
asesmen informatika fase F

Quiz
•
11th Grade
10 questions
Java Quiz 2 based on loop and if else

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade