31. The purpose of the \" ? : \" operator is to: a. select the highest of the tw
ID: 3621557 • Letter: 3
Question
31. The purpose of the " ? : " operator is to:a. select the highest of the two values
b. select the more equal of two values
c. select one of two values alternately
d. select one of two values depending on a condition
e. none of the above
32. The statements following else in an if-else construction are executed when
a. the conditional expression following if is false
b. the conditional expression following if is true
33. It is possible to print decimal-point-aligned
financial data using cout using the sprintf() function. (T/F).
34. A non-static global variable may be altered
by functions which are declared in any source file
included in the project. (T/F)
35. A static function may only be called by
functions which are defined in the same
source file. (T/F)
36. A static int variable is allocated only
once in the run of the program, and keeps its
value between calls of the function in which
it is defined. (T/F)
37. C variables declared inside a function {}
are visible only to the calling routine. (T/F)
38. Given:
main(int argc, char *argv[], char ** env)
argv[0] is local only to main, and may not be directly
seen or used by any other function. (T/F)
39. static_cast<double>() is most similar to:
a. (double *)
b. (char *)
c. (int)
d. (double)
e. none of these
40. Given: int a = 8 , b = 9 ;
in order to get an accurate quotient, you must do:
a. cout << a / b ;
b. cout << (double) a / b ;
c. cout << (double) (a / b) ;
d. b or c above.
e. they all produce an accurate answer.
Explanation / Answer
please rate - thanks
31. The purpose of the " ? : " operator is to:
a. select the highest of the two values
b. select the more equal of two values
c. select one of two values alternately
d. select one of two values depending on a condition
e. none of the above
32. The statements following else in an if-else construction are executed when
a. the conditional expression following if is false
b. the conditional expression following if is true
33. It is possible to print decimal-point-aligned
financial data using cout using the sprintf() function. (T/F).
34. A non-static global variable may be altered
by functions which are declared in any source file
included in the project. (T/F)
35. A static function may only be called by
functions which are defined in the same
source file. (T/F)
36. A static int variable is allocated only
once in the run of the program, and keeps its
value between calls of the function in which
it is defined. (T/F)
37. C variables declared inside a function {}
are visible only to the calling routine. (T/F)
38. Given:
main(int argc, char *argv[], char ** env)
argv[0] is local only to main, and may not be directly
seen or used by any other function. (T/F)
39. static_cast<double>() is most similar to:
a. (double *)
b. (char *)
c. (int)
d. (double)
e. none of these
40. Given: int a = 8 , b = 9 ;
in order to get an accurate quotient, you must do:
a. cout << a / b ;
b. cout << (double) a / b ;
c. cout << (double) (a / b) ;
d. b or c above.
e. they all produce an accurate answer.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.