
Functions in C

Quiz
•
Computers
•
University
•
Hard
Femi D
Used 7+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Choose correct statement about Functions in C Language.
A Function is a group of c statements which can be reused any number of times
Every Function has a return type
Every Function may no may not return a value
All the above
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Choose a correct statement about C Function?
void main() {
printf("Hello");
}
"main" is the name of default must and should Function
main() is same as int main()
By default, return 0 is added as the last statement of a function without specific return type
All the above
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A function which calls itself is called a ___ function.
Self Function
Auto Function
Recursive Function
Static Function
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The keyword used to transfer control from a function back to the calling function is
int **a;
switch
goto
go back
return
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many times the program will print "Algbly"?
int main() {
printf("Algbly");
main();
return 0;
}
Infinite times
32767 times
65535 times
Till stack overflows
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Determine Output :
void show() {
printf("PISTA ";
show();
}
void main() {
printf("CACHEW ");
return 10;
}
PISTA CACHEW
CASHEW PISTA
PISTA CASHEW with compiler warning
Compiler error
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Choose correct statements about C Language Pass By Value.
Pass By Value copies the variable value in one more memory location
Pass By Value does not use Pointers
Pass By Value protects your source or original variables from changes in outside functions or called functions
All the above
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
C Programming Unit-1 Test-2

Quiz
•
University
16 questions
UC_TM02_C Programming Basics

Quiz
•
University - Professi...
20 questions
UNIT 1 PYTHON

Quiz
•
University
20 questions
ROUND 1 QUIZ FOR 1ST YEAR

Quiz
•
University
25 questions
C/C++ Programming Quiz

Quiz
•
University
15 questions
Array Java

Quiz
•
University
16 questions
De todo

Quiz
•
1st Grade - Professio...
20 questions
Programming in C(1)

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University