Day 4 C Programming Quiz
Quiz
•
Computers
•
Professional Development
•
Practice Problem
•
Hard
Phantom Techlogics
Used 1+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
#include <stdio.h>
int main()
{
double k = 0;
for (k = 0.0; k < 3.0; k++)
printf("Hello");
}
What will be the output of the above C code?
Run time error
Hello
Hello
Hello
Hello
Hello
Hello is printed infinitely
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
int main()
{
int a=10, b, c;
b=a++;
c=++a;
printf("%d %d %d", a, b, c);
return 0;
}
What is the output of the C Program.?
12 10 12
10 11 12
12 11 12
12 12 12
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
We can have any number of case statements within a switch
True
False
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many times is a do-while loop guaranteed to loop?
Infinitely
It varies
1
0
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
int main()
{
int a=22;
do
{
printf("%d ", a);
a++;
}while(a <= 20);
return 0;
}
What is the output of above C Program.?
23
20
22
No Output
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
int main()
{
int k, j;
for(k=1, j=10; k <= 5; k++)
{
printf("%d ", (k+j));
}
return 0;
}
What is the output of the above C Program.?
11
12
13
14
15
10
10
10
10
10
Compiler error
None of above
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When does the code block following,
while(y<100)
execute?
When y is greater than one hundred
When y is less than one hundred
When y is equal to one hundred
None of the above
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
13 questions
Examen 2
Quiz
•
Professional Development
10 questions
C Language Basic Quiz
Quiz
•
7th Grade - Professio...
10 questions
Perform Word Processing
Quiz
•
Professional Development
15 questions
Repaso de Python
Quiz
•
5th Grade - Professio...
10 questions
c program -basic
Quiz
•
Professional Development
15 questions
AI-900 MÓDULO 02 pt-br
Quiz
•
Professional Development
8 questions
Basic Python Data Types
Quiz
•
Professional Development
10 questions
2. Введение в язык программирования C++.
Quiz
•
Professional Development
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Computers
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
25 questions
Christmas Movies
Quiz
•
Professional Development
20 questions
Christmas Trivia
Quiz
•
Professional Development
15 questions
Fun Holiday Trivia
Quiz
•
Professional Development
25 questions
Name That Tune - Christmas
Quiz
•
Professional Development
29 questions
Christmas Song Emoji Pictionary
Quiz
•
Professional Development
9 questions
Holiday Movie Trivia
Lesson
•
Professional Development
34 questions
Winter Trivia
Quiz
•
Professional Development
