
C Programming Quiz
Quiz
•
Computers
•
University
•
Practice Problem
•
Hard
Manka Sharma
Used 2+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following C code considering the size of a short int is 2, char is 1 and int is 4 bytes?
#include
2, 1, 2
2, 1, 1
2, 1, 4
2, 2, 8
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the data type of the result of the following operation? (float)a * (int)b / (long)c * (double)d
int
long
float
double
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the range of short signed int data type in C Programming, considering 4 bytes are allocated for int?
-128 to + 127
0 to 255
-32768 to +32767
0 to 65535
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the range of unsigned char data type in C Programming?
-128 to + 127
0 to 255
-32768 to +32767
0 to 65535
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code snippet? int a = 10; while(a > 5) { printf("%d ", a); a--; }
10 9 8 7 6 5
10 9 8 7 6
9 8 7 6 5
Infinite loop
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many times is the loop executed in the following code? for (int i = 0; i <= 10; i += 2) { printf ("%d ", i); }
5 times
6 times
10 times
11 times
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following C code? int i = 1; while(i <= 5) { if(i == 3) { break; } printf("%d ", i); i++; }
1 2
1 2 3
1 2 3 4 5
No output
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
10 questions
Teoria General de los Sistemas IF1300
Quiz
•
University
15 questions
Internet
Quiz
•
University
10 questions
Kompyuter ko'rish
Quiz
•
University
15 questions
Dictionary Python
Quiz
•
University
10 questions
computer Networks
Quiz
•
University
10 questions
Scratch
Quiz
•
KG - Professional Dev...
9 questions
Structured/Traditional SDM
Quiz
•
University
10 questions
QUIZ GAME
Quiz
•
University
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade
Discover more resources for Computers
8 questions
2 Step Word Problems
Quiz
•
KG - University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
10 questions
14.2 Independent/Dependent Variables
Quiz
•
KG - University
18 questions
Great Lakes States
Quiz
•
KG - University
7 questions
DNA, Chromosomes, Genes, and Traits: An Intro to Heredity
Interactive video
•
11th Grade - University
7 questions
Reflexive Verbs in Spanish
Lesson
•
9th Grade - University
7 questions
Narrative Writing 1
Interactive video
•
4th Grade - University
