Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

int n, m_m: Which of the following is NOT a C++ keyword? a. const b. goto c. sta

ID: 2247220 • Letter: I

Question

int n, m_m: Which of the following is NOT a C++ keyword? a. const b. goto c. static d. when e. unsigned In a declaration, the type specifier and the variable name are separated by: a. a period b. a space c. an equal sign d. a semicolon e. none of the above Which of the following declarations would properly define x, y, and z as double? a. double x, y, z: b. long double x, y, z: c. double x = y = z: d. double X, Y, Z: In C++, the binary operator % is applied to compute _. a. integer division b. floating-point division c. the remainder of integer division d. the remainder of floating-point division e. none of the above Which of the following assignments produces a value of zero? a. result = 8%4 - 1: b. result = 7%3 - 1: c. result = 2 - 8%2: d. result = 2- 6%2: e. result = 2 - 5%3;

Explanation / Answer

11. which of the following is NOT a C++ keyword?

Answer: Option d) when

12. In a declaration, the type specifier and the variable name are seperated by:

Answer: Option b) a space

13. Which of the following declaration would properly define x,y and z as double?

Answer: Option a) double x,y,z;   

14. In C++, the binary operator % is applied to compare_____

Answer: Option d) the reaminder of floating-point division

15. Which of the following assignments produces a value of zero?

Answer: Option b) result=7%3-1;

Explanation:

Program:

#include <iostream>

using namespace std;

int main() {

int result;

result=7%3-1;

cout<<result<<endl;

return 0;

}

Output: 0