Quiz on Operators

Q.1) x=2+3 This is example of ____ operator.
a] Bitwise
b] Arithmetic
c] Logical
d] Assignment

Q.2) Which are following the example of Bitwise Operator ?
a] x&y
b] x|y
c] x^y
d] All the above

Q.3) Which of the following is NOT an operator ?
a] Arithmetic
b] Membership
c] Assignment
d] Function

Q.4) What does the AND operator do ?
i. True if both values are true
ii. True if either one of the value is true
a] Only i
b] Only ii
c] Both i and ii
d] None of the i and ii

Q.5) z+=2 This is an example of ___ operator.
a] Logical
b] Assignment
c] Arithmetic
d] None of the above

1 Like

Q1.
Ans: b
Q2.
Ans: d
Q3.
Ans: d
Q4.
Ans: a
Q5
Ans: c

1 Like
  1. b
  2. d
  3. d
  4. a
  5. c
1 Like

ANSWERS:

  1. b] Arithmetic
  2. d] All the above
  3. d] Function
  4. a] only i
  5. c] Arithmetic
1 Like

Answers of this quiz:

  1. b) Arithmetic
  2. d) All the above
  3. d) Function
  4. a) Only i
  5. c) Arithmetic
1 Like

Hi… @akhand789ww Last answer is d Assignment operator.

1 Like

Hi… @aishukhairnar1998 Last answer is d Assignment operator.

Hi… @sachindp105 Last answer is d Assignment operator.

Hi… @skggote Last answer is d Assignment operator.