All Exams Test series for 1 year @ ₹349 only
Question

Which of the following statement is not True?

This question was previously asked in
UGC NET 2024 Computer Science and Applications Question Paper (23-Aug-2024) (Shift 1)
The correct answer is

The scope resolution operator (::) can be overloaded like normal operators

C++ lets most operators be overloaded for user-defined types, but a few operators are excluded because they work at compile time on names and scopes rather than on values: the scope resolution operator ::, the member access operator ., the pointer-to-member operator .*, the conditional operator ?: and sizeof.

The statement about static data members is true: a static data member has a single copy shared by all objects and is used to hold values common to the whole class, such as an object counter.

The statement about friend functions is true: a friend function is not a member, so it is called like an ordinary function (f(obj)) and does not need an object with the dot operator to be invoked.

The statement about multiple inheritance is true: in the diamond pattern a class inheriting from two parents that share a grandparent gets two copies of the grandparent's members; declaring the common base as a virtual base class keeps a single copy.

The statement that :: can be overloaded like normal operators is false, because :: is on the list of operators that cannot be overloaded.

The scope resolution operator (::) can be overloaded like normal operators option is correct.

Was this answer helpful?

Similar Questions

  1. How to express that some person keeps animals as pets ?

  2. What is true about UML stereotypes ?

  3. Which of the following is not a member of class ?

  4. Which of the following differentiates between overloaded functions and overridden functions ?

  5. All the classes necessary for windows programming are available in the module :

  6. Superficially the term “object-oriented”, means that, we organize software as a

  7. The “part-whole”, or “a-part-of”, relationship in which objects representing the components of something associated with an object representing the entire assembly is called as

  8. The pure object oriented programming language with extensive metadata available and modifiable at run time is

  9. A friend function can be used to

  10. Match the following w.r.t. programming languages :

    List - IList - II
    (a) JAVA(i) Dynamically object oriented
    (b) Python(ii) Statically Non-object oriented
    (c) Prolog(iii) Statically object oriented
    (d) ADA(iv) Dynamically non-object oriented

    Codes :


Important Questions from OOPs concept

  1. Which among the following best describes polymorphism ?
  2. Which operator is used for dynamic memory allocation in C++?

  3. Which one of the following is correct, when a class grants friend status to another class ?
  4. When a method in a subclass has the same name and type signatures as a method in the superclass, then the method in the subclass _____ the method in the superclass.
  5. Which statements is correct regarding main () function in C++?

    I. It is a user defined function.

    II. It is a pre-defined function.

Need Expert Advice?
Upcoming Exams
CTET
December 12, 2026
WB SET
December 13, 2026
CBSE UGC NET
December 14, 2026
CSIR UGC NET
December 19, 2026
Test Series
UGC NET img
Teaching
UGC NET (Paper 2) December 2026 Mock Test Series
799 Tests 2 Tests Free
300 Attempts
4.4(45)
English, Hindi
More Questions from UGC NET

Start Your Preparation with Prepp Mobile App

Download the app from Google Play & App Store
Download the app from Google Play & App Store
Prepp Mobile App