FAs Flashcards

1
Q

What will happen when we use a void in argument passing?

A

it will not return a value to its caller

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

a type of variable inside a function

A

local

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

from which function the execution of a C++ program starts?

A

int main()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

what type of function will you use when you are NOT intended to return a value?

A

void function

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

the int max (int num1, int num2); code is a function____

A

decleration

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

in order to use the sqrt function, we must include the _____ library

A

cmath

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

where should default prameters apprear in a function protorype?

A

to the rightmost side of the parameter list

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

symbol used to set a default parameter value

A

=

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

when the parameter is passed to a function- it is called ___

A

argument

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

which value will it take when both user and default values are given?

A

user value

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

where does the “return statement” return the execution of the program?

A

main function

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

it is the data type of the value of the function returns

A

return type

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

library functions are also known as ___ functions

A

built-in

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

When do we define the default values for a function?

A

when a function is declared

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

what permits function overloading in C++?

A

type and number of arguments

How well did you know this?
1
Not at all
2
3
4
5
Perfectly