Search Header Logo

Unit - 4 MCQ Test - CO11

Authored by Suman Tiwari

Computers

University

Used 2+ times

Unit - 4 MCQ Test - CO11
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What vlaue is stored in x? X = scanf("%d %d", &a, &b);

1
2
3
No value assigned

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What is the purpose of function declaration in C?

To hide the function from the compiler

To confuse the programmer

To inform the compiler about the function's name, return type, and parameters before its actual definition.

To increase the program's efficiency

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

The parameters used in a function definition are also called as __________

Actual Arguments
Formal Arguments
Simple Arguments
Simple Parameters

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

The arguments used in a function call are also called as __________

Actual Arguments
Formal Arguments
Simple Arguments
Simple Parameters

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

A function which calls itself is called a ___ function.

Self Function

Auto Function

Recursive Function

Static Function

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What is the lifetime of global variables?

They exist throughout the entire program’s execution.

They are destroyed when the function exits.

They are limited to the block they are declared in.

They can only be accessed by the main function.

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What is the scope of a variable?

The region of the program where it can be accessed.

The type of data it can hold.

The number of times it can be used.

The time it takes to execute.

Access all questions and much more by creating a free account

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

Already have an account?