aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Masters of Computer Applications (C++)
  • Which one of the following can't be used as variable name?
Multiple choice

Which one of the following can't be used as variable name?

  1. virtual

  2. assignment

  3. pointer

  4. object

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

In C++, 'virtual' is a reserved keyword used for polymorphism. Reserved keywords cannot be used as variable names, while 'assignment', 'pointer', and 'object' are valid identifiers.

Keep practicing — related questions

  • Which of the following can be used to modify the value of a variable?
  • Which of the following can be used to initialize a newly declared Variable from an existing variable?
  • Which of the following can be used to initialize a newly declared Variable from an existing variable?
  • Which of the following can be used to initialize a newly declared variable from an existing variable?
  • Why is there a need for virtual function when we access the function (having same name as that in base clas...
  • Which of the following variables can be used as an argument to copy constructor?
  • Which of the following exists in C++ ?
  • If there is a pointer p to object of a base class and it contains the address of an object of derived class...
Play the full quiz 🎤 Practise this topic out loud

Practice this topic

  • Programming Fundamentals (2381 questions)
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy