
C Programming Quiz

Quiz
•
Computers
•
Professional Development
•
Hard
SI HACKATHON
FREE Resource
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
Similar Resources on Wayground
28 questions
Java Chapter 4 Review Questions

Quiz
•
Professional Development
25 questions
Core Java Assessment

Quiz
•
Professional Development
32 questions
Praxis 5652 Computer Science Prep Mod 5 Operators

Quiz
•
Professional Development
30 questions
SERTIFICATE-Zerde

Quiz
•
Professional Development
26 questions
Python Data Structures

Quiz
•
University - Professi...
26 questions
ШС С++ Модуль 1-3

Quiz
•
Professional Development
25 questions
Тест

Quiz
•
Professional Development
33 questions
Programming in C Quiz

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade