C/C++ C Function

Quiz
•
Computers
•
University
•
Medium
Lê Duy Tân
Used 254+ times
FREE Resource
12 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?
"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
How many times the program will print "Algbly"?
Infinite times
32767 times
65535 times
Till stack overflows
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 QUESTION
30 sec • 1 pt
Determine Output
PISTA CACHEW
CASHEW PISTA
PISTA CASHEW with compiler warning
Compiler error
Answer explanation
Here show() function should not return anything. So, return 10; is not recommended.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are the types of functions in C Language?
Library Functions
User Defined Functions
Both Library and User Defined
None of the above
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the limit for number of functions in a C Program?
16
31
32
No Limit
Answer explanation
There is no limit on the number of functions.
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
C programming

Quiz
•
University
13 questions
#include <\c>

Quiz
•
University
10 questions
PYTHON PROGRAMMING

Quiz
•
University
10 questions
Array and string unit 7

Quiz
•
University
15 questions
NM-Q1

Quiz
•
University
10 questions
C Programming - Basics 001

Quiz
•
University
10 questions
Basic C++ Program Structures

Quiz
•
University
10 questions
C Programming Quiz-1

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
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
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University