Ask Question
21 September, 15:38

1) These are operators that add and subtract one from their operands.

A) plus and minus

B) + + and - -

C) binary and unary

D) conditional and relational

E) None of these

2) What is the output of the following code segment?

n = 1; while (n < = 5) cout << n << ' '; n++;

A) 1 2 3 4 5

B) 1 1 1 ... and on forever

C) 2 3 4 5 6

D) 1 2 3 4

E) 2 3 4 5

+5
Answers (1)
  1. 21 September, 16:01
    0
    1) B (+ + and - -)

    2) A (1 2 3 4 5)

    Explanation:

    In the first question, the operators + + and - - are used in almost all programming languages for adding and subtracting 1 respectively from an operand.

    In the second question using a while statement the numbers 1-5 is printed out because the variable n=1 is increased by 1 after each iteration.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “1) These are operators that add and subtract one from their operands. A) plus and minus B) + + and - - C) binary and unary D) conditional ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers