C/C++ C Function

C/C++ C Function

University

12 Qs

quiz-placeholder

Similar activities

Loops-2

Loops-2

University

15 Qs

C++ misc-1

C++ misc-1

University

15 Qs

Unit 2 - AI by Prof. R. Rajkumar

Unit 2 - AI by Prof. R. Rajkumar

University

15 Qs

Refresh your JavaScript Skills!

Refresh your JavaScript Skills!

University

16 Qs

Quiz on neural network unit II

Quiz on neural network unit II

University

16 Qs

Coding club Summit Online Quiz

Coding club Summit Online Quiz

University

15 Qs

Data Mining

Data Mining

University

15 Qs

PHP QUIZ

PHP QUIZ

University

14 Qs

C/C++ C Function

C/C++ C Function

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

Lê Duy Tân

Used 254+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Media Image

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

Media Image

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

Media Image

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

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?