
C Programming Quiz
Authored by Ms. 16458
Computers
University
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code?
#include
True
False
Compile-time error
Undefined behavior
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the difference between malloc() and calloc() in C?
malloc() initializes allocated memory, calloc() does not
calloc() initializes allocated memory, malloc() does not
malloc() is used for static allocation, calloc() for dynamic allocation
Both are identical
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following function declarations is correct in C?
int function(int x, y);
int function(int x, int y) { return x + y; }
int function(int x, int y);
function(int x, int y) -> int;
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the size of an integer on a 64-bit system using GCC (typically)?
4 bytes
8 bytes
2 bytes
Depends on the compiler
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of this program?
#include
10 5
5 10
Compile-time error
Undefined behavior
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the sizeof operator return?
The size of a pointer
The size of a variable or type in bits
The size of a variable or type in bytes
None of the above
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of this program?
#include
10
20
30
40
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
20 questions
ICT Short Quiz
Quiz
•
University
20 questions
Review Quiz (Chapter 3&4)
Quiz
•
University
20 questions
ĐC CNTT_Chương 1
Quiz
•
University
20 questions
C Programming Unit-1 Test-2
Quiz
•
University
20 questions
Microprocessor
Quiz
•
University
20 questions
Java Quiz 1
Quiz
•
University
20 questions
TEST1.PY
Quiz
•
10th Grade - University
20 questions
MESYUARAT KE-3 MYTECC ASSEMBLY: TOGETHER WE BIND
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