Part 20 — Viva / Short Questions
Part 20 — Viva / Short Questions
Answer the following questions.
- What is an operator?
- What is an operand?
- What is an expression?
- What is a unary operator?
- What is a binary operator?
- What is the purpose of
+?
- What is the purpose of
%?
- What is the difference between
= and ==?
- What is the difference between
++x and x++?
- What is the purpose of
--?
- What does
>= mean?
- What does
!= mean?
- What is the purpose of
&&?
- What is the purpose of
||?
- What does
! do?
- What is the difference between
x += 5 and x = x + 5?
- What does
x *= 2 do?
- What is the result of
20 % 6?
- What does a relational operator return?
- Why are logical operators used with conditions?