- C++ Basics
- C++ Home
- C++ Overview
- C++ Environment Setup
- C++ Basic Syntax
- C++ Comments
- C++ Data Types
- C++ Variable Types
- C++ Variable Scope
- C++ Constants/Literals
- C++ Modifier Types
- C++ Storage Classes
- C++ Operators
- C++ Loop Types
- C++ Decision Making
- C++ Functions
- C++ Numbers
- C++ Arrays
- C++ Strings
- C++ Pointers
- C++ References
- C++ Date & Time
- C++ Basic Input/Output
- C++ Data Structures
- C++ Object Oriented
- C++ Classes & Objects
- C++ Inheritance
- C++ Overloading
- C++ Polymorphism
- C++ Abstraction
- C++ Encapsulation
- C++ Interfaces
- C++ Advanced
- C++ Files and Streams
- C++ Exception Handling
- C++ Dynamic Memory
- C++ Namespaces
- C++ Templates
- C++ Preprocessor
- C++ Signal Handling
- C++ Multithreading
- C++ Web Programming
C++ Online Quiz
Following quiz provides Multiple Choice Questions (MCQs) related to C++ Framework. You will have to read all the given answers and click over the correct answer. If you are not sure about the answer then you can check the answer using Show Answer button. You can use Next Quiz button to check new set of questions in the quiz.
Answer : B
Explaination
The purpose of the constructor cannot be overridden in the derived class hence constructor cannot be a virtual.
Q 2 - Which of the following is not the keyword in C++?
Answer : C
Explaination
All the rest are valid keywords of C++.
Q 3 - We can have varying number of arguments for the overloaded form of () operator.
Answer : A
Explaination
Q 4 - Designer of C++ programming language.
Answer : D
Explaination
Q 5 - What is the output of the following program?
#include<iostream> using namespace std; main() { int *p = new int; delete p; delete p; cout<<"Done"; }
Answer : C
Explaination
It is invalid to release memory more than once.
#include<iostream> using namespace std; main() { int *p = new int; delete p; delete p; cout<<"Done"; }
Q 6 - Which type of data file is analogous to an audio cassette tape?
Answer : B
Explaination
As the access is linear.
Q 7 - An exception is __
Answer : A
Explaination
When the program is in execution phase the possible unavoidable error is called as an exception.
Q 8 - Compiler generates ___ file
Answer : B
Explaination
Compilation is the process of translating high level language statements into equivalent machine code, which is object code.
Answer : B
Explaination
g++ is GNU C++ compiler for linux. Borland and vc++ (Microsoft visual c++) for windows.
Q 10 - What is the output of the following program?
#include<iostream> using namespace std; main() { char s[] = "Fine"; *s = 'N'; cout<<s<<endl; }
Answer : B
Explaination
*s=āNā, changes the character at base address to āNā.
#include<iostream> using namespace std; main() { char s[] = "Fine"; *s = 'N'; cout<<s<<endl; }
To Continue Learning Please Login
Login with Google