
C Programming Quiz
Quiz
•
Computers
•
Professional Development
•
Practice Problem
•
Hard
SI HACKATHON
FREE Resource
Enhance your content in a minute
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid variable name in C?
int 1stVariable
firstVariable
first variable
None of the above
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the following code output? #include int main() { int a = 5, b = 10; printf("%d\n", a + b); return 0; }
5
10
15
Compilation Error
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you insert comments in C?
// comment
/* comment */
// comment /* comment */
All of the above
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function is used to allocate memory dynamically in C?
malloc()
calloc()
realloc()
All of the above
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code? #include int main() { printf("%d\n", sizeof(char)); return 0; }
1
2
4
Undefined
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a data type in C?
int
float
real
char
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code? #include int main() { int x = 10; x += 5; printf("%d\n", x); } return 0;
10
15
5
Compilation Error
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
25 questions
Quiz for IT position
Quiz
•
Professional Development
25 questions
PST - Day 6 | Post Day Quiz
Quiz
•
Professional Development
25 questions
WOMANIA PRELIMS
Quiz
•
Professional Development
33 questions
6 ÔT GHK 1 - TIN HỌC
Quiz
•
Professional Development
25 questions
Bukber Trivia Games
Quiz
•
Professional Development
25 questions
SDdbC#_Final Quiz
Quiz
•
Professional Development
25 questions
CEPAC - Diagnóstico Informática
Quiz
•
Professional Development
25 questions
Struktogramme
Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
