
C Programming Quiz
Quiz
•
Computers
•
Professional Development
•
Practice Problem
•
Easy
Dr. SRET
Used 1+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Choose the correct statement while (0 == 0) { }
It has syntax error as there are no statements within braces {}
It will run forever
It compares 0 with 0 and since they are equal it will exit the loop immediately
It has syntax error as the same number is being compared with itself
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Given the below statements about C programming language; 1) main() function should always be the first function present in a C program file 2) all the elements of an union share their memory location 3) A void pointer can hold address of any type and can be typecasted to any type 4) A static variable hold random junk value if it is not initialised Which of the above are correct statements?
2,3
1,2
1,2,3
1,2,3,4
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which one is used during memory deallocation in C?
remove(p);
delete(p);
free(p);
terminate(p);
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Predict the output of following code: main() { int a=b=c=d=10; printf("%d,%d,%d,%d",a,b,c,d); }
Error
10,10,10,10
Garbage Value,Garbage Value,Garbage Value,10
Garbage Value,Garbage Value,Garbage Value,Garbage Value
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many times the below loop will be executed? #include
5
1
0
3
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Predict the output of following code: main() { int a=10,x; x= a- + ++a; printf("%d",x); }
A) 19
B) 20
C) 22
D) 23
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following does not require to include math.h header file?
A) pow()
B) rand()
C)sqrt()
D) sinh()
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
Javascript basics
Quiz
•
Professional Development
10 questions
Què en saps de GSuite?
Quiz
•
University - Professi...
14 questions
Tin học 7 - ÔT Cuối kì 2 CĐ Bảng tính - Trình chiếu
Quiz
•
Professional Development
12 questions
BIS - Database
Quiz
•
Professional Development
10 questions
C++Quiz#1
Quiz
•
Professional Development
15 questions
U.T. 4: Nivel de enlace - Subcapas LLC y MAC - ARP
Quiz
•
Professional Development
15 questions
Sensibilisation sécurité informatique
Quiz
•
Professional Development
10 questions
Soal SKD
Quiz
•
University - Professi...
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
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
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Computers
10 questions
How to Email your Teacher
Quiz
•
Professional Development
6 questions
3RD GRADE DECLARATION OF INDEPENDENCE EXIT TICKET
Quiz
•
Professional Development
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
22 questions
Multiplying Exponents with the Same Base
Quiz
•
9th Grade - Professio...
40 questions
Flags of the World
Quiz
•
KG - Professional Dev...
