
C Programming Quiz
Quiz
•
Science
•
University
•
Hard
THANGA R
Used 1+ times
FREE Resource
Enhance your content
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the value of a NULL pointer in C?
0
1
-1
Undefined
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you represent the end of a linked list in C?
By setting the next pointer to 1
By setting the next pointer to NULL
By setting the next pointer to the first node
By setting the next pointer to -1
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is used in C to indicate that a function does not return any value?
int
void
return
NULL
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In C, what is the correct way to declare a pointer to an integer?
int ptr
int *ptr
int &ptr
int ptr*
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements about function pointers is true?
Function pointers cannot be assigned NULL.
Function pointers can only point to int type functions.
Function pointers can be passed as arguments to functions.
Function pointers are not allowed in C.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the return type of malloc() in C?
void
int
void*
char*
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you define optional parameters in C functions?
Using the opt keyword
Using pointers that can be NULL
Using void keyword
C does not support optional parameters
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
15 questions
Biology Evolution
Quiz
•
9th Grade - University
15 questions
Animal Behaviors
Quiz
•
6th Grade - University
16 questions
RAZAS DE PERROS
Quiz
•
10th Grade - University
15 questions
AP Biology Chi-Square
Quiz
•
12th Grade - University
19 questions
Electromagnetic Induction IGCSE
Quiz
•
8th Grade - University
15 questions
Analyzing Data and Drawing Conclusions
Quiz
•
7th Grade - University
15 questions
Blood Spatter
Quiz
•
12th Grade - University
15 questions
Forensic Science Blood and Blood Spatter
Quiz
•
12th Grade - University
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
20 questions
ELA Advisory Review
Quiz
•
7th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
Discover more resources for Science
11 questions
NFL Football logos
Quiz
•
KG - Professional Dev...
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms
Quiz
•
11th Grade - University
38 questions
Unit 6 Key Terms
Quiz
•
11th Grade - University
20 questions
La Hora
Quiz
•
9th Grade - University
7 questions
Cell Transport
Interactive video
•
11th Grade - University
7 questions
What Is Narrative Writing?
Interactive video
•
4th Grade - University