Day 4 C Programming Quiz

Quiz
•
Computers
•
Professional Development
•
Hard

Phantom Techlogics
Used 1+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Java Increment & Decrement Operators

Quiz
•
Professional Development
10 questions
pemrograman dasar

Quiz
•
Professional Development
15 questions
Code X Trade

Quiz
•
Professional Development
11 questions
JAVA QUIZ

Quiz
•
Professional Development
15 questions
DOT NET-SET1

Quiz
•
Professional Development
13 questions
Игры на Python 1 модуль

Quiz
•
Professional Development
8 questions
2-oy 5-dars 4-darsni takrorlash uchun quiz

Quiz
•
Professional Development
8 questions
Информатика супер пупер инорматика

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
11 questions
All about me

Quiz
•
Professional Development
10 questions
How to Email your Teacher

Quiz
•
Professional Development
15 questions
Fun Random Trivia

Quiz
•
Professional Development
22 questions
Anne Bradstreet 1612-1672

Quiz
•
Professional Development
18 questions
Spanish Speaking Countries and Capitals

Quiz
•
KG - Professional Dev...
14 questions
Fall Trivia

Quiz
•
11th Grade - Professi...
15 questions
Disney Characters Quiz

Quiz
•
Professional Development
15 questions
Quiz to Highlight Q types & other great features in Wayground

Quiz
•
Professional Development