MCQ
Write Java statement to check whether the remainder is zero or not when the value of variable x is divided by 2.
  • If (x%2==0)
  • B
    If (x%2=0)
  • C
    If (x/2==0)
  • D
    If ((x/2) =0)

Answer

Correct option: A.
If (x%2==0)
If (x%2==0)

Need a full question paper?

Generate a complete, print-ready paper with questions like this in minutes — across 16+ boards, with answer keys.

Start Generating Free