QUESTION 1 Assuming int j = 4, int k = 8; evaluate the following expressions. j
ID: 3879395 • Letter: Q
Question
QUESTION 1
Assuming int j = 4, int k = 8; evaluate the following expressions. j * (3 + k)
QUESTION 2
Given the function heading: int atoi(string s) What is the class of the argument?
QUESTION 3
Assuming int j = 4, int k = 8; evaluate the following expressions. j / k
QUESTION 4
Given the function heading: int atoi(string s) What is the function name?
QUESTION 5
Given the function heading: int atoi(string s) What is the return type?
QUESTION 6
Assuming int j = 4, int k = 8; evaluate the following expressions. (j - k) * ( j + k )
QUESTION 7
Assuming int j = 4, int k = 8; evaluate the following expressions. k % j
QUESTION 8
Given the function heading: int atoi(string s) Is atoi("-10") a valid function call?
True
False
QUESTION 9
Given the function heading: int atoi(string s) Is atoi(81) a valid function call?
True
False
QUESTION 10
Assuming int j = 4, int k = 8; evaluate the following expressions. j % k
Explanation / Answer
QUESTION 1
int j = 4, int k = 8;
j * (3 + k) = 4 * (3 + 8) = 44
QUESTION 2
The argument is of type string
QUESTION 3
j/k = 4/8 = 0 as both are integers
QUESTION 4
The function name is atoi
QUESTION 5
The return type is int.
QUESTION 6
int j = 4, int k = 8;
(j - k) * ( j + k )
= (4-8) * (4+8) = -4 * 12 = -48
QUESTION 7
int j = 4, int k = 8;
k % j = 8 % 4 = 0 ( % is remainder)
QUESTION 8
True
output : -10
QUESTION 9
False
81 is not a string argument
QUESTION 10
int j = 4, int k = 8;
j % k = 4
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.