aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Programming in C
  • Which of the following is an invalid expression?
Multiple choice

Which of the following is an invalid expression?

  1. a=b+c;

  2. a=b+5;

  3. 5=a;

  4. a=5;

  5. 5==a;

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

5=a; is an invalid statement. = is an assignment operator and left operand of the assignment operator must be a variable.

Keep practicing — related questions

  • Which of the following Boolean expressions is incorrect?
  • Which of the following Boolean expressions is incorrect?
  • Which of the following is NOT a valid symbol to use in an IF condition
  • Which of the following is NOT a valid symbol to use in an IF condition
  • Which of the following is NOT a valid symbol to use in an IF condition
  • Which of the following is NOT a valid symbol to use in an IF condition
  • Which of the following is the correct conversion of the infix expression A+B*C into postfix expression?
  • Directions: Read the following passage and answer the question that follows. Three generations of them were...
Play the full quiz 🎤 Practise this topic out loud
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy