Question 16 (1 point) The absolute value function abs is located in the ________
ID: 3913712 • Letter: Q
Question
Question 16 (1 point)
The absolute value function abs is located in the _________ library.
Question 16 options:
include directive
tag
cast
formal parameter
actual parameter
statement
cstdlib
function body
function head
string
function call
pseudocode
C++ builtin
Save
Question 17 (1 point)
What is the output of the following function call?
//function body
int factorial(int n) {
int product=0;
while(n > 0) {
product = product * n;
n—;
}
return product;
}
//function call
cout << factorial(4);
Question 17 options:
4
0
24
48
Save
Question 18 (1 point)
What is the output of the following program fragment?
cout << static_cast(3/4) << endl;
Question 18 options:
3
0.5
0
0.75
Save
Question 19 (1 point)
Every include directive must be followed by using namespace std;
Question 19 options:
Save
include directive
tag
cast
formal parameter
actual parameter
statement
cstdlib
function body
function head
string
function call
pseudocode
C++ builtin
Explanation / Answer
Ans:16
cstdlib
Ans:17
0
Ans:18
0
Ans:19
False
========================================================
KIndly Check and Verify Thanks..!!!