PrimeGyan
Home
O Level
M1-R5
M2-R5
M3-R5
M4-R5
CCC
Programming
Online Test
Hindi
Home
Online-test
Test
C-practice-set-1
15
C++ Practice Set 1
C++ Practice Set 1
C++ Practice Set 1
1.
Which of the following provides a reuse mechanism?
Abstraction
Inheritance
Dynamic binding
Encapsulation
2.
Which of the following statement is correct?
Object is an instance of data type.
Object is an instance of a class.
Class is an instance of object.
Class is an instance of data type.
3.
Which of the following concepts means determining at runtime what method to invoke?
Dynamic binding
Data hiding
Dynamic loading
None
4.
Which of the following term is used for a function defined inside a class?
Class function
Classic function
Member function
Member Variable
5.
Who developed C++?
Brenden Eich
Bjarne Stroustrup
Gemes Gosling
Dennis Ritchie
6.
Which of the following user-defined header file extension used in c++?
hf
h
cpp
None
7.
Which of the following is not the member of class?
Virtual function
Friend function
Static function
Const function
8.
Which traversal of tree resembles the breadth first search of the graph?
Postorder
Inorder
Preorder
Levelorder
9.
The data structure required for Breadth First Traversal on a graph is?
Stack
Array
Queue
Tree
10.
Which of the following is not a noncomparison sort?
Counting sort
Bucket sort
Radix sort
Shell sort
11.
What is an external sorting algorithm?
Algorithm that uses tape or disk during the sort
Algorithm that uses main memory during the sort
Algorithm that involves swapping
Algorithm that are considered in place
12.
Which of the following is used for solving the N Queens Problem?
Greedy algorithm
Dynamic programming
Sorting
Backtracking
13.
Representation of data structure in memory is known as?
Storage structure
File structure
Recursive
Abstract Data Type
14.
Circular Queue is also known as ________.
Ring Buffer
Square Buffer
Curve Buffer
Rectangle Buffer
15.
Which of the following is a Divide and Conquer algorithm?
Bubble Sort
Merge Sort
Selection Sort
Heap Sort
16.
Which of the following is not a stable sorting algorithm?
Insertion sort
Selection sort
Bubble sort
Merge sort
17.
Which of the following is the correct identifier?
VAR_123
$var_name
__varname
None of the above
18.
Which of the following refers to characteristics of an array?
An array is a set of similar data items
An array is a set of distinct data items
An array can hold different types of datatypes
None of the above
19.
Single-dimensional arrays are always considered as linear arrays.
True
False
20.
Which of the following statement is true?
All objects of a class share all data members of class.
Objects of a class do not share non-static members. Every object has its own copy.
Objects of a class do not share codes of non-static methods, they have their own copy
None
21.
Which data type can be used to hold a wide character in C++?
unsigned char
int
wchar_t
None
22.
RTTI stands for_______
Runtime type identification
Runtime template identification
Robust Template Type Inheritance
None
23.
Which one is not a correct variable type in C++?
real
float
int
double
24.
A C++ code line ends with Semicolon(;).
True
False
25.
A ponter pointing to a variable that is not initialized is called ____
Null Pointer
Empty Pointer
Wild Pointer
Void Pointer
Submitting..
Welcome To PrimeGyan
Start test
Download