Unit - 4 MCQ Test - CO11

Unit - 4 MCQ Test - CO11

University

12 Qs

quiz-placeholder

Similar activities

PHP Quiz

PHP Quiz

University

16 Qs

OOP module

OOP module

University

10 Qs

Basic C++ Program Structures

Basic C++ Program Structures

University

10 Qs

C programming

C programming

University

15 Qs

C Programming - Basics 001

C Programming - Basics 001

University

10 Qs

Round 1

Round 1

University

10 Qs

Google Drive

Google Drive

KG - University

10 Qs

Exploring Python: Input and Output Essentials

Exploring Python: Input and Output Essentials

9th Grade - University

10 Qs

Unit - 4 MCQ Test - CO11

Unit - 4 MCQ Test - CO11

Assessment

Quiz

Computers

University

Hard

Created by

Suman Tiwari

Used 2+ times

FREE Resource

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.

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?