What is the purpose of binary arithmetic operators in C++?
To perform mathematical operations such as addition, subtraction, multiplication, and division.
What is the operator for addition in C++?
The addition operator is +.
What is the order of evaluation when parentheses are used in expressions?
Expressions in parentheses are evaluated first.
What symbol is used for modulus in C++?
The modulus operator is %.
What output does the statement 'cout << x + 9 / 3;' produce when x is 30?
The output is 33.
How do you read multiple integers from user input in C++?
Use cin followed by the variable names, e.g., cin >> number1 >> number2 >> number3.
In a decision-making statement, what will be printed if 'a' equals 'b'?
It will print the content within the if block, which can include multiple cout statements.
What C++ operator checks for equality?
The equality operator is ==.
What is the output for the program that checks if a number is positive?
It will print 'You entered a positive integer' if the number is greater than zero.
How do you declare a variable to store a number in C++?
Use the syntax: 'int variableName;'
What is the resulting output of the program if user inputs three integers 13, 27, 14?
Sum is 54, Average is 18, Product is 4914.
What will the program output if a user inputs -5 for the variable 'number'?
It will display 'You entered a negative integer: -5'.
What happens in C++ if a variable condition is true?
The code block within the if statement will be executed.
How do you calculate the total cost with a discount in C++?
Check if the price exceeds 1000 and apply 10% discount if true.