Explore topic-wise MCQs in C++ Programming.

This section includes 839 Mcqs, each offering curated multiple-choice questions to sharpen your C++ Programming knowledge and support exam preparation. Choose a topic below to get started.

751.

Unix Operating System is an __________.

A. Time Sharing Operating System
B. Multi-User Operating System
C. Multi-tasking Operating System
D. All the Above
Answer» E.
752.

Nonprocedural access to a database:

A. Can provide a dramatic improvement in software productivity.
B. Allows a user to submit queries to a database without having to know how the data will be retrieved.
C. Is supported by more than one tool in most DBMSs.
D. All of the above.
Answer» E.
753.

Which of the following statements is not true of a desktop DBMS?

A. They usually run on personal computers or small servers.
B. They have a much lower cost than other DBMSs.
C. Although useful for processing ad hoc queries, they cannot perform transaction processing.
D. They usually support databases used by work teams and small businesses.
Answer» D. They usually support databases used by work teams and small businesses.
754.

Which of the following is not true of a DBMS?

A. It provides efficient storage and retrieval of data.
B. It has evolved over the years into a fairly simple set of tools that are relatively easy to master.
C. Marketplace demands and product innovation have led to the development of a broad range of features.
D. None of the above.
Answer» C. Marketplace demands and product innovation have led to the development of a broad range of features.
755.

Given the evolution of DBMSs, business data is now:

A. Stored in main memory and stays resident there even after the application that uses it terminates.
B. Stored only if it is relevant to business decisions.
C. Stored indefinitely in case it's needed since storing it is much cheaper now.
D. None of the above.
Answer» C. Stored indefinitely in case it's needed since storing it is much cheaper now.
756.

Data Manipulation Language enables users to

A. Retrieval of information stored in database
B. Insertion of new information into the database
C. Deletion of information from the database
D. All of the above
Answer» E.
757.

A Database Management System (DBMS) is

A. Collection of interrelated data
B. Collection of programs to access data
C. Collection of data describing one particular enterprise
D. All of the above
Answer» E.
758.

In the evolution of database technology, second-generation products are considered to be the first true DBMSs because:

A. They were "navigational", i.e. the programmer had to write code to navigate through a network of linked records.
B. Of their foundation on mathematical relations and associated operators.
C. They supported sequential and random searching.
D. They could manage multiple entities and relationships.
Answer» E.
759.

In the evolution of database technology, third-generation products supplanted second-generation systems because:

A. Nonprocedural database access was an improvement over navigational access.
B. IBM supported the CODASYL standard of database definition and manipulation.
C. Nonprocedural languages were still not very efficient.
D. All of the above.
Answer» B. IBM supported the CODASYL standard of database definition and manipulation.
760.

Which of the following statements is not true of information resource management?

A. It is very different and much more challenging than managing the other physical resources of an organization.
B. Its goal is to use information technology as a tool for processing, distributing, and integrating information throughout an organization.
C. Its emergence has created new management responsibilities.
D. None of the above.
Answer» B. Its goal is to use information technology as a tool for processing, distributing, and integrating information throughout an organization.
761.

Which statement is not true of the Three Schema Architecture?

A. It is an official standard of the American Standards Institute (ANSI).
B. It is an architecture for compartmentalizing database descriptions.
C. Its details have been widely adopted in third- and fourth-generation DBMSs.
D. None of the above.
Answer» D. None of the above.
762.

Which one of the following is not true regarding operating system?

A. kernel is the program that constitutes the central core of the operating system
B. kernel is the first part of operating system to load into memory during booting
C. kernel is made of various modules which can not be loaded in running operating system
D. kernel remains in the memory during the entire computer session
Answer» D. kernel remains in the memory during the entire computer session
763.

The OS X has

A. monolithic kernel
B. hybrid kernel
C. microkernel
D. monolithic kernel with modules
Answer» C. microkernel
764.

Multi processor system that computer system have are also called

A. parallel systems
B. tightly coupled system
C. loosely coupled system
D. both a and b
Answer» E.
765.

If a process fails, most operating system write the error information to a

A. log file
B. another running process
C. new file
D. none of the mentioned
Answer» B. another running process
766.

Which members are inherited but are not accessible in any case?

A. Private
B. Public
C. Protected
D. Both private and protected
Answer» B. Public
767.

Which of the following feature is not provided by C?

A. Pointers
B. Structures
C. References
D. Functions
Answer» D. Functions
768.

Which of the following is correct in C++?

A. Classes cannot have protected data members
B. Structures can have member functions
C. Class members are public by default
D. Structure members are private by default
Answer» C. Class members are public by default
769.

What is the difference between delete and delete[] in C++?

A. delete is used to delete normal objects whereas delete[] is used to pointer objects
B. delete is a keyword whereas delete[] is an identifier
C. delete is used to delete single object whereas delete[] is used to multiple(array/pointer of) objects
D. delete is syntactically correct but delete[] is wrong and hence will give an error if used in any case
Answer» D. delete is syntactically correct but delete[] is wrong and hence will give an error if used in any case
770.

What is the correct syntax of declaring array of pointers of integers of size 10 in C++?

A. int arr = new int[10];
B. int **arr = new int*[10];
C. int *arr = new int[10];
D. int *arr = new int*[10];
Answer» C. int *arr = new int[10];
771.

Which of the following is not a fundamental type is not present in C but present in C++?

A. int
B. float
C. bool
D. void
Answer» D. void
772.

Which of the following is correct about new and malloc?i) new is an operator whereas malloc is a functionii) new calls constructor malloc does notiii) new returns required pointer whereas malloc returns void pointer and needs to be typecast

A. i and ii
B. ii and iii
C. i and iii
D. i, ii and iii
Answer» E.
773.

Which of the following type is provided by C++ but not C?

A. int
B. bool
C. float
D. double
Answer» C. float
774.

What happens if a class does not have a name?

A. It will not have a constructor
B. It will not have a destructor
C. It is not allowed
D. It will neither have a constructor or destructor
Answer» C. It is not allowed
775.

Which of the following cannot be used with the virtual keyword?

A. Class
B. Member functions
C. Constructors
D. Destructors
Answer» D. Destructors
776.

How compile-time polymorphisms are implemented in C++?

A. Using Inheritance
B. Using Virtual functions
C. Using Templates
D. Using Inheritance and Virtual functions
Answer» D. Using Inheritance and Virtual functions
777.

Which operator is overloaded for a cout object?

A. >>
B. <<
C. <
D. >
Answer» C. <
778.

How run-time polymorphisms are implemented in C++?

A. Using Inheritance
B. Using Virtual functions
C. Using Templates
D. Using Inheritance and Virtual functions
Answer» E.
779.

Which concept means the addition of new components to a program as it runs?

A. Data hiding
B. Dynamic binding
C. Dynamic loading
D. Dynamic typing
Answer» D. Dynamic typing
780.

Which concept is used to implement late binding?

A. Virtual functions
B. Operator functions
C. Constant functions
D. Static functions
Answer» B. Operator functions
781.

Which of the following is a static polymorphism mechanism?

A. Function overloading
B. Operator overloading
C. Templates
D. All of the mentioned
Answer» E.
782.

Which of the following is true?I) All operators in C++ can be overloaded.II) The basic meaning of an operator can be changed.

A. I only
B. II only
C. Both I and II
D. Neither I nor II
Answer» E.
783.

Which of the following is accessed by a member function of a class?

A. The object of that class
B. All members of a class
C. The public part of a class
D. The private part of a class
Answer» C. The public part of a class
784.

Which of the following syntax for declaring a variable of struct STRUCT can be used in both C and C++?

A. struct STRUCT S;
B. STRUCT S;
C. Both struct STRUCT S; and STRUCT S;
D. Both C and C++ have different syntax
Answer» B. STRUCT S;
785.

Which of the following is correct about this pointer in C++?

A. this pointer is passed as a hidden argument in all the functions of a class
B. this pointer is passed as a hidden argument in all non-static functions of a class
C. this pointer is passed as a hidden argument in all static functions of a class
D. all of the mentioned
Answer» C. this pointer is passed as a hidden argument in all static functions of a class
786.

What if we define the below structure in C and C++?

A. Error in C but not in C++
B. Error in C++ but not in C
C. No error in both C and C++
D. Error in both C and C++
Answer» B. Error in C++ but not in C
787.

Which of the following operator is used with this pointer to access members of a class?

A. .
B. !
C. ->
D. ~
Answer» D. ~
788.

What is the size of a character type in C and C++?

A. 4 and 1
B. 1 and 4
C. 1 and 1
D. 4 and 4
Answer» D. 4 and 4
789.

Why this pointer is used?

A. To access the members of a class which have the same name as local variables in that scope
B. To access all the data stored under that class
C. To access objects of other class
D. All of the mentioned
Answer» B. To access all the data stored under that class
790.

Which of the following operator has left to right associativity?

A. Unary operator
B. Logical not
C. Array element access
D. addressof
Answer» D. addressof
791.

Which of the following is an exit-controlled loop?

A. for
B. while
C. do-while
D. all of the mentioned
Answer» D. all of the mentioned
792.

Which of the following is an entry-controlled loop?

A. for
B. while
C. do-while
D. both while and for
Answer» E.
793.

Which of the following is C++ equivalent for printf()?

A. cin
B. cout
C. print
D. input
Answer» C. print
794.

Which of the following is the correct difference between cin and scanf()?

A. both are the same
B. cin is a stream object whereas scanf() is a function
C. scanf() is a stream object whereas cin is a function
D. cin is used for printing whereas scanf() is used for reading input
Answer» C. scanf() is a stream object whereas cin is a function
795.

What is dynamic binding?

A. The process of linking the actual code with a procedural call during run-time
B. The process of linking the actual code with a procedural call during compile-time
C. The process of linking the actual code with a procedural call at any-time
D. All of the mentioned
Answer» B. The process of linking the actual code with a procedural call during compile-time
796.

Which of the following is C++ equivalent for scanf()?

A. cin
B. cout
C. print
D. input
Answer» B. cout
797.

What is name mangling in C++?

A. The process of adding more information to a function name so that it can be distinguished from other functions by the compiler
B. The process of making common names for all the function of C++ program for better use
C. The process of changing the names of variable
D. The process of declaring variables of different types
Answer» B. The process of making common names for all the function of C++ program for better use
798.

What is static binding?

A. The process of linking the actual code with a procedural call during run-time
B. The process of linking the actual code with a procedural call during compile-time
C. The process of linking the actual code with a procedural call at any-time
D. All of the mentioned
Answer» C. The process of linking the actual code with a procedural call at any-time
799.

What is the size of a boolean variable in C++?

A. 1 bit
B. 1 byte
C. 4 bytes
D. 2 bytes
Answer» B. 1 byte
800.

In which part of the for loop termination condition is checked?for(I;II;III){IV}

A. I
B. II
C. III
D. IV
Answer» C. III