Question: Very simple for someone who knows C++. Please answer all of them What is the arity of the conditional operator? ? Hint Recall, the arity
Very simple for someone who knows C++. Please answer all of them

What is the arity of the conditional operator? ? Hint Recall, the arity of an operator is the number of operands the operator requires. For example, the + operator requires 1 operand (a unary operator) and the % operator requires 2 operands (a binary operator). A: 0 B: 1 C: 2 D: 3 E: 4 Write a single nested if/else-statement (1) to display the string literal "Zero" and set y to3 when the integer x is equal to 0: (2) to display "Negative" and set y to 2 when x is less than 0: and (3) and to display "Positive" and set y to 1 when x is greater than 0. Hint Will you need to use blocks (compound statements)? How many times will the body of the while-statement shown below execute? How many times will its boolean expression (i = 0) && (n > = 0)) is satisfied. Express both sets of answers using powers of 2. What range of integer values does the 32-bit unsigned int C/C++ data type represent? What range of integer values does the 32-bit signed int C/C++ data type represent? Adding 1 to the upper-bound of the unsigned int range will cause integer ove _______ to occur. T or F? Un-initialized local variables contain "RAM garbage" (that is, contain undefined values). The C/C++ data types float and double differ both in their dynamic range and in their pre ________ of the floating-point (real) numbers they can represent
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
