aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Programming in C
  • Which of the following is a valid comparison?
Multiple choice

Which of the following is a valid comparison?

  1. p=3;

  2. 3==p;

  3. p==3;

  4. both 1 and 2

  5. both 2 and 3

Reveal answer Fill a bubble to check yourself
E Correct answer
Explanation

Both of option (2) and (3) are valid comparison statements. The operator == checks if the values of two operands are equal or not, if yes then condition becomes true.

Keep practicing — related questions

  • In which of the following options, C < A and D > B is definitely true?
  • Which of the following was/were the point(s) of debate that followed the celebration of International Day f...
  • If all the players follow the rules of the game while playing, then which of the following statements will ...
  • Which of the following follows the growth of lichens on barren rocks?
  • Directions: In the following question, out of the given alternatives, choose the one which best expresses t...
  • One-fourth of a number when added to two-third of a number gives 3. Which of the following equations repres...
  • Which of the following organelles of a bacterial cell acts as partial permeability barrier for large substr...
  • Fimbriae are found in which of the following?
Play the full quiz 🎤 Practise this topic out loud
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy