functions

Ques:- The scope of any variable used in the entire program is ___
A. Class
B. Function
C. File
D. Local

0 3515
Ques:- ____ are the building blocks C++ programs.
A. Switch
B. For
C. If-else
D. Functions

0 7927
Ques:- How many types of scopes in C++?
A. 2
B. 3
C. 4
D. 5

0 8210
Ques:- Which function executes faster but requires more memory space?
A. Inline function
B. Regular function
C. Void function
D. Normal function

0 9628
Ques:- A variable declared above all blocks and functions has the ___
A. Class scope
B. Function scope
C. Local scope
D. Scope of a file

0 688
Ques:- The starting point for the execution of a program is ___
A. Class
B. Public
C. Void ()
D. Main()

0 5831
Ques:- The return type of the function prototype float power (float,.int) is ___
A. Int
B. Float
C. Double
D. Char

0 754
Ques:- The lifetime of a ___ variable is the life time of a program.
A. Global scope
B. Local scope
C. File scope
D. Function scope

0 2778
Ques:- A block of code begins and ends with ___
A. {}
B. []
C. ()
D. {]

0 5249
Ques:- In ___ a local variable is defined within a block.
A. Class scope
B. Local scope
C. Function scope
D. File scope

0 9529
Ques:- The calling function parameters are called as ___
A. Actual parameters
B. Dummy parameters
C. Duplicate parameters
D. Formal parameters

0 6263
Ques:- The functions that return no value is declared as ___
A. Null
B. Void
C. Static
D. Public

0 9002
Ques:- In ___ method any change in the formal parameters is not reflected back to the actual parameter.
A. Call by value
B. Call by reference
C. Call
D. Return

0 612
Ques:- Inline keyword is just a request to the ___
A. Object
B. Linker
C. Interpreter
D. Compiler

0 889
Ques:- The lifetime of a ___ variable, is the life time of the function block.
A. Function scope
B. File scope
C. Local scope
D. Global scope

0 3048
Ques:- A function can be invoked from another function using its ___
A. Value
B. Return
C. Name
D. Variables

0 1514
Ques:- The ___ reveals the hidden scope of a variable.
A. ++
B. *
C. %
D. Scope operator

0 5017
Scroll to top