stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
C MCQ Flashcards | StudBud
Explore
/
C MCQ
C MCQ
10 terms
·
StudBud Administration
·
19 plays
Imported from external platform
Flashcards
10 cards
F
Practice quiz
P
Host live
L
Questions
10
Answers
1
How is memory allocated for a variable in C?
malloc()
new()
assign()
allocate()
2
What is the output of the following question?
10 10
5 10
5 5
10 5
3
What is the purpose of the "return" statement in a function?
Exit the loop
Print a message
Return a value from the function
Terminate the program
4
What is the output of the following question?
9
6
5
7
5
What is the output of the following question?
1 2 3 4 5 6
0 1 2 3 4
2 3 4 5 6
1 2 3 4 5
6
What is the role of the "main" function in a C program?
Declare variables
Define constants
Start the execution of the program
Perform mathematical operations
7
What is the output of the following question?
5 6
6 6
5 5
6 7
8
What is the output of the following question?
5
2
4
3
9
What is the purpose of the "if" statement in C? ANS : Print a message
True
False
10
Which operator is used for pointer dereferencing in C?
->
*
&
#