C/C++ C Function

Assessment
•
Lê Duy Tân
•
Computers
•
University
•
254 plays
•
Medium
Student preview

12 questions
Show all answers
1.
MULTIPLE CHOICE
30 sec • 1 pt
Choose correct statement about Functions in C Language
2.
MULTIPLE CHOICE
30 sec • 1 pt
Choose a correct statement about C Function?
3.
MULTIPLE CHOICE
30 sec • 1 pt
A function which calls itself is called a ___ function.
4.
MULTIPLE CHOICE
30 sec • 1 pt
How many times the program will print "Algbly"?
Answer explanation
A call stack or function stack is used for several related purposes, but the main reason for having one is to keep track of the point to which each active subroutine should return control when it finishes executing.A stack overflow occurs when too much memory is used on the call stack.Here function main() is called repeatedly and its return address is stored in the stack. After stack memory is full. It shows stack overflow error.
5.
MULTIPLE CHOICE
30 sec • 1 pt
Determine Output
Answer explanation
Here show() function should not return anything. So, return 10; is not recommended.
6.
MULTIPLE CHOICE
30 sec • 1 pt
What are the types of functions in C Language?
7.
MULTIPLE CHOICE
30 sec • 1 pt
What is the limit for number of functions in a C Program?
Answer explanation
There is no limit on the number of functions.
8.
MULTIPLE CHOICE
30 sec • 1 pt
Every C Program should contain which function?
Answer explanation
main() is a compulsory function with or without returning anything.
9.
MULTIPLE CHOICE
30 sec • 1 pt
What is the minimum number of functions to be present in a C Program?
Answer explanation
At least there will be one function which is main() function.
10.
MULTIPLE CHOICE
30 sec • 1 pt
What is the maximum number of statements that can present in a C function?
Answer explanation
There is no limit on the number of statements that can present in a C Function.
Explore all questions with a free account
Find a similar activity
Create activity tailored to your needs using
C and C++ Programming Concepts

•
University
Functions C

•
University
Day 8 Assessment 2

•
University
C++ Functions

•
University
Quiz6: Functions in C

•
University
Functions in C++

•
University
C Flow Control and Functions

•
University
Input and output statement in c

•
University