CPA-21-02: C++ Certified Associate Programmer
CPA-21-02: C++ Certified Associate Programmer practice questions, page 2 of 2, with answer review and explanations.
Question 6
The following declaration: int i = 0b10;
- is invalid
- sets variable i with an integer value equal to 10
- sets variable i with an integer value equal to 2 (10 binary)
- sets variable i with an integer value equal to 8 (10 octal)
Question 7
The following declaration: int i = 010;
- sets variable i with an integer value equal to 10
- sets variable i with an integer value equal to 2 (10 binary)
- is invalid
- sets variable i with an integer value equal to 8 (10 octal)
Question 8
Which of the following operators accept integer arguments only? (Choose two.)
- |
- | |
- ~
- !