Sei sulla pagina 1di 158

Solved Multiple Choice Questions of Data Structure

For more MCQs of Data Structure visit: http://www.siteforinfotech.com/p/data-structure-mcq-sets.html


Solved Multiple Choice Questions of Data Structure

Fundamentals of Data Structure

Set-1

1. Which if the following is/are the levels of implementation of data structure


A) Abstract level
B) Application level
C) Implementation level
D) All of the above
2. A binary search tree whose left subtree and right subtree differ in height by at most 1 unit is called
A) AVL tree
B) Red-black tree
C) Lemma tree
D) None of the above
3. ……………….. level is where the model becomes compatible executable code
A) Abstract level
B) Application level
C) Implementation level
D) All of the above
4. Stack is also called as
A) Last in first out
B) First in last out
C) Last in last out
D) First in first out
5. Which of the following is true about the characteristics of abstract data types?
i) It exports a type.
ii) It exports a set of operations
A) True, False
B) False, True
C) True, True
D) False, False
6. …………… is not the component of data structure.
A) Operations
B) Storage Structures
C) Algorithms
D) None of above
7. Which of the following is not the part of ADT description?
A) Data
B) Operations
C) Both of the above
D) None of the above

For more MCQs of Data Structure visit: http://www.siteforinfotech.com/p/data-structure-mcq-sets.html


Solved Multiple Choice Questions of Data Structure
8. Inserting an item into the stack when stack is not full is called …………. Operation and deletion of
item form the stack, when stack is not empty is called ………..operation.
A) push, pop
B) pop, push
C) insert, delete
D) delete, insert

9. ……………. Is a pile in which items are added at one end and removed from the other.
A) Stack
B) Queue
C) List
D) None of the above
10. ………… is very useful in situation when data have to stored and then retrieved in reverse order.
A) Stack
B) Queue
C) List
D) Link list
11. Which of the following is not the type of queue?
A) Ordinary queue
B) Single ended queue
C) Circular queue
D) Priority queue
12. The property of binary tree is
A) The first subset is called left subtree
B) The second subtree is called right subtree
C) The root cannot contain NULL
D) The right subtree can be empty
13. State true or false.
i) The degree of root node is always zero.
ii) Nodes that are not root and not leaf are called as internal nodes.
A) True, True
B) True, False
C) False, True
D) False, False
14. Any node is the path from the root to the node is called
A) Successor node
B) Ancestor node
C) Internal node
D) None of the above
15. State true of false.
i) A node is a parent if it has successor nodes.
ii) A node is child node if out degree is one.
A) True, True

For more MCQs of Data Structure visit: http://www.siteforinfotech.com/p/data-structure-mcq-sets.html


Solved Multiple Choice Questions of Data Structure
B) True, False
C) False, True
D) False, False
16. ………………. is not an operation performed on linear list
a) Insertion b) Deletion c) Retrieval d) Traversal
A) only a,b and c
B) only a and b
C) All of the above
D) None of the above
17. Which is/are the application(s) of stack
A) Function calls
B) Large number Arithmetic
C) Evaluation of arithmetic expressions
D) All of the above
18. A …………… is an acyclic digraph, which has only one node with indegree 0, and other nodes have
indegree 1.
A) Directed tree
B) Undirected tree
C) Dis-joint tree
D) Direction oriented tree
19. …………………. Is a directed tree in which outdegree of each node is less than or equal to two.
A) Unary tree
B) Binary tree
C) Dinary tree
D) Both B and C
20. State true or false.
i) An empty tree is also a binary tree.
ii) In strictly binary tree, the outdegree of every node is either o or 2.
A) True, False
B) False, True
C) True, True
D) False, False

Answers
1. D) All of the above
2. A) AVL tree
3. C) Implementation level
4. A) Last in first out
5. C) True, True
6. D) None of above
7. D) None of the above
8. A) push, pop
9. B) Queue
For more MCQs of Data Structure visit: http://www.siteforinfotech.com/p/data-structure-mcq-sets.html
Solved Multiple Choice Questions of Data Structure
10. A) Stack
11. B) Single ended queue
12. D) The right subtree can be empty
13. C) False, True
14. B) Ancestor node
15. B) True, False
16. D) None of the above
17. D) All of the above
18. A) Directed tree
19. B) Binary tree
20. C) True, True

Related Posts

• Solved MCQ on Stack and Queue in Data Structure set-1


• Interview Questions on Stack and Queue in Data Structure set-2
• Solved MCQ on Tree and Graph in Data Structure set-1
• Objective Questions on Tree and Graph in Data Structure set-2
• Solved MCQ of Data Structure Set - 1
• Solved MCQ of Data Structure Set - 2
• Solved Objective questions of computer data structure set-3
• Solved MCQ of Data Structure and Algorithm set-4
• MCQ of Data Structure and Algorithm with Answer set-5

For more MCQs of Data Structure visit: http://www.siteforinfotech.com/p/data-structure-mcq-sets.html


Solved Multiple Choice Questions of Data Structure

Set-2

1. A directed graph is ………………. if there is a path from each vertex to every other vertex in the
digraph.
A) Weakly connected
B) Strongly Connected
C) Tightly Connected
D) Linearly Connected
2. In the …………….. traversal we process all of a vertex’s descendents before we move to an adjacent
vertex.
A) Depth First
B) Breadth First
C) With First
D) Depth Limited

3. State True of False.


i) Network is a graph that has weights or costs associated with it.
ii) An undirected graph which contains no cycles is called a forest.
iii) A graph is said to be complete if there is no edge between every pair of vertices.
A) True, False, True
B) True, True, False
C) True, True, True
D) False, True, True
4. Match the following.
a) Completeness i) How long does it take to find a solution
b) Time Complexity ii) How much memory need to perform the search.
c) Space Complexity iii) Is the strategy guaranteed to find the solution when there in one.
A) a-iii, b-ii, c-i
B) a-i, b-ii, c-iii
C) a-iii, b-i, c-ii
D) a-i, b-iii, c-ii
5. The number of comparisons done by sequential search is ………………
A) (N/2)+1
B) (N+1)/2
C) (N-1)/2
D) (N+2)/2
6. In ……………, search start at the beginning of the list and check every element in the list.
A) Linear search
B) Binary search
C) Hash Search
D) Binary Tree search
7. State True or False.
i) Binary search is used for searching in a sorted array.
For more MCQs of Data Structure visit: http://www.siteforinfotech.com/p/data-structure-mcq-sets.html
Solved Multiple Choice Questions of Data Structure
ii) The time complexity of binary search is O(logn).
A) True, False
B) False, True
C) False, False
D) True, True
8. Which of the following is not the internal sort?
A) Insertion Sort
B) Bubble Sort
C) Merge Sort
D) Heap Sort
9. State True or False.
i) An undirected graph which contains no cycles is called forest.
ii) A graph is said to be complete if there is an edge between every pair of vertices.
A) True, True
B) False, True
C) False, False
D) True, False
10. A graph is said to be ……………… if the vertices can be split into two sets V1 and V2 such there are
no edges between two vertices of V1 or two vertices of V2.
A) Partite
B) Bipartite
C) Rooted
D) Bisects
11. In a queue, the initial values of front pointer f rare pointer r should be ….. and …….. respectively.
A) 0 and 1
B) 0 and -1
C) -1 and 0
D) 1 and 0
12. In a circular queue the value of r will be ..
A) r=r+1
B) r=(r+1)% [QUEUE_SIZE – 1]
C) r=(r+1)% QUEUE_SIZE
D) r=(r-1)% QUEUE_SIZE
13. Which of the following statement is true?
i) Using singly linked lists and circular list, it is not possible to traverse the list backwards.
ii) To find the predecessor, it is required to traverse the list from the first node in case of singly linked
list.
A) i-only
B) ii-only
C) Both i and ii
D) None of both
14. The advantage of …………….. is that they solve the problem if sequential storage representation.
But disadvantage in that is they are sequential lists.

For more MCQs of Data Structure visit: http://www.siteforinfotech.com/p/data-structure-mcq-sets.html


Solved Multiple Choice Questions of Data Structure
A) Lists
B) Linked Lists
C) Trees
D) Queues
15. What will be the value of top, if there is a size of stack STACK_SIZE is 5
A) 5
B) 6
C) 4
D) None
16. ………… is not the operation that can be performed on queue.
A) Insertion
B) Deletion
C) Retrieval
D) Traversal

17. There is an extra element at the head of the list called a ……….
A) Antinel
B) Sentinel
C) List header
D) List head
18. A graph is a collection of nodes, called ………. And line segments called arcs or ……….. that connect
pair of nodes.
A) vertices, edges
B) edges, vertices
C) vertices, paths
D) graph node, edges
19. A ……….. is a graph that has weights of costs associated with its edges.
A) Network
B) Weighted graph
C) Both A and B
D) None A and B
20. In general, the binary search method needs no more than ……………. comparisons.
A) [log2n]-1
B) [logn]+1
C) [log2n]
D) [log2n]+1

For more MCQs of Data Structure visit: http://www.siteforinfotech.com/p/data-structure-mcq-sets.html


Solved Multiple Choice Questions of Data Structure

Answers

1. B) Strongly Connected
2. A) Depth First
3. B) True, True, False
4. C) a-iii, b-i, c-ii
5. B) (N+1)/2
6. A) Linear search
7. D) True, True
8. C) Merge Sort
9. A) True, True
10. B) Bipartite
11. B) 0 and -1
12. C) r=(r+1)% QUEUE_SIZE
13. C) Both i and ii
14. B) Linked Lists
15. C) 4
16. D) Traversal
17. B) Sentinel
18. A) vertices, edges
19. C) Both A and B
20. D) [log2n]+1

Related Posts

• Solved MCQ on Stack and Queue in Data Structure set-1


• Interview Questions on Stack and Queue in Data Structure set-2
• Solved MCQ on Tree and Graph in Data Structure set-1
• Objective Questions on Tree and Graph in Data Structure set-2
• Solved MCQ of Data Structure Set - 1
• Solved MCQ of Data Structure Set - 2
• Solved Objective questions of computer data structure set-3
• Solved MCQ of Data Structure and Algorithm set-4
• MCQ of Data Structure and Algorithm with Answer set-5

For more MCQs of Data Structure visit: http://www.siteforinfotech.com/p/data-structure-mcq-sets.html


Solved Multiple Choice Questions of Data Structure

MCQ on List and Linked List

Set-1

1) Linked lists are best suited .....


A. for relatively permanent collections of data.
B. for the size of the structure and the data in the structure are constantly changing.
C. data structure
D. for none of above situation

2) The operation of processing each element in the list is known as ......


A. sorting
B. merging
C. inserting
D. traversal

3) The situation when in a linked list START=NULL is ....


A. Underflow
B. Overflow
C. Houseful
D. Saturated

4) Each node in singly linked list has ........ fields.


A. 2
B. 3
C. 1
D. 4

5) Which of the following is two way lists?


A. Grounded header list
B. Circular header list
C. Linked list with header and trailer nodes
D. List traversed in two directions
6) Which is the pointer associated with the availability list?
A. FIRST
B. AVAIL
C. TOP
D. REAR

7) Value of first linked list index is ....


A. 0
B. 1

For more MCQs of Data Structure visit: http://www.siteforinfotech.com/p/data-structure-mcq-sets.html


Solved Multiple Choice Questions of Data Structure
C. -1
D. 2

8) In linked lists there are no NULL links in


A. single linked list
B. linear doubly linked list
C. circular linked list
D. linked list

9) Each node in a linked list must contain at least .....


A. Three fields
B. Two fields
C. Four fields
D. Five fields

10) The dummy header in linked list contain.....


A. first record of the actual data
B. last record of the actual data
C. pointer to the last record of the actual data
D. middle record of the actual data

11) In a linked list the .......... field contains the address of next element in the list.
A. Link field
B. Next element field
C. Start field
D. Info field

12) LLINK is the pointer pointing to the ...


A. successor node
B. predecessor node
C. head node
D. last node

13) .......... refers to a linear collection of data items.


A. List
B. Tree
C. Graph
D. Edge

14) A run list is......


A. small batches of records from a file
B. number of elements having same value
C. number of records

For more MCQs of Data Structure visit: http://www.siteforinfotech.com/p/data-structure-mcq-sets.html


Solved Multiple Choice Questions of Data Structure
D. number of files in external storage

15) A ...... indicates the end of the list.


A. Guard
B. Sentinel
C. End pointer
D. Last pointer

16) A ........ is a linear list in which insertions and deletions are made to from either end of the structure.
A. circular queue
B. random of queue
C. priority
D. dequeue

17) Indexing the........ element in the list is not possible in linked lists.
A. middle
B. first
C. last
D. anywhere in between

18) A linear list in which the pointer points only to the successive node is......
A. singly linked list
B. circular linked list
C. doubly linked list
D. none of the above

19) .......... may take place only when there is some minimum amount (or) no space left in free storage
list.
A. Memory management
B. Garbage collection
C. Recycle bin
D. Memory management

20) A linear list in which the last node points to the first node is ........
A. singly linked list
B. circular linked list
C. doubly linked list
D. none of the above

For more MCQs of Data Structure visit: http://www.siteforinfotech.com/p/data-structure-mcq-sets.html


Solved Multiple Choice Questions of Data Structure

Answers

1) B. for the size of the structure and the data in the structure are constantly changing.
2) D. traversal
3) A. Underflow
4) A. 2
5) D. List traversed in two directions
6) B. AVAIL
7) A. 0
8) C. circular linked list
9) B. Two fields
10) A. first record of the actual data
11) A. Link field
12) B. predecessor node
13) A. List
14) A. small batches of records from a file
15) B. Sentinel
16) D. dequeue
17) A. middle
18) A. singly linked list
19) B. Garbage collection
20) B. circular linked list

Related Posts

• Solved MCQ on Stack and Queue in Data Structure set-1


• Interview Questions on Stack and Queue in Data Structure set-2
• Solved MCQ on Tree and Graph in Data Structure set-1
• Objective Questions on Tree and Graph in Data Structure set-2
• Solved MCQ of Data Structure Set - 1
• Solved MCQ of Data Structure Set - 2
• Solved Objective questions of computer data structure set-3
• Solved MCQ of Data Structure and Algorithm set-4
• MCQ of Data Structure and Algorithm with Answer set-5

For more MCQs of Data Structure visit: http://www.siteforinfotech.com/p/data-structure-mcq-sets.html


Solved Multiple Choice Questions of Data Structure

Set-2

1) To insert a new node in linked list free node will be available in........
A. Available list
B. Avail list
C. Free node list
D. Memory space list

2) A singly linked list is also called as........


A. linked list
B. one way chain
C. two way chain
D. right link

3) A ..... list is a header list where the node points back to the header node.
A. Circular header
B. Grounded header
C. Two way header
D. One way header

4) A doubly linked list has .......... pointers with each node.


A. 0
B. 1
C. 2
D. 3

5) Header linked lists are frequently used for maintaining........ in memory.


A. Polynomials
B. Binomal
C. Trinomial
D. Quadratic equation

6) The pointer that points to the first node in the list is........
A. FIRST
B. AVAIL
C. TOP
D. REAR

7) Two-way list may be maintained in memory by means of.............


A. Queues
For more MCQs of Data Structure visit: http://www.siteforinfotech.com/p/data-structure-mcq-sets.html
Solved Multiple Choice Questions of Data Structure
B. Linear arrays
C. Non linear arrays
D. Stacks

8) A doubly linked list is also called as..........


A. linked list
B. one way chain
C. two way chain
D. right link

9) The list that requires two pointer variables FIRST and LAST is called........
A. Circular list
B. Header list
C. One way list
D. Two way list

10) If the availability list is null, then the condition is said to be.........
A. nil block
B. availability list underflow
C. availability list overflow
D. memory loss

11) The list which has its own pointer is called........


A. pointer list
B. self pointer
C. free pool
D. own pointer
12) Which of the following is two way lists?
A. Grounded header list
B. Circular header list
C. Linked list with header and trailer nodes
D. None of the above

13) A .......... is a header list where the last node contains the null pointer.
A. grounded header list
B. bottom header list
C. down header list
D. dropped header list

14) RLINK is the pointer pointing to the...


A. successor node
B. predecessor node
C. head node

For more MCQs of Data Structure visit: http://www.siteforinfotech.com/p/data-structure-mcq-sets.html


Solved Multiple Choice Questions of Data Structure
D. last node

15) A ............. is a header list where the last node points back to the header node.
A. rounded header list
B. circular header list
C. common header list
D. forward header list

16) In a linked list, insertion can be done as.........


A. beginning
B. end
C. middle
D. all of the above

17) In a two-way lists each node is divided into .......parts.


A. 1
B. 2
C. 3
D. 4

18) The disadvantage in using a circular linked list is .......


A. it is possible to get into infinite loop
B. last node points to fist node.
C. time consuming
D. requires more memory space.

19) Which of the following conditions checks available free space in avail list?
A. Avail=Null
B. Null=Avail
C. Avail=Max stack
D. Avail=Top

20) A linear list in which each node has point to the predecessor and successors nodes is called ........
A. singly linked list
B. circular linked list
C. doubly linked list
D. linear linked list

For more MCQs of Data Structure visit: http://www.siteforinfotech.com/p/data-structure-mcq-sets.html


Solved Multiple Choice Questions of Data Structure

Answers

1) B. Avail list
2) B. one way chain
3) A. Circular header
4) C. 2
5) A. Polynomials
6) A. FIRST
8) C. two way chain
9) D. Two way list
10) B. availability list underflow
11) C. free pool
12) D. None of the above
13) A. grounded header list
14) A. successor node
15) B. circular header list
16) D. all of the above
17) C. 3
18) A. it is possible to get into infinite loop
19) A. Avail=Null
20) C. doubly linked list

Related Posts

• Solved MCQ on Stack and Queue in Data Structure set-1


• Interview Questions on Stack and Queue in Data Structure set-2
• Solved MCQ on Tree and Graph in Data Structure set-1
• Objective Questions on Tree and Graph in Data Structure set-2
• Solved MCQ of Data Structure Set - 1
• Solved MCQ of Data Structure Set - 2
• Solved Objective questions of computer data structure set-3
• Solved MCQ of Data Structure and Algorithm set-4
• MCQ of Data Structure and Algorithm with Answer set-5

For more MCQs of Data Structure visit: http://www.siteforinfotech.com/p/data-structure-mcq-sets.html


Solved Multiple Choice Questions of Data Structure

MCQ on Searching, Merging and Sorting Methods

Set-1

1) Finding the location of a given item in a collection of items is called......


A. Discovering
B. Finding
C. Searching
D. Mining

1) C. Searching

2) Which of the following is an external sorting?


A. Insertion Sort
B. Bubble Sort
C. Merge Sort
D. Tree Sort

2) C. Merge Sort

3) Very slow way of sorting is..........


A. Insertion sort
B. Heap sort
C. Bubble sort
D. Quick sort

3) A. Insertion sort

4) Which of the following is an internal sorting?


A. Tape Sort
B. 2-way Merge Sort
C. Merge Sort
D. Tree Sort

4) D. Tree Sort

5) Sorting a file F usually refers to sorting F with respect to a particular key called.....
A. Basic key
B. Primary key
C. Starting key

For more MCQs of Data Structure visit: http://www.siteforinfotech.com/p/data-structure-mcq-sets.html


Solved Multiple Choice Questions of Data Structure
D. Index key

5) B. Primary key

6) The time complexity of quick sort is........


A. O(n)
B. O(logn)
C. O(n2)
D. O(n logn)

6) D. O(n logn)

7) Selection sort first finds them .......... element in the list and put it in the first position.
A. Middle element
B. Largest element
C. Last element
D. Smallest element

7) D. Smallest element

8) Quick sort is also known as........


A. merge sort
B. tree sort
C. shell sort
D. partition and exchange sort

8) D. partition and exchange sort

9) The operation that combines the element is of A and B in a single sorted list C with n=r+s element is
called....
A. Inserting
B. Mixing
C. Merging
D. Sharing

9) C. Merging

10) A tree sort is also known as ......... sort.


A. quick

For more MCQs of Data Structure visit: http://www.siteforinfotech.com/p/data-structure-mcq-sets.html


Solved Multiple Choice Questions of Data Structure
B. shell
C. heap
D. selection

10) C. heap

11) .......... sorting is good to use when alphabetizing large list of names.
A. Merge
B. Heap
C. Radix
D. Bubble

11) C. Radix

12) The easiest sorting is........


A. quick sort
B. shell sort
C. heap sort
D. selection sort

12) D. selection sort

13) Which of the following sorting algorithm is of divide and conquer type?
A. Bubble sort
B. Insertion sort
C. Quick sort
D. Merge sort

13) C. Quick sort

14) Merging k sorted tables into a single sorted table is called......


A. k way merging
B. k th merge
C. k+1 merge
D. k-1 merge

14) A. k way merging

For more MCQs of Data Structure visit: http://www.siteforinfotech.com/p/data-structure-mcq-sets.html


Solved Multiple Choice Questions of Data Structure
15) The function used to modify the way of sorting the keys of records is called........
A. Indexing function
B. Hash function
C. Addressing function
D. All of the above

15) B. Hash function

16) If the number of record to be sorted large and the key is short, then ...... sorting can be efficient.
A. Merge
B. Heap
C. Radix
D. Bubble

16) C. Radix

17) The total number of comparisons in a bubble sort is ....


A. O(n logn)
B. O(2n)
C. O(n2)
D. O(n)

17) A. O(n logn)

18) If the number of record to be sorted large and the key is long, then ...... sorting can be efficient.
A. Merge
B. Heap
C. Quick
D. Bubble

18) C. Quick

19) The time complexity of heap sort is ....


A. O(n)
B. O(logn)
C. O(n2)
D. O(n logn)

19) D. O(n logn)

For more MCQs of Data Structure visit: http://www.siteforinfotech.com/p/data-structure-mcq-sets.html


Solved Multiple Choice Questions of Data Structure

20) The complexity of selection sort is .......


A. O(n)
B. O(n2)
C. O(n logn)
D. O(logn)

20) B. O(n2)

Related Posts

• Solved MCQ on Stack and Queue in Data Structure set-1


• Interview Questions on Stack and Queue in Data Structure set-2
• Solved MCQ on Tree and Graph in Data Structure set-1
• Objective Questions on Tree and Graph in Data Structure set-2
• Solved MCQ of Data Structure Set - 1
• Solved MCQ of Data Structure Set - 2
• Solved Objective questions of computer data structure set-3
• Solved MCQ of Data Structure and Algorithm set-4

For more MCQs of Data Structure visit: http://www.siteforinfotech.com/p/data-structure-mcq-sets.html


Solved Multiple Choice Questions of Data Structure

Set-2

1) The worst case occurs in linear search algorithm when.......


A. Item is somewhere in the middle of the array
B. Item is not in the array at all
C. Item is the last element in the array
D. Item is the last element in the array or item is not there at all

1) D. Item is the last element in the array or item is not there at all

2) If the number of records to be sorted is small, then ...... sorting can be efficient.
A. Merge
B. Heap
C. Selection
D. Bubble

2) C. Selection

3) The complexity of sorting algorithm measures the ...... as a function of the number n of items to be
sorter.
A. average time
B. running time
C. average-case complexity
D. case-complexity

3) B. running time

4) Which of the following is not a limitation of binary search algorithm?


A. must use a sorted array
B. requirement of sorted array is expensive when a lot of insertion and deletions are needed
C. there must be a mechanism to access middle element directly
D. binary search algorithm is not efficient when the data elements more than 1500.

4) D. binary search algorithm is not efficient when the data elements more than 1500.

5) The Average case occurs in linear search algorithm..........


A. when item is somewhere in the middle of the array
B. when item is not the array at all
For more MCQs of Data Structure visit: http://www.siteforinfotech.com/p/data-structure-mcq-sets.html
Solved Multiple Choice Questions of Data Structure
C. when item is the last element in the array
D. Item is the last element in the array or item is not there at all

5) A. when item is somewhere in the middle of the array

6) Binary search algorithm cannot be applied to...


A. sorted linked list
B. sorted binary trees
C. sorted linear array
D. pointer array

6) D. pointer array

7) Complexity of linear search algorithm is.........


A. O(n)
B. O(logn)
C. O(n2)
D. O(n logn)

7) A. O(n)

8) Sorting algorithm can be characterized as......


A. Simple algorithm which require the order of n2 comparisons to sort n items.
B. Sophisticated algorithms that require the O(nlog2n) comparisons to sort items.
C. Both of the above
D. None of the above

8) C. Both of the above

9) The complexity of bubble sort algorithm is.....


A. O(n)
B. O(logn)
C. O(n2)
D. O(n logn)

9) C. O(n2)

10) State True or False for internal sorting algorithms.


i) Internal sorting are applied when the entire collection if data to be sorted is small enough that the
sorting can take place within main memory.

For more MCQs of Data Structure visit: http://www.siteforinfotech.com/p/data-structure-mcq-sets.html


Solved Multiple Choice Questions of Data Structure
ii) The time required to read or write is considered to be significant in evaluating the performance of
internal sorting.
A. i-True, ii-True
B. i-True, ii-False
C. i-False, ii-True
D. i-False, ii-False

10) B. i-True, ii-False

11) The complexity of merge sort algorithm is......


A. O(n)
B. O(logn)
C. O(n2)
D. O(n logn)

11) D. O(n logn)

12) ............order is the best possible for array sorting algorithm which sorts n item.
A. O(n logn)
B. O(n2)
C. O(n+logn)
D. O(logn)

12) C. O(n+logn)

13) ............ is the method used by card sorter?


A. Radix sort
B. Insertion
C. Heap
D. Quick

13) A. Radix sort

14)........ Sorting algorithm is frequently used when n is small where n is total number of elements.
A. Heap
B. Insertion
C. Bubble
D. Quick

For more MCQs of Data Structure visit: http://www.siteforinfotech.com/p/data-structure-mcq-sets.html


Solved Multiple Choice Questions of Data Structure
14) B. Insertion

15) Which of the following is not the required condition for binary search algorithm?
A. The list must be sorted
B. There should be the direct access to the middle element in any sub list
C. There must be mechanism to delete and/or insert elements in list.
D. Number values should only be present

15) C. There must be mechanism to delete and/or insert elements in list.

16) Partition and exchange sort is........


A. quick sort
B. tree sort
C. heap sort
D. bubble sort

16) A. quick sort

For more MCQs of Data Structure visit: http://www.siteforinfotech.com/p/data-structure-mcq-sets.html


Solved Multiple Choice Questions of Data Structure

Solved MCQ on Stack and Queue

Set-1

1) ......... form of access is used to add and remove nodes from a queue.
A. LIFO, Last In First Out
B. FIFO, First In First Out
C. Both a and b
D. None of these

1) B. FIFO, First In First Out

2) ........ form of access is used to add remove nodes from a stack.


A. LIFO
B. FIFO
C. Both A and B
D. None of these

2) A. LIFO

3) New nodes are added to the ......... of the queue.


A. Front
B. Back
C. Middle
D. Both A and B

3) B. Back

4) What happens when you push a new node onto a stack?


A. The new node is placed at the front of the linked list
B. The new node is placed at the back of the linked list
C. The new node is placed at the middle of the linked list
D. No Changes happens

4) A. The new node is placed at the front of the linked list

5) Which of the following name does not relate to stacks?


A. FIFO lists
B. LIFO lists
C. Piles
D. Push down lists

For more MCQs of Data Structure visit: http://www.siteforinfotech.com/p/data-structure-mcq-sets.html


Solved Multiple Choice Questions of Data Structure
5) A. FIFO lists

6) The term push and pop is related to


A. Array
B. Lists
C. Stacks
D. Trees

6) C. Stacks

7) The elements are removal from a stack in .......... order.


A. Reverse
B. Hierarchical
C. Alternative
D. Sequential

7) A. Reverse

8) ...... is the term used to insert an element into stack?


A. Push
B. Pull
C. Pop
D. Pump

8) A. Push

9) .......... is the term used to delete an element from the stack?


A. Push
B. Pull
C. Pop
D. Pump

9) C. Pop

10) A pointer variable which contains the location at the top element of the stack is called.....
A. Top
B. Last
C. Final
D. End

10) A. Top

For more MCQs of Data Structure visit: http://www.siteforinfotech.com/p/data-structure-mcq-sets.html


Solved Multiple Choice Questions of Data Structure

Set-2

1) Before inserting into stack one must check the condition.........


A. Overflow
B. Underflow
C. Maximum elements
D. Existing elements

1) A. Overflow

2) Before deletion condition into stack ...... has to be checked.


A. Overflow
B. Underflow
C. Maximum elements
D. Existing elements

2) B. Underflow

3) When does Top value of stack change in insertion process?


A. Before insertion
B. After insertion
C. At the time of insertion
D. While checking overflow

3) A. Before insertion

4) Deletion in the linked stack takes place by deleting........


A. Node pointed by the start process.
B. End of the list
C. Beginning of the list
D. Middle of the list

4) A. Node pointed by the start process

5) The condition........ Indicate the queue is empty.


A. Front=Null
B. Null=Front
C. Front=Rear
D. Rear=Null

5) A. Front=Null

For more MCQs of Data Structure visit: http://www.siteforinfotech.com/p/data-structure-mcq-sets.html


Solved Multiple Choice Questions of Data Structure
6) The value of REAR is increased by 1 when.......
A. An element is deleted in a queue
B. An element is traversed in a queue
C. An element is added in a queue
D. An element is merged in a queue

6) C. An element is added in a queue

7) The term dequeue is the contraction of the name........


A. Double ended queue
B. Double side queue
C. Double headed queue
D. Double address queue

7) A. Double ended queue

8) ............. is a collection of elements such that each element has been assigned a processing priority.
A. Priority queue
B. Procedure queue
C. Main queue
D. Interrupt queue

8) A. Priority queue

9) Link fields hold pointers to the .......... element in the linked representation of stack.
A. Neighboring
B. Last
C. First
D. Middle

9) A. Neighboring

10) Reversing a great deal of space for each stack in memory will...........
A. Decrease the numbers of times overflow may occur
B. Increase the numbers of times overflow may occur
C. Increase the number of times underflow may occur
D. Increase the number of times underflow may occur.

10) A. Decrease the numbers of times overflow may occur

For more MCQs of Data Structure visit: http://www.siteforinfotech.com/p/data-structure-mcq-sets.html


Solved Multiple Choice Questions of Data Structure

Solved MCQ on Tree and Graph

Set-1

1) The operation of processing each element in the list is known as......


A. sorting
B. merging
C. inserting
D. traversal

1) D. traversal

2) Binary trees with threads are called as.......


A. Threaded trees
B. Pointer trees
C. Special trees
D. Special pointer trees

2) A. Threaded trees

3) In Binary trees nodes with no successor are called......


A. End nodes
B. Terminal nodes
C. Final nodes
D. Last nodes

3) B. Terminal nodes

4) Trees are said .......... if they are similar and have same contents at corresponding nodes.
A. Duplicate
B. Carbon copy
C. Replica
D. Copies

4) D. Copies

5) Every node N in a binary tree T except the root has a unique parent called the ......... of N.
A. Antecedents
B. Predecessor
C. Forerunner
D. Precursor

For more MCQs of Data Structure visit: http://www.siteforinfotech.com/p/data-structure-mcq-sets.html


Solved Multiple Choice Questions of Data Structure

5) B. Predecessor

6) Sequential representation of binary tree uses........


A. Array with pointers
B. Single linear array
C. Two dimensional arrays
D. Three dimensional arrays

6) A. Array with pointers

7) TREE[1]=NULL indicates tree is ........


A. Overflow
B. Underflow
C. Empty
D. Full

7) C. Empty

8) Linked representation of binary tree needs ......... parallel arrays.


A. 4
B. 2
C. 3
D. 5

8) C. 3

9) In a 2-tree, nodes with 0 children are called............


A. Exterior node
B. Outside node
C. Outer node
D. External node

9) D. External node

10) In a extended-binary tree nodes with 2 children are called........


A. Interior node
B. Domestic node
C. Internal node
D. Inner node

10) C. Internal node

For more MCQs of Data Structure visit: http://www.siteforinfotech.com/p/data-structure-mcq-sets.html


Solved Multiple Choice Questions of Data Structure

Set-2

1) While converting binary tree into extended binary tree, all the original nodes in binary tree are.......
A. Internal nodes on extended tree
B. External nodes on extended tree
C. Vanished on extended tree
D. Intermediate nodes on extended tree

1) A. Internal nodes on extended tree

2) In a binary tree, certain null entries are replaced by special pointers which point to nodes higher in
the tree for efficiency. These special pointers are called.........
A. Leaf
B. Branch
C. Path
D. Thread

2) D. Thread

3) The in order traversal of tree will yield a sorted listing of elements of tree in....
A. Binary trees
B. Binary search trees
C. Merging
D. AVL Trees

3) B. Binary search trees

4) A binary tree whose every node has either zero or two children is called.........
A. Complete binary tree
B. Binary Search tree
C. Extended binary tree
D. E2 tree

4) C. Extended binary tree

5) The post order traversal of a binary tree is DEBFCA. Find out the pre order Traversal.
A. ABFCDE
B. ADBFEC
For more MCQs of Data Structure visit: http://www.siteforinfotech.com/p/data-structure-mcq-sets.html
Solved Multiple Choice Questions of Data Structure
C. ABDECF
D. ABDCEF

5) C. ABDECF

6) In order traversing a tree resulted E A C K F H D B G; the preorder traversal would return.


A. FAEKCDBHG
B. FAEKCDHGB
C. EAFKHDCBG
D. FEAKDCHBG

6) B. FAEKCDHGB

7) In linked representation of Binary trees LEFT[k] contains the ........ of at the node N, where k is the
location.
A. Data
B. Location and left child
C. Right child address
D. Null value

7) A. Data

8) Three standards ways of traversing a binary tree T with root R .......


A. Prefix, infix, postfix
B. Pre-process, in-process, post-process
C. Pre-traversal, in-traversal, post-traversal
D. Pre-order, in-order, post-order

8) D. Pre-order, in-order, post-order

9) Which indicates pre-order traversal?


A. Left sub-tree, Right sub-tree and root
B. Right sub-tree, Left sub-tree and root
C. Root, Left sub-tree, Right sub-tree
D. Right sub-tree, root, Left sub-tree

9) C. Root, Left sub-tree, Right sub-tree

10) A terminal node in a binary tree is called ............


A. Root
B. Leaf

For more MCQs of Data Structure visit: http://www.siteforinfotech.com/p/data-structure-mcq-sets.html


Solved Multiple Choice Questions of Data Structure
C. Child
D. Branch

10) B. Leaf

Related Posts

• Solved MCQ on Stack and Queue in Data Structure set-1


• Interview Questions on Stack and Queue in Data Structure set-2
• Solved MCQ on Tree and Graph in Data Structure set-1
• Objective Questions on Tree and Graph in Data Structure set-2
• Solved MCQ of Data Structure Set - 1
• Solved MCQ of Data Structure Set - 2
• Solved Objective questions of computer data structure set-3
• Solved MCQ of Data Structure and Algorithm set-4
• MCQ of Data Structure and Algorithm with Answer set-5

For more MCQs of Data Structure visit: http://www.siteforinfotech.com/p/data-structure-mcq-sets.html


Solved Multiple Choice Questions of Data Structure

Set-3

1) Which indicates in-order traversal?


A. Left sub-tree, Right sub-tree and root
B. Right sub-tree, Left sub-tree and root
C. Root, Left sub-tree, Right sub-tree
D. Right sub-tree, root, Left sub-tree

1) D. Right sub-tree, root, Left sub-tree

2) The line drawn from a node N of tree T to a successor is called .......


A. Path
B. Edge
C. Arrow
D. Route

2) B. Edge

3) In a binary tree a sequence of consecutive edges is called ......


A. Rotate
B. Connecting lines
C. Two-way
D. Path

3) D. Path

4) Which of the following indicates post-order traversal?


A. Left sub-tree, Right sub-tree and root
B. Right sub-tree, Left sub-tree and root
C. Root, Left sub-tree, Right sub-tree
D. Right sub-tree, root, Left sub-tree

4) A. Left sub-tree, Right sub-tree and root

5) The root R of the binary tree is assigned a level number of ......


A. 1
B. 0
C. -1
D. Null

For more MCQs of Data Structure visit: http://www.siteforinfotech.com/p/data-structure-mcq-sets.html


Solved Multiple Choice Questions of Data Structure
5) B. 0

6) If node N is a terminal node in a binary tree then its .........


A. Right tree is empty
B. Left tree is empty
C. Both left & right sub trees are empty
D. Root node is empty

6) C. Both left & right sub trees are empty

7) In threaded binary tree ......... points to higher nodes in tree.


A. Info
B. Root
C. Threads
D. Child

7) C. Threads

8) A graph is said to be ........... if there is a path between any two of its nodes
A. Connected
B. Coupled
C. Attached
D. Allied

8) A. Connected

9) A graph is said to be ....... if every node u in G is adjacent to every other node v in G.


A. Absolute
B. Entire
C. Inclusive
D. Complete

9) D. Complete

10) A graph is said to be ....... if its edges are assigned data.


A. Tagged
B. Marked
C. Lebeled
D. Sticked

For more MCQs of Data Structure visit: http://www.siteforinfotech.com/p/data-structure-mcq-sets.html


Solved Multiple Choice Questions of Data Structure
10) C. Lebeled

11) Other name for directed graph is ..........


A. Direct graph
B. Digraph
C. Dir-graph
D. Digraph

11) D. Digraph

12) Graph G is .............. if for any pair u, v of nodes in G there is a path from u to v or path from v to u.
A. Leterally connected
B. Widely Connected
C. Unliterally connected
D. Literally connected

12) C. Unliterally connected

13) A connected graph T without any cycles is called ........


A. free graph
B. no cycle graph
C. non cycle graph
D. circular graph

13) A. free graph

14) A connected graph T without any cycles is called a ........


A. A tree graph
B. Free tree
C. A tree d
D. All of the above

14) D. All of the above

15) In a graph if E=(u,v) means ......


A. u is adjacent to v but v is not adjacent to u
B. e begins at u and ends at v
C. u is processor and v is successor
D. both b and c

15) D. both b and c

For more MCQs of Data Structure visit: http://www.siteforinfotech.com/p/data-structure-mcq-sets.html


Solved Multiple Choice Questions of Data Structure
16) In a graph if e=[u,v], Then u and v are called ........
A. End points of e
B. Adjacent nodes
C. Neighbours
D. All of the above

16) D. All of the above

Related Posts

• Solved MCQ on Stack and Queue in Data Structure set-1


• Interview Questions on Stack and Queue in Data Structure set-2
• Solved MCQ on Tree and Graph in Data Structure set-1
• Objective Questions on Tree and Graph in Data Structure set-2
• Solved MCQ of Data Structure Set - 1
• Solved MCQ of Data Structure Set - 2
• Solved Objective questions of computer data structure set-3
• Solved MCQ of Data Structure and Algorithm set-4

For more MCQs of Data Structure visit: http://www.siteforinfotech.com/p/data-structure-mcq-sets.html


School of Distance Education

UNIVERSITY OF CALICUT

SCHOOL OF DISTANCE EDUCATION

(2011 Admn. onwards)

B.Com
(Specialisation - Computer Application)
V Semester

FUNDAMENTALS OF COMPUTERS
Question Bank & Answer Key

1. The term ‘Computer’ is derived from..........


a. Latin b. German c. French d. Arabic
2. Who is the inventor of “Difference Engine”?
a. Allen Turing b. Charles Babbage c. Simur Cray d. Augusta Adaming
3. Who is the father of Computer?
a. Allen Turing b. Charles Babbage c. Simur Cray d. Augusta Adaming
4. Who is the father of Computer science?
a. Allen Turing b. Charles Babbage c. Simur Cray d. Augusta Adaming
5. Who is the father of personal computer?
a. Edward Robert b. Allen Turing c. Charles Babbage d. None of these
6. A CPU contains
a. a card reader and a printing device b. an analytical engine and a control unit
c. a control unit and an arithmetic logic unit d. an arithmetic logic unit and a card reader
7. Which of the following controls the process of interaction between the user and the operating
system?
a. User interface b. Language translator
c. Platform d. Screen saver
8. The first computers were programmed using
a. assembly language b. machine language
c. source code d. object code

Fundamentals of Computers Page 1


School of Distance Education

9. ..........is a combination of hardware and software that facilitates the sharing of information
between computing devices.
a. network b. peripheral c. expansion board d. digital device
10. Coded entries which are used to gain access to a computer system are called
a. Entry codes b. Passwords c. Security commands d. Code words
11. Which of the following statements is true ?
a. Minicomputer works faster than Microcomputer
b. Microcomputer works faster than Minicomputer
c. Speed of both the computers is the same
d. The speeds of both these computers cannot be compared with the speed of advanced
12. You organize files by storing them in
a. archives b. folders c. indexes d. lists
13. What type of resource is most likely to be a shared common resource in a computer
Network?
a. Printers b. Speakers c. Floppy disk drives d. Keyboards
14. Which device is required for the Internet connection?
a. Joystick b. Modem c. CD Drive d. NIC Card
15. What is a light pen?
a. A Mechanical Input device b. Optical input device
c. Electronic input device d. Optical output device
16. UNIVAC is
a. Universal Automatic Computer b. Universal Array Computer
c. Unique Automatic Computer d. Unvalued Automatic Computer
17. CD-ROM stands for
a. Compactable Read Only Memory b. Compact Data Read Only Memory
c. Compactable Disk Read Only Memory d. Compact Disk Read Only Memory
18. ALU is
a. Arithmetic Logic Unit b. Array Logic Unit
c. Application Logic Unit d. None of above
19. VGA is
a. Video Graphics Array b. Visual Graphics Array
c. Volatile Graphics Array d. Video Graphics Adapter
20. IBM 1401 is
a. First Generation Computer b. Second Generation Computer
c. Third Generation Computer d . Fourth Generation Computer

Fundamentals of Computers Page 2


School of Distance Education

21. MSI stands for


a. Medium Scale Integrated Circuits b. Medium System Integrated Circuits
c. Medium Scale Intelligent Circuit d. Medium System Intelligent Circuit
22. The capacity of 3.5 inch floppy disk is
a. 1.40 MB b. 1.44 GB c. 1.40 GB d. 1.44 MB
23. WAN stands for
a. Wap Area Network b. Wide Area Network
c. Wide Array Net d. Wireless Area Network
24. MICR stands for
a. Magnetic Ink Character Reader b. Magnetic Ink Code Reader
c. Magnetic Ink Cases Reader d. None
25. EBCDIC stands for
a. Extended Binary Coded Decimal Interchange Code
b. Extended Bit Code Decimal Interchange Code
c. Extended Bit Case Decimal Interchange Code
d. Extended Binary Case Decimal Interchange Code
26. Which of the following is a part of the Central Processing Unit?
a. Printer b. Key board
c. Mouse d. Arithmetic & Logic unit
27. CAD stands for
a. Computer aided design b. Computer algorithm for design
c. Computer application in design d. Computer analogue design
28. Junk e-mail is also called
a. spam b. spoof
c. sniffer script d. spool
29. Hackers
a. all have the same motive
b. break into other people's computers
c. may legally break into computers as long as they do not do any damage
d. are people who are allergic to computers
30. What type of computers are client computers (most of the time) in a client-server system?
a. Mainframe b. Mini-computer
c. Microcomputer d. PDA
31. A computer cannot 'boot' if it does not have the
a. Compiler b. Loader
c. Operating System d. Assembler

Fundamentals of Computers Page 3


School of Distance Education

32. The amount of vertical space between lines of text in a document is called
a. double-space b. line spacing c. single space d. vertical spacing
33. Example of non-numeric data is
a. Employee address b. Examination score c. Bank balance d. All of these
34. What is embedded system?
a. The programme which arrives by being wrapped in box.
b. The programme which is the permanent part of the computer
c. The computer which is the part of a big computer
d. The computer and software system that control the machine
35. First page of Website is termed as-
a. Homepage b. Index c. JAVA script d. Bookmark
36. . ..................... Is the appearance of typed characters?
a. Size b. Format c. Point d. Colour
37. When a file is saved for the first time
a. a copy is automatically printed
b. it must be given a name to identify it
c. it does not need a name
d. it only needs a name if it is not going to be printed
38. Office LANS, which are scattered geographically on large scale, can be connected by the use
of corporate
a. CAN b. LAN c. DAN d. WAN
39. Where are data and programme stored when the processor uses them?
a. Main memory b. Secondary memory
c. Disk memory d. Programme memory
40. . ............... represents raw facts, where-as................. is data made meaningful.
a. Information, reporting b. Data, information
c. Information, bits d. Records, bytes
41. What characteristic of read-only memory (ROM) makes it useful?
a. ROM information can be easily updated.
b. Data in ROM is non-volatile, that is, it remains there even without electrical power.
c. ROM provides very large amounts of inexpensive data storage.
d. ROM chips are easily swapped between different brands of computers.
42. What do you call the programs that are used to find out possible faults and their causes?
a. operating system extensions b. cookies
c. diagnostic software d. boot diskettes

Fundamentals of Computers Page 4


School of Distance Education

43. Which programming languages are classified as low level languages?


a. BASIC, COBOL, Fortran b. Prolog
c. C, C++ d. Assembly languages
44. Which of the following is not anti- viruses’ software?
a. NAV b. F-Prot
c. Oracle d. McAfee
45. Which device is required for the Internet connection?
a. Joystick b. Modem
c. CD Drive d. NIC Card
46. What does DMA stand for?
a. A. Distinct Memory Access b. Direct Memory Access
c. Direct Module Access d. Direct Memory Allocation
47. Which of the following is a storage device?
a. Tape b. Hard Disk
c. Floppy Disk d. All of the above
48. When did John Napier develop logarithm?
a. 1416 b. 1614
c. 1641 d. 1804
49. A normal CD- ROM usually can store up to _________ _data?
a. 680 KB b. 680 Bytes
c. 680 MB d. 680 GB
50. MIS is designed to provide information needed for effective decision making by?
a. Consumers b. Workers
c. Foremen d. Managers
51. What is a light pen?
a. Mechanical Input device b. Optical input device
c. Electronic input device d. Optical output device
52. BCD is
a. Binary Coded Decimal b. Bit Coded Decimal
c. Binary Coded Digit d. Bit Coded Digit
53. ASCII stands for
a. American Stable Code for International Interchange
b. American Standard Case for Institutional Interchange
c. American Standard Code for Information Interchange
d. American Standard Code for Interchange Information

Fundamentals of Computers Page 5


School of Distance Education

54. Which of the following is first generation of computer?


a. EDSAC b. IBM-1401 c. CDC-1604 d. ICL-2900
55. Chief component of first generation computer was
a. Transistors b. Vacuum Tubes and Valves
c. Integrated Circuits d. None of above
56. FORTRAN is
a. File Translation b. Format Translation
c. Formula Translation d. Floppy Translation
57. EEPROM stands for
a. Electrically Erasable Programmable Read Only Memory
b. Easily Erasable Programmable Read Only Memory
c. Electronic Erasable Programmable Read Only Memory
d. None of the above
58. Second Generation computers were developed during
a. 1949 to 1955 b. 1956 to 1965
c. 1965 to 1970 d. 1970 to 1990
59. The computer size was very large in
a. First Generation b. Second Generation
c. Third Generation d. Fourth Generation
60. Microprocessors as switching devices are for which generation computers
a. First Generation b. Second Generation
c. Third Generation d. Fourth Generation
61. Which of the following devices can be sued to directly image printed text?
a. OCR b. OMR
c. MICR d. All of above
62. The output quality of a printer is measured by
a. Dot per inch b. Dot per sq. inch
c. Dots printed per unit time d. All of above
63. In analogue computer
a. Input is first converted to digital form b. Input is never converted to digital form
c. Output is displayed in digital form d. All of above
64. In latest generation computers, the instructions are executed
a. Parallel only b. Sequentially only
c. Both sequentially and parallel d. All of above
65. Who designed the first electronics computer – ENIAC?
a. Van-Neumann b. Joseph M. Jacquard

Fundamentals of Computers Page 6


School of Distance Education

c. J. Presper Eckert and John W Mauchly d. All of above


66. Who invented the high level language “C”?
a. Dennis M. Ritchie b. Niklaus Writh
c. Seymour Papert d. Donald Kunth
67. Personnel who design, program, operate and maintain computer equipment refers to
a. Console-operator b. Programmer
c. Peopleware d. System Analyst
68. When did arch rivals IBM and Apple Computers Inc. decide to join hands?
a. 1978 b. 1984
c. 1990 d. 1991
69. Human beings are referred to as Homosapinens, which device is called Sillico Sapiens?
a. Monitor b. Hardware
c. Robot d. Computer
70. An error in software or hardware is called a bug. What is the alternative computer jargon for it?
a. Leech b. Squid
c. Slug d. Glitch
71. Modern Computer are very reliable but they are not
a. Fast b. Powerful
c. Infallible d. Cheap
72. What is the name of the display feature that highlights are of the screen which requires
operator attention?
a. Pixel b. Reverse video
c. Touch screen d. Cursor
73. Personal computers use a number of chips mounted on a main circuit board. What is the
common name for such boards?
a. Daughter board b. Motherboard
c. Father board d.Breadboard
74. In most IBM PCs, the CPU, the device drives, memory expansion slots and active components
are mounted on a single board. What is the name of this board?
a. Motherboard b. Breadboard
c. Daughter board d. Grandmother board
75. What is meant by a dedicated computer?
a. Which is used by one person only b. Which is assigned one and only one task
c. Which uses one kind of software d. Which is meant for application software

Fundamentals of Computers Page 7


School of Distance Education

76. The system unit of a personal computer typically contains all of the following except:
a. Microprocessor b. Disk controller c. Serial interface d. Modem
77. A computer program that converts an entire program into machine language is called a/an
a. Interpreter b. Simulator c. Compiler d. Commander
78. A computer program that translates one program instructions at a time into machine language
is called a/an
a. Interpreter b. CPU c. Compiler d. Simulator
79. A small or intelligent device is so called because it contains within it a
a. Computer b. Microcomputer c. Programmable d. Sensor
80. A fault in a computer program which prevents it from working correctly is known as
a. Boot b. Bug c. Biff d. Strap
81. A self replicating program, similar to a virus which was taken from a 1970s science fiction
novel by John Bruner entitled the Shockwave Rider is
a. Bug b. Vice c. Lice d. Worm
82. A state. is a bi-stable electronic circuit that has
a. Multivibrator b. Flip-flop c. Logic gates d. laten
83. Unwanted repetitious messages, such as unsolicited bulk e-mail is known as
a. Spam b. Trash c. Calibri d. Courier
84. DOS stands for
a. Disk Operating System b. Disk operating session
c. Digital Operating System d. Digital Open system
85. Who is the chief of Microsoft
a. Babbage b. Bill Gates c. Bill Clinton d. none of these
86. Which of the following are input devices?
a. Keyboard b. Mouse c. Card reader d. Any of these
87. Examples of output devices are
a. Screen b. Printer c. Speaker d. All of these
88. Which of the following is also known as brain of computer
a. Control unit b. Central Processing unit
c. Arithmetic and language unit d. Monitor
89. IBM stands for
a. Internal Business Management b. International Business Management
c. International Business Machines d. Internal Business Machines
90. ............ translates and executes program at run time line by line
a. Compiler b. Interpreter
c. Linker d. Loader

Fundamentals of Computers Page 8


School of Distance Education

91. is an OOP principle


a. Structured programming b. Procedural programming
c. Inheritance d. Linking
92. COBOL is widely used in application s
a. Commercial b. Scientific c. Space d. Mathematical
93. RAM stands for
a. Random origin money b. Random only memory
c. Read only memory d. Random access memory
94. 1 Byte =?
a. 8 bits b. 4 bits c. 2 bits d. 9 bits
95. SMPS stands for
a. Switched mode Power Supply b. Start mode power supply
c. Store mode power supply d. Single mode power supply
96. The device used to carry digital data on analogue lines is called as
a. Modem b. Multiplexer
c. Modulator d. Demodulator
97. VDU is also called
a. Screen b. Monitor c. Both 1 & 2 d. printer
98. BIOS stands for
a. Basic Input Output system b. Binary Input output system
c. Basic Input Off system d. all the above
99. Father of “C‘ programming language
a. Dennis Ritchie b. Prof John Keenly
c. Thomas Kurtz d. Bill Gates
100. The instructions that tell a computer how to carry out the processing tasks are referred
to as computer.........
a. programs b. processors c. input devices d. memory modules
101. An area of a computer that temporarily holds data waiting to be processed is..........
a. CPU b. Memory c. Storage d. File
102. ........... is the key to close a selected drop -down list; cancel a command and close a
dialog box.
a. TAB b. SHIFT c. ESC d. F10
103. .......... is the key we use to run the selected command.
a. SHIFT b. TAB c. ENTER d. CTRL
104. ............. Is the functional key to display save-as box.
a. F5 b. F6 c. F9 d. F12

Fundamentals of Computers Page 9


School of Distance Education

105. Data becomes ................ when it is presented in a format that people can understand
and use
a. processed b. graphs c. information d. presentation
106. The term ............. designates equipment that might be added to a computer system to
enhance its functionality.
a. digital device b. system add-on c. disk pack d. peripheral device
107. A ............ is a microprocessor -based computing device.
a. personal computer b. mainframe c. workstation d. server
108. RAM can be treated as the ......... for the computer's processor
a. factory b. operating room c. waiting room d. planning room
109. Which of the following are the functions of a operating system
a. Allocates resources b. Monitors Activities
c. Manages disks and files d. All of the above
110. To move a copy of file from one computer to another over a communication channel is
called?
a. File transfer b. File encryption
c. File modification d. File copying
111. The primary function of the ............ is to set up the hardware and load and start an
operating system
a. System Programs b. BIOS
c. CP d. Memory
112. What kind of memory is both static and non -volatile?
a. RAM b. ROM c. BIOS d. CACHE
113. .......... is computer software designed to operate the computer hardware and to provide
platform for running application software
a. Application software b. System software
c. Software d. Operating system
114. The ......... is the amount of data that a storage device can move from the storage
medium to the Computer per second
a. data migration rate b. data digitizing rate
c. data transfer rate d. data access rate
115. A device, which is not connected to CPU, is called as .......
a. land-line device b. On-line device
c. Off-line device d. Device
116. What is the other name for programmed chip?
a. RAM b. ROM c. LSIC d. PROM

Fundamentals of Computers Page 10


School of Distance Education

117. On-line real time systems become popular in ........... generation


a. First Generation b. Second Generation
c. Third Generation d. Fourth Generation
118. You use a(n) ....., such as a keyboard or mouse, to input information
a. output device b. input device
c. storage device d. processing device
119. ............. is the ability of a device to "jump" directly to the requested data
a. Sequential access b. Random access
c. Quick access d. All of the above
120. ............. provides process and memory management services that allow two or more
tasks, jobs, or programs to run simultaneously
a. Multitasking b. Multithreading
c. Multiprocessing d. Multicomputing
121. The task of performing operations like arithmetic and logical operations is called......
a. Processing b. Storing
c. Editing d. Sorting
122. ALU and Control Unit jointly known as
a. RAM b. ROM c. CPU d. PC
123. RAM is an example of
a. Secondary memory b. Primary memory
c. Main memory d. Both (1) and (2)
124. Magnetic disk is an example of
a. Secondary memory b. Primary memory
c. Main memory d. Both (1) and (2)
125. Which one of the following is NOT a computer language
a. MS-Excel b. BASIC
c. COBOL d. C++
126. RAM is also called as
a. Read / Write Memory b. Long Memory
c. Permanent Memory d. Primary Memory
127. ............ Store data or information temporarily and pass it on as directed by the control
unit
a. Address b. Register
c. Number d. Memory

Fundamentals of Computers Page 11


School of Distance Education

128. Select the Odd one


a. Operating system b. Interpreter
c. Compiler d. Assembler
129. A ............ is an additional set of commands that the computer displays after you make a
selection from the main menu
a. dialog box b. submenu
c. menu selection d. All of the above
130. COBOL is an acronym for.............
a. Common Business Oriented Language b. Computer Business Oriented Language
c. Common Business Operated Language d. Common Business Organized Language
131. All of the following are examples of real security and privacy risks EXCEPT
a. hackers b. Spam
c. Viruses d. identity theft
132. Which of the following is NOT one of the four major data processing functions of a
computer?
a. gathering data b. processing data into information
c. analyzing the data or information d. storing the data or information
133. All of the following are examples of storage devices EXCEPT :
a. hard disk drives b. printers
c . floppy disk drives d. CD drives
134. The CPU and memory are located on the :
a. expansion board b. motherboard
c. storage device d. output device
135. ............... is the science that attempts to produce machines that display the same type of
intelligence that humans do
a. Nanoscience b. Nanotechnology
c. Simulation d. Artificial intelligence (Al)
136. Servers are computers that provide resources to other computers connected to a :
a. networked b. mainframe
c. supercomputer d. client
137. When creating a computer program, the ......... designs the structure of the program
a. End user b. System Analyst
c. Programmer d. All of the above
138. A computer program that converts an entire program into machine language at one time
is called a/ an
a. Interpreter b. simulator c. characters d. compiler

Fundamentals of Computers Page 12


School of Distance Education

139. Computers process data into information by working exclusively with :


a. multimedia b. word c. numbers d. characters
140. The difference between people with access to computers and the Internet and those
without this access is known as the :
a. digital divide b. Internet divide c. Web divide d. E-illiteracy
141. Computers manipulate data in many ways, and this manipulation is called......
a. upgrading b. processing c. batching d. utilizing
142. The ability to recover and read deleted or damaged files from a criminal's computer is
an example of a law enforcement speciality called:
a. robotics b. simulation c. computer forensics d. animation
143. Where does most data go first with in a computer memory hierarchy ?
a. RAM b. ROM c. BIOS d. CACHE
144. The………….data mining technique derives rules from real-world case examples.
a. Rule discover b. Signal processing
c. Neural nets d. Case-based reasoning
145. …………….are used to identify a user who returns to a Website
a. Cookies b. Plug-ins
c. Scripts d. ASPs
146. Codes consisting of lines of varying widths or lengths that are computer-readable are
known as-
a. an ASCII code b. a magnetic tape
c. an OCR scanner d. a bar code
147. Why is it unethical to share copyrighted files with your friends?
a. It is not unethical, because it is legal.
b. It is unethical because the files are being given for free.
c. Sharing copyrighted files without permission breaks copyright laws.
d. It is not unethical because the files are being given for free.
148. Reusable optical storage will typically have the acronym-
a. CD b. DVD c. ROM d. RW
149. The most common type of storage devices are-
a. Steel b. optical c. magnetic d. flash
150. A device that connects to a network without the use of cables is said to be-
a. Distributed b. free c. centralized d. none of these
151. A person who used his or her expertise to gain access to other people's computers to get
information illegally or do damage is a-
a. Hacker b. spammer c. instant messenger d. programmer

Fundamentals of Computers Page 13


School of Distance Education

152. To access properties of an object, the mouse technique to use is-


a. Dragging b. dropping c. right-clicking d. shift-clicking
153. A DVD is an example of a (n)-
a. hard disk b. optical disc
c. output device d. solid-state storage device
154. . The process of transferring files from a computer on the Internet to your computer is
called
a. Downloading b. uploading
c. FTP d. JPEG
155. . .......... is the process of dividing the disk into tracks and sectors.
a. Tracking b. Formatting
c. Crashing d. Allotting
156. . Help Menu is available at which button?
a. End b. Start
c. Turnoff d. Restart
157. The technology that stores only the essential instructions on a microprocessor chip and
thus enhances its speed is referred to as
a. CISC b. RISC
c. CD-ROM d. Wi-Fi
158. Which is not a basic function of a computer?
a. Store data b. Accept input
c. Process data d. Copy text
159. ASCII is a coding system that provides
a. 256 different characters b. 512 different characters
c. 1024 different characters d. 128 different characters
160. Which part of the computer is directly involved in executing the instructions of the
computer program?
a. The scanner b. The main storage
c. The secondary storage d. The processor
161. When a computer is switched on, the booting process performs
a. Integrity Test b. Power-On Self-Test
c. Correct Functioning Test d. Reliability Test
162. A computer system that is old and perhaps not satisfactory is referred to as a(n)
a. Ancient system b. Historical system
c. Age old system d. Legacy system

Fundamentals of Computers Page 14


School of Distance Education

163. Which of the following is not a binary number?


a. 001 b. 101 c. 202 d. 110
164. Which of the following does not store data permanently?
a. ROM b. RAM c. Floppy Disk d. Hard Disk
165. Which of the following is the smallest storage?
a. Megabyte b. Gigabyte c. Terabyte d. None of these
166. Which of the following contains permanent data and gets updated during the
processing of transactions?
a. Operating System File b. Transaction file
c. Software File d. Master file
167. Which of the following helps to protect floppy disks from data getting accidentally
erased?
a. Access notch b. Write-protect notch
c. Entry notch d. Input notch
168. A modem is connected to
a. a telephone line b. a keyboard
c. a printer d. a monitor
169. Large transaction processing systems in automated organisations use
a. Online processing b. Batch Processing
c. Once-a-day Processing d. End-of-day processing
170. In a computer, most processing takes place in
a. Memory b. RAM
c. motherboard d. CPU
171. . Which of the following is not a storage medium?
a. Hard disk b. Flash drive c. DVD d. scanner
172. The computer abbreviation KB usually means
a. Key Block b. Kernel Boot c. Kilo Byte d. Kit Bit
173. The typical computer criminal is a(n):
a. Young hacker.
b. Trusted employee with no criminal record.
c. Trusted employee with a long, but unknown criminal record.
d. Overseas young cracker.
174. The common name for the crime of stealing passwords is:
a. Jacking. b. Identity theft.
c. Spoofing. d. Hacking.

Fundamentals of Computers Page 15


School of Distance Education

175. Collecting personal information and effectively posing as another individual is known
as the crime of:
a. Spooling. b. Identity theft.
c. Spoofing. d. Hacking.
176. Malicious software is known as:
a. Badware. b. Malware.
c. Maliciousware. d. Illegalware.
177. A program that performs a useful task while simultaneously allowing destructive acts is
a:
a. Worm. b. Trojan horse.
c. Virus. d. Macro virus.
178. An intentionally disruptive program that spreads from program to program or from disk
to disk is known as a:
a. Trojan horse. b. Virus.
c. Time bomb. d. Time-related bomb sequence.
179. In 1999, the Melissa virus was a widely publicised:
a. E-mail virus. b. Macro virus.
c. Trojan horse. d. Time bomb.
180. What type of virus uses computer hosts to reproduce itself?
a. Time bomb b. Worm
c. Melissa virus d. Macro virus
181. The thing that eventually terminates a worm virus is a lack of:
a. Memory or disk space. b. Time.
c. CD drives space. d. CD-RW.
182. When a logic bomb is activated by a time-related event, it is known as a:
a. Time-related bomb sequence. b. Virus.
c. Time bomb. d. Trojan horse.
183. A logic bomb that was created to erupt on Michelangelo‘s birthday is an example of a:
a. Time-related bomb sequence. b. Virus.
c. Time bomb. d. Trojan horse.
184. What is the name of an application program that gathers user information and sends it
to someone through the Internet?
a. A virus b. Spybot
c. Logic bomb d. Security patch

Fundamentals of Computers Page 16


School of Distance Education

185. ------ is the measurement of things such as fingerprints and retinal scans used for
security access.
a. Biometrics b. Bio measurement
c. Computer security d. Smart weapon machinery
186. What is the most common tool used to restrict access to a computer system?
a. User logins b. Passwords
b. Computer keys d. Access-control software
187. Hardware or software designed to guard against unauthorized access to a computer
network is known as a(n):
a. Hacker-proof program. b. Firewall.
c. Hacker-resistant server. d. Encryption safe wall.
188. The scrambling of code is known as:
a. Encryption. b. a firewall.
c. Scrambling. d. Password proofing.
189. To prevent the loss of data during power failures, use a(n):
a. Encryption program. b. Surge protector.
c. Firewall. d. UPS.
190. ------Is defined as any crime completed through the use of computer technology.
a. Computer forensics b. Computer crime
c. Hacking d. Cracking
191. ------ refers to electronic trespassing or criminal hacking.
a. Cracking b. Jacking
c. Spoofing d. Smarming
192. The first electronic computer was developed by
a. J.V. Attansoff b. Bill Gates
c. Simur Cray d. Winton Serf
193. Snowbol is an/a---------
a. Operating system b. HLL
c. Software d. Search engine
194. Switching device of fifth generation computer is--------
a. Vacuum tubes b. Transistors
c. IC d. VLSI
195. ---------- computers operates essentially by counting
a. Portable computer b. Hybrid computer
c. Analog computer d. Digital computer

Fundamentals of Computers Page 17


School of Distance Education

196. ---------- computer is small general purpose micro computer, but larger than portable
computer
a. Hybrid b. Digital c. Desktop d. Laptop
197. Cathode Ray Tube is a form of.......
a. Keyboard b. Mouse c. Monitor d. Mother board
198. Trackball is a...........
a. Input device b. Output device
c. Programming language d. Software
199. ............. computer is a medium sized computer
a. Micro b. Mainframe c. Super d. Mini
200. ........... computer are of large size
a. Micro b. Mainframe c. Super d. Mini
201. Note book, laptop,palm,hand-held computers are coming under the category of.........
computer
a. Digital computer b. Mainframe computer
c. Portable computer d. Hybrid computer
202. Light pen and joystick are............
a. Algorithm b. Input devices
c. Output devices d. Portals
203. Touch Screen is............
a. Input device b. Output device
c. Both a & b above d. None of these
204. .............printer is the cheapest in terms of price and operating cost
a. Inkjet b. Laser
c. Thermal d. Dot matrix
205. .......... printer is a non-impact printer and is quite in working
a. Inkjet b. Laser
c. Thermal d. Dot matrix
206. .......... are high-end printers
a. Inkjet b. Laser
c. Thermal d. Dot matrix
207. ......... are used for plotting graphs and design on papers
a. Trackball b. Joystick
c. Light pen d. Plotters
208. Daisy wheel, Drum, chain etc are the .............
a. Flow chart b. Mouse

Fundamentals of Computers Page 18


School of Distance Education

c. Key board d. Printers


209. ....are specific to users’ needs
a. System software b. Application software
c. Assemblers d. Compilers
210. Joshy, Perfumes are examples of.............
a. Operating system b. Computer languages
c. Computer viruses d. Web portals
211. Which of the following is/ are operating systems
a. Windows b. Unix
c. OS/2 d. All of these
212. “MAN” stands for
a. Maximum Area Network b. Minimum Area Network
c. Main Area Network d. Metropolitan Area Network
213. Which of the following is a network topology
a. LAN b. WAN
c. MAN d. BUS
214. Which of the following is a type of network
a. Ring b. Bus c. Star d. PAN
215. VOIP stands for..........
a. Voice over IP b. Video over IP
c. Viruses over IP d. Virtual over IP
216. The first web browser is
a. Mosaic b. Netscape
c. Internet explorer d. Collabra
217. LAN stands for...............
a. Limited Area Network b. Logical Area Network
c. Local Area Network d. Large Area Network
218. .......... are set of rules and procedures to control the data transmission over the internet
a. IP address b. Domains
c. Protocol d. Gateway
219. NOS stands for
a. Node operating system b. Non-open software
c. Network Operating system d. Non-operating software
220. ............... are system software to facilitate editing of text and data
a. MS Word b. Editors
c. PowerPoint d. MS publisher

Fundamentals of Computers Page 19


School of Distance Education

221. Computers, combine both measuring and counting, are called :


a. Analog b. Digital c. Hybrid d. All of these
222. In world today, most of the computers are :
a. Digital b. Hybrid c. Analog d. Complex
223. Physical structure of computer is called :
a. Software b. Hardware c. Human ware d. All of these
224. In which type of computer, data are represented as discrete signals.
a. Analog computer b. Digital computer
c. both d. Hybrid Computer
225. Which of the following is available in the form of a PC now?
a. Mainframe b. Microcomputer
c. Minicomputer d. Both (B) & (C)

226. PARAM is an example of:

a. Super computer b. PC
c. Laptop d. PDA

Fundamentals of Computers Page 20


School of Distance Education

ANSWER KEY

Q.No
Answer Q.No Answer Q.No Answer Q.No Answer Q.No Answer
1 a 55 b 109 d 163 c 217 c
2 b 56 c 110 a 164 b 218 c
3 b 57 c 111 b 165 d 219 c
4 a 58 b 112 b 166 d 220 b
5 a 59 a 113 b 167 b 221 c
6 c 60 d 114 c 168 a 222 a
7 a 61 a 115 c 169 b 223 b
8 b 62 b 116 c 170 d 224 b
9 a 63 b 117 c 171 d 225 b
10 b 64 c 118 b 172 c 226 a
11 a 65 c 119 b 173 b
12 b 66 a 120 a 174 c
13 a 67 c 121 a 175 b
14 b 68 d 122 c 176 b
15 b 69 d 123 b 177 b
16 a 70 d 124 a 178 b
17 a 71 c 125 a 179 a
18 a 72 b 126 a 180 b
19 a 73 b 127 b 181 a
20 b 74 a 128 a 182 c
21 a 75 b 129 a 183 c
22 d 76 d 130 a 184 b
23 b 77 c 131 b 185 a
24 a 78 a 132 c 186 b
25 a 79 d 133 b 187 b
26 d 80 b 134 b 188 a
27 a 81 d 135 d 189 d
28 a 82 b 136 b 190 b
29 b 83 a 137 b 191 a
30 c 84 a 138 c 192 a
31 c 85 b 139 c 193 b

Fundamentals of Computers Page 21


School of Distance Education

32 b 86 d 140 a 194 d
33 a 87 d 141 b 195 d
34 d 88 b 142 c 196 c
35 a 89 c 143 a 197 c
36 b 90 b 144 c 198 a
37 b 91 c 145 a 199 d
38 d 92 a 146 d 200 b
39 a 93 d 147 c 201 c
40 b 94 a 148 d 202 b
41 b 95 a 149 b 203 c
42 c 96 a 150 d 204 d
43 d 97 c 151 a 205 a
44 c 98 a 152 c 206 b
45 b 99 a 153 b 207 d
46 b 100 a 154 a 208 d
47 d 101 b 155 b 209 b
48 b 102 c 156 b 210 c
49 c 103 c 157 b 211 d
50 d 104 d 158 d 212 d
51 b 105 c 159 c 213 d
52 a 106 d 160 d 214 d
53 c 107 a 161 b 215 a
54 a 108 c 162 d 216 a

Computer Section, SDE


© Reserved

Fundamentals of Computers Page 22


tutorialfocus.net

C++ Mcqs - Tutorial Focus


Please follow and like us:

QUES.Which of the following type of class allows only one object of it to be created?

A.Virtual class

B.Abstract class

C.Singleton class

D.Friend class

QUES. Which of the following is not a type of constructor?

A.Copy constructor

B.Friend constructor

C.Default constructor

D.Parameterized constructor

QUES. Which of the following statements is correct?

a.Base class pointer cannot point to derived class.

b.Derived class pointer cannot point to base class.

c.Pointer to derived class cannot be created.

d.Pointer to base class cannot be created.

QUES.Which of the following is not the member of class?

a.Static function

 b.Friend function

c.Const function

d.Virtual function
QUES.Which of the following concepts means determining at runtime what method to
invoke?

A.Data hiding

B.Dynamic Typing

C.Dynamic binding

D.Dynamic loading

QUES.Which of the following term is used for a function defined inside a class?

A.Member Variable

B.Member function

C.Class function

D.Classic function

QUES. Which of the following concept of oops allows compiler to insert arguments in a


function call if it is not specified?

A.Call by value

B.Call by reference

C.Default arguments

D.Call by pointer

QUES.Which of the following cannot be friend?

A.Function

B.Class

C.Object

D.Operator function

QUES.Which of the following concepts of OOPS means exposing only necessary


information to client?

A.Encapsulation

B.Abstraction

C.Data hiding
QUES.Which of the following concepts means determining at runtime what method to
invoke?

A.Data hiding

B.Dynamic Typing

C.Dynamic binding

D.Dynamic loading

QUES.Which of the following term is used for a function defined inside a class?

A.Member Variable

B.Member function

C.Class function

D.Classic function

QUES. Which of the following concept of oops allows compiler to insert arguments in a


function call if it is not specified?

A.Call by value

B.Call by reference

C.Default arguments

D.Call by pointer

QUES.Which of the following cannot be friend?

A.Function

B.Class

C.Object

D.Operator function

QUES.Which of the following concepts of OOPS means exposing only necessary


information to client?

A.Encapsulation

B.Abstraction

C.Data hiding
D.Data binding

QUES.Why reference is not same as a pointer?

A.A reference can never be null.

B.A reference once established cannot be changed.

C.Reference doesn’t need an explicit dereferencing mechanism.

D.All of the above.

QUES.cout is a/an __________ .

A.Operator

B.Function

C.Object

D.Macro

QUES.Which of the following concepts provides facility of using object of one class inside
another class?

A.Encapsulation

B.Abstraction

C.Composition

D.Inheritance

QUES.How many types of polymorphisms are supported by C++?

A.1

B.2

C.3

D.4

QUES. Which of the following is an abstract data type?

A.Int

B.Double

C.String
D.Class

QUES.Which of the following concepts means adding new components to a program as it


runs?

A.Data hiding

B.Dynamic typing

C.Dynamic binding

D.Dynamic loading

QUES.Which of the following statement is correct?

A.A constructor is called at the time of declaration of an object.

B.A constructor is called at the time of use of an object.

C.A constructor is called at the time of declaration of a class.

D.A constructor is called at the time of use of a class.

QUES.Which of the following approach is adapted by C++?

A.Top-down

B.Bottom-up

C.Right-left

D.Left-right

QUES.Which of the following is correct about function overloading?

A.The types of arguments are different.

B.The order of argument is different.

C.The number of argument is same.

D.Both A and B.

QUES.Which of the following is correct about class and structure?

A.class can have member functions while structure cannot.

B.class data members are public by default while that of structure are private.

C.Pointer to structure or classes cannot be declared.


D.class data members are private by default while that of structure are public by
default.

QUES.Which of the following concepts means wrapping up of data and functions together?

A.Abstraction

B.Encapsulation

C.Inheritance

D.Polymorphism

QUES.Which of the following concepts means waiting until runtime to determine which
function to call?

A.Data hiding

B.Dynamic casting

C.Dynamic binding

D.Dynamic loading

QUES.How “Late binding” is implemented in C++?

A.Using C++ tables

B.Using Virtual tables

C.Using Indexed virtual tables

D.Using polymorphic tables

QUES. Which of the following operator is overloaded for object cout?

A.>>

B.<<

C.+

D.=

QUES.Which of the following is the correct class of the object cout?

A.iostream

B.istream
C.ostream

D.ifstream

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

A.Class

B.member functions

C.Constructor

D.Destructor

QUES.Which of the following functions are performed by a constructor?

A.Construct a new class

B.Construct a new object

C.Construct a new function

D.Initialize objects

QUES.Which of the following problem causes an exception?

A.Missing semicolon in statement in main().

B.A problem in calling function.

C.A syntax error.

D.A run-time error.

QUES. Which one of the following options is correct about the statement given below? The
compiler checks the type of reference in the object and not the type of object.

A.Inheritance

B.Polymorphism

C.Abstraction

D.Encapsulation

QUES.Which of the following is the correct way of declaring a function as constant?

A.const int ShowData(void) { /* statements */ }

B.int const ShowData(void) { /* statements */ }


C.int ShowData(void) const { /* statements */ }

D.Both A and B

QUES.Which of the following concepts is used to implement late binding?

A.Virtual function

B.Operator function

C.Const function

D.Static function

QUES.. Which of the following statement is correct?

A.C++ allows static type checking.

B.C++ allows dynamic type checking.

C.C++ allows static member function be of type const.

D.Both A and B.

QUES.Which of the following factors supports the statement that reusability is a desirable
feature of a language?

A.It decreases the testing time.

B.It lowers the maintenance cost.

C.It reduces the compilation time.

D.Both A and B.

QUES.Which of the following ways are legal to access a class data member using this
 pointer?

A.this->x

B.this.x

C.*this.x

D.*this-x

QUES.Which of the following is a mechanism of static polymorphism?

A.Operator overloading
B.Function overloading

C.Templates

D.All of the above

QUES.Which of the following is correct about the statements given below?

All operators can be overloaded in C++.

We can change the basic meaning of an operator in C++.

A.Only I is true.

B.Both I and II are false.

C.Only II is true.

D.Both I and II are true

QUES.What happens if the base and derived class contains definition of a function with same
 prototype?

A.Compiler reports an error on compilation.

B.Only base class function will get called irrespective of object.

C.Only derived class function will get called irrespective of object.

D.Base class object will call base class function and derived class object will call derived
class function.

QUES.Which of the following are available only in the class hierarchy chain?

A.public data members

B.Private data members

C.Protected data members

D.Member functions

QUES.Which of the following is not a type of inheritance?

A.Multiple

B.Multilevel

C.Distributive
D.Hierarchical

QUES.Which of the following operators cannot be overloaded?

A.[]

B.->

C.?:

D.*

QUES.In which of the following a virtual call is resolved at the time of compilation?

A.From inside the destructor.

B.From inside the constructor.

C.From inside the main().

D.Both A and B.

QUES.Which of the following statements regarding inline functions is correct?

A.It speeds up execution.

B.It slows down execution.

C.It increases the code size.

D.Both A and C

QUES.Which one of the following is the correct way to declare a pure virtual function?

A.virtual void Display(void){0};

B.virtual void Display = 0;

C.virtual void Display(void) = 0;

D.void Display(void) = 0;

QUES. Which of the following header file includes definition of cin and cout?

A.istream.h

B.ostream.h

C.iomanip.h
D.iostream.h

QUES.Which of the following keyword is used to overload an operator?

A.overload

B.operator

C.friend

D.override

QUES.What will happen if a class is not having any name?

A.It cannot have a destructor.

B.It cannot have a constructor.

C.It is not allowed.

D.Both A and B.

QUES.Which inheritance type is used in the class given below?

class A : public X, public Y

{}

A.Multilevel inheritance

B.Multiple inheritance

C.Hybrid inheritance

D.Hierarchical Inheritance

QUES.Which one of the following is correct about the statements given below?

All function calls are resolved at compile-time in Procedure Oriented Programming.

All function calls are resolved at compile-time in OOPS.

A.Only II is correct.

B.Both I and II are correct.

C.Only I is correct.

D.Both I and II are incorrect.


QUES.Which of the following is an invalid visibility label while inheriting a class?

A.public

B.private

C.protected

D.friend

QUES. Which one of the following options is correct?

A.Friend function can access public data members of the class.

B.Friend function can access protected data members of the class.

C.Friend function can access private data members of the class.

D.All of the above.

QUES.Which of the following statements is correct in C++?

A.Classes cannot have data as protected members.

B.Structures can have functions as members.

C.Class members are public by default.

D.Structure members are private by default.

QUES.Which of the following is used to make an abstract class?

A.Declaring it abstract using static keyword.

B.Declaring it abstract using virtual keyword.

C.Making at least one member function as virtual function.

D.Making at least one member function as pure virtual function

QUES.Which of the following access specifier is used as a default in a class definition?

A.protected

B.public

C.private

D.friend
QUES.What is correct about the static data member of a class?

A.A static member function can access only static data members of a class.

B.A static data member is shared among all the object of the class.

C.A static data member can be accessed directly from main().

D.Both A and B.

QUES.Which of the following provides a reuse mechanism?

A.Abstraction

B.Inheritance

C.Dynamic binding

D.Encapsulation

. QUES.Which of the following statement is correct?

A.Class is an instance of object.

B.Object is an instance of a class.

C.Class is an instance of data type.

D.Object is an instance of data type.

QUES.C++ was originally developed by;

A.Clocksin and Mellish

B.Donald E. Knuth

C.Sir Richard Hadlee

D.Bjame Stroustrup

QUES.How do we declare an ‘interface’ class?

a)By making all the methods pure virtual in a class

 b)By making all the methods abstract using the keyword ‘abstract’ in a class

c)By declaring the class as interface with the k eyword ‘interface’

d)It is not possible to create interface class in C++


QUES:How do we declare an abstract class?

a)By providing at least one pure virtual method (function signature followed by ==0;)
in a class

 b)By declaring at least one method abstract using the keyword

‘abstract’ in a class

c)By declaring the class abstract with the keyword ‘abstract’

d)It is not possible to create abstract classes in C++

QUES:Which of the following is not an advantage of secondary memory

a)It is cost-effective

 b)It has large storage capacity

c)It has highest speed

d)It is easily portable

QUES:Which of the following correctly describes the meaning of‘namespace’ feature in


C++?

a)Namespaces refer to the memory space allocated for names used in a program

 b)Namespaces refer to space between the names in a program

c)Namespaces refer to packing structure of classes in a program.

d)Namespaces provide facilities for organizing the names in a program to avoid name
clashes.

QUES:Which of the following correctly describes the meaning of ‘namespace’ feature in


C++?

a)Namespaces refer to the memory space allocated for names used in a program

 b)Namespaces refer to space between the names in a program

c)Namespaces refer to space between the names in a program

d)namespaces provide facilities for organizing the names in a program to avoid name
clashes

QUES:Which of the following language is not supported by C++?

a)Exception Handling
 b)Reflection

c)Operator Overloading

d)Namespaces

QUES:class derived: public base1, public base2 { } is an example of

a)Polymorphic inheritance

 b)Multilevel inheritance

c)Hierarchical inheritance

d)Multiple inheritance

QUES:A constructor that does not have any parameters is called____________ constructor.

a. Custom
 b. dynamic
c. static
d. default

QUES:If default constructor is not defined, then how the objects of the class will be created?

a. The compiler will generate error


 b. Error will occur at run-time.
c. Compiler provides its default constructor to the class.

d.none of these

QUES: Which of the followings are true about constructors?

1. A class can have more than one constructor


2. They can be inherited
3. Their address can be referred
4. Constructors cannot be declared in protected section of the class
5. Constructors cannot return values

a. Only 1,2,4
 b. 1,2,4,5
c. 1,3,5
d. 1,4,5
d. None of these

QUES:An exception is thrown using _____________ keyword in CPP.

a. throws
b. throw
c. threw
d. thrown

QUES:The code of statements which may cause abnormal termination of the program should
 be written under_________ block
a. try
 b. catch
c. Finally
d. None of these

QUES:Exception handlers are declared with ____________ keyword

a. Try
b. catch
c. throw
d. finally

QUES:In C++ how many return statements are allowed in a non-void function?

a) 1
 b) as many as you like
c) 0
d) 2

QUES:Generic pointers can be declared with__________

a. auto
b. void
c. asm
d. None of these

QUES: Run time polymorphism can be achieved with______

a. Virtual Base class


 b. Container class
c. Virtual function
d. Both a and c

QUES:We can create objects of the abstract class.

a. True
b. False

QUES: ________________ is a member function that is declared within a base class and


redefined by derived class.

a. virtual function
 b. static function
c. friend function
d. const member function
QUES:When a virtual function is redefined by the derived class, it is called___________

a. Overloading
b. Overriding
c. Rewriting
d. All of these

QUES:Which of the followings are true about Virtual functions?

a. They must be non-static member function of the class


 b. They cannot be friends
c. Constructor Functions cannot be virtual
d. All of these

QUES:If a class contains pure virtual function, then it is termed as_____________________

a. Virtual class
 b. Sealed class
c. Pure Local class
d. Abstract Class

QUES:If abstract class is inherited by derived class, then_______________

a. Derived class should provide definition for all the pure virtual functions
 b. Derived class also become abstract if fails to implement pure virtual functions
c. Objects of derived class can’t be created if it fails to implement pure virtual functions
d. All of these

QUES:A virtual function that has no definition within the base class is called____________

a. Pure virtual function


 b. Pure static function
c. Pure Const function
d. Friend function

QUES:Reusability of the code can be achieved in CPP through

a. Polymorphism
 b. Encapsulation
c. Inheritance
d. Both a and c

QUES:When a child class inherits traits from more than one parent class, this type of
inheritance is called _______________ inheritance.

a. Hierarchical
 b. Hybrid
c. Multilevel
d. Multiple
QUES:class X, class Y and class Z are derived from class BASE. This is _____________
inheritance

a. Multiple
 b. Multilevel
c. Hierarchical
d. Single
QUES:The derivation of Child class from Base class is indicated by ____ symbol.

a. ::
b. :
c. ;
d. |

QUES: If the derived class is struct, then default visibility mode is_______

a. public
 b. protected
c. private
d. struct can’t inherit class

QUES:When a base class is privately inherited by the derived class, then_______________

a. protected members of the base class become private members of derived class
 b. public members of the base class become private members of derived class
c. both a and b

QUES:Scope resolution operator is used______

a. to resolve the scope of global variables only


 b. to resolve the scope of functions of the classes only
c. to resolve scope of global variables as well as functions of the classes
d. None of these

QUES:A class can contain objects of other classes and this phenomenon is
called__________

a. Relationship
 b. Object Association
c. Containership
d. None of these

QUES:Which of the followings is/are pointer 


 – to-member declarator ?

a . ->*
 b. .*
c. ::*
d. both a and b

QUES:By default, members of the class are____________ in nature.


a. protected
b. private
c. public
d. static

QUES: ____________ refers to the act of representing only essential features without


including the background details.

a. Data Hiding
 b. Data Encapsulation
c. Data Abstraction
d. All of these

QUES:Only functions of the class can access the data of the class and they(functions)
 provides the interface between data, objects and the program. This kind isolation of the data
from direct access by the program is called_______________

a. Data Abstraction
b. Data Hiding
c. Data Binding
d. Data Encapsulation

QUES: __________________ is the OOP feature and mechanism that binds together code
and the data it manipulates, and keep both safe from outside world.

a. Data Binding
b. Data Encapsulation
c. Data Storing
d. Data Abstraction

QUES:Object oriented programming employs_________ programming approach.

a. top-down
 b. procedural
c. bottom-up
d. all of these.

QUES:In CPP, cin and cout are the predefined stream__________

a. Operator
 b. Functions
c. Objects
d. Data types

QUES:Classes in CPP are________

a.derived data types


b.User defined data types
c.built-in data types
d. All of these
QUES:When a class is defined inside any function or block, it is called_____________

a. Nested class
 b. Block class
c. Local class
d. It is not possible

QUES:Use of virtual functions implies

a)overloading
 b)overriding
c)static binding
d)dynamic binding
QUES:In multiple inheritance

a)the base classes must have only default constructors


 b)cannot have virtual functions
c)can include virtual classes
d)None of the above.

QUES:Where does the execution of the program starts?


a) user-defined function
b) main function
c) void function
d) none of the mentioned

QUES:What are mandatory parts in function declaration?


a) return type,function name
 b) return type,function name,parameters
c) both a and b
d) none of the mentioned

QUES:Which is more effective while calling the functions?


a) call by value
b) call by reference
c) call by pointer
d) none of the mentioned

QUES:Which rule will not affect the friend function?


a) private and protected members of a class cannot be accessed from outside
 b) private and protected member can be accessed anywhere
c) both a & b
d) None of the mentioned

QUES:What is the syntax of friend function?


a) friend class1 Class2;
 b) friend class;
c) friend class
d) None of the mentioned
QUES.To which of the following access aspecifiers are applicable?
a) Member data
 b) Functions
c) Both a & b
d) None of the mentioned

QUES.In which of the following we cannot overload the function?

a) return function
 b) caller
c) called function
d) none of the mentioned

QUES:Which of the following permits function overloading on c++?


a) type
 b) number of arguments
c) both of the mentioned
d) none of the mentioned

QUES:Function overloading is also similar to which of the following?


a) operator overloading
 b) constructor overloading
c) destructor overloading
d) none of the mentioned

QUES:How many specifiers are present in access specifiers in class?


a) 1
 b) 2
c) 3
d) 4

QUES:Which other keywords are also used to declare the class other than class?
a) struct
 b) union
c) object
d) both a & b

QUES:. Which class is used to design the base class?


a) abstract class
 b) derived class
c) base class
d) None of the mentioned

QUES:Which is used to create a pure virtual function ?


a) $
b) =0
c) &
d) !
QUES:What is a template?
a) A template is a formula for creating a generic class
 b) A template is used to manipulate the class
c) A template is used for creating the attributes
d) none of the mentioned
View Answer

QUES:. How to declare a template?


a) tem
 b) temp
c) template<>

d)template;

QUES:. In multiple inheritance


A) the base classes must have only default constructors
B) cannot have virtual functions
C) can include virtual classes
D) None of the aboved) none of the mentioned

QUES:. Overloading the function operator

A) requires a class with an overloaded operator

B) requires a class with an overloaded [ ] operator.

C) allows you to create objects that act syntactically like functions.

D) usually make use of a constructor that takes arguments.

QUES:. Which of the following is the proper declaration of a pointer?

A) int x;

B) int &x;
C) ptr x;
D) int *x;

QUES:. The compilers converts all operands upto to type of the largest operand is called as
…………

A) typeconversion
B) expression
C) evaluation
D) precedence

QUES.Which of the following is a mechanism of static polymorphism?

A)Operator overloading
B)Function overloading

C)Templates

D)All of the above

QUES.What happens if the base and derived class contains definition of a function with same
 prototype?

A)Compiler reports an error on compilation.

B)Only base class function will get called irrespective of object.

C)Only derived class function will get called irrespective of object.

D)Base class object will call base class function and derived class object will call derived
class function.

QUES.Which of the following problem causes an exception?

A)Missing semicolon in statement in main().

B)A problem in calling function.

C)A syntax error.

D)A run-time error.

QUES.Which of the following concepts means adding new components to a program as it


runs?

A)Data hiding

B)Dynamic typing

C)Dynamic binding

D)Dynamic loading

QUES.Which of the following correctly describes overloading of functions?

A)Virtual polymorphism

B)Transient polymorphism

C)Ad-hoc polymorphism

D)Pseudo polymorphism
QUES.. What does a default header file contain?
a) prototype
 b) implementation
c) declarations
d) none of the mentioned

QUES. Which of the following header file does not exist?


a) <iostream>
 b) <string>
c) <sstring>
d) <sstream>

QUES.Identify the incorrect option.


a) enumerators are constants
 b) enumerators are user defined types
c) enumerators are same as macros
d) enumerator values start from 0 by default

QUES.In which type does the enumerators are stored by the compiler?
a) string
b) integer
c) float
d) none of the mentioned

QUES.To which of these enumerators can be assigned?


a) integer
 b) negative
c) enumerator
d) all of the mentioned

QUES.. What will happen when defining the enumerated type?


a) it will not allocate memory
 b) it will allocate memory
c) it will not allocate memory to its variables
d) none of the mentioned

QUES. Which variable does equals in size with enum variable?


a) int variable
 b) float variable
c) string variable
d) none of the mentioned

QUES. Which of the following operators can’t be overloaded?


a) ::
 b) +
c) – 
d) []

QUES.How to declare operator function?


a) operator operator sign
 b) operator
c) operator sign
d) None of the mentioned

QUES. The operator used for dereferencing or indirection is ____


a) *
 b) &
c) ->
d) – >>

QUES.. Why we use the “dynamic_cast” type conversion?


a) result of the type conversion is a valid
 b) to be used in low memory
c) result of the type conversion is a invalid
d) None of the mentioned

QUES. How many parameters does a conversion operator may take?


a) 0
 b) 1
c) 2
d) as many as possible

QUES.. Which of the following is a correct comment?

1. */ Comments */.
2. ** Comment **.
3. /* Comment */.
4. { Comment }.

QUES.What is the only function all C++ programs must contain?

a. Start().

 b. System().

c. Main().

d. Program().

QUES.What punctuation is used to signal the beginning and end of code blocks?

a. { }.

 b. -> and <-.

c. BEGIN and END.

d. ( and ).

QUES. Which of the following is not a correct variable type?


a. Float.

b. Real.

c. Int.

d. Double.

QUES. Which of the following is the correct operator to compare two variables?

a. :=

.b. =.

c. equal.

d. = =.

QUES. Which of the following is the boolean operator for logical-and?

a. &.

b. &&.

c. |.

d. |&.

QUES.The directives for the preprocessors begin with_____________.

a. ampersand symbol (&).

 b. two Slashes (//).

c. number Sign (#).

d. less than symbol (<).

QUES.There is a unique function in C++ program by where all C++ programs start their
execution with ______________.

a. start().

 b. begin().

c. main().

d. output().

QUES.. __________ storage class is the only request to the compiler.


a. Extern

 b. Static

c. Register

d. Auto

QUES.. How many times is a do while loop guaranteed to loop?

a. 0.

 b. Infinitely.

c. 1.

d. Variable.

QUES.. Which of the following is not a jump statement in C++?

a. Break.

 b. Goto

c. Exit.

d. Switch.

QUES.A continue statement causes execution to skip to ____________.

a. the return 0; statement.

 b. the first statement after the loop.

c. the statement following the continue statement.

d. the next iteration of the loop.

QUES.In a group of nested loops, which loop is executed the most number of times?

a. The outermost loop

b. The innermost loop

c. All loops are executed the same number of times

d. Cannot be determined without knowing the size of the loops bottom of form

QUES.. Each pass through a loop is called a/an _____________.


a. enumeration.

b. iteration.

c. culmination.

d. pass through.

QUES.. Which looping process checks the test condition at the end of the loop?

a. For.

 b. While.

c. Do-while.

d. No looping process checks the test condition at the end.

QUES.. In C++, 14 % 4 = ___________.

a. 1.

b. 2.

c. 3.

d. 4.

QUES.. Variables that are declared, but not initialized, contain __________.

a. blank spaces.

 b. zeros.

c. “garbage” values.

d. nothing –  they are empty.

QUES.. Array indexing always starts with the number ____________.

a. 0.

 b. 1.

c. 2.

d. none of these.

QUES.. Variables with names that describe the data stored at that particular memory location
are called ________________.
a. identifiers.

 b. constant variables.c

. floating point variables.

d. mnemonic variables.

QUES.. The name of a variable is known as its _______________.

a. identifier.

 b. constant.

c. data type.

d. base.

QUES.. What function is used to release the allocated memory space?

a. Deallocate().b. Release ().c. Free (). d. Empty ().

QUES.The general form, of assignment operator is _____ .

1. variable_name=expression.
2. datatype=expression.
3. variable=expression.
4. datatype=expression1.

QUES.. The compilers convert all operands up to the type of the largest operand are called as
 ______.

1. expression.
2. evaluaton.
3. typeconversion.
4.  precence.

QUES. ______ variables are permanent variables within their own function or file.

1. Auto.
2. Static.
3. Extern.
4. Register.

QUES. A ______ storage specifier is originally applied to variables of type int,char,pointers.

1. auto.
2. static.
3. extern.
4. register .
ANSWER: D

QUES.. _______ is referred to fixed value that the program may not alter.

1. Constant.
2. Variable.
3. Expression.
4. Keywords.

ANSWER: A

QUES. _____ is a named location in memory that is used t hold the value that may be
modified by the program.

1. Expression.
2. Keyword.
3. Variable.
4. Identifiers.

ANSWER: C

QUES.A _______defines a new type that links code and data.

1. array declaration.
2. class definition.
3.  pointer declaration.
4. variable declaration.

ANSWER: B

QUES.. A _______ access specifier is needed only when inheritance is involved.

1.  public.
2.  private.
3. protected .
4. automatic.

ANSWER: C

QUES.. _______ is the elements of a class that are called member or data member.

1. Pointer.
2. Variable.
3. Character.
4. Identifier.

ANSWER: B

QUES.A ________ function has access to all private and protected members of the class for
which it is a friend.
1. friend.
2. member.
3. nonmember.
4. void.

QUES.. _______ function allows creating very efficient code.

1. Friend.
2. Member.
3. Inline.
4. Void.

ANSWER: C

QUES.. _________ is initialized when an object is created.

1. Constructor .
2. Destructor.
3. Array.
4. Pointer.

ANSWER: A

QUES.. ________ is automatically created when constructors are used.

1. Objects.
2. Destructors .
3. Arrays.
4. Reference.

ANSWER: B

QUES.. Which of the following type of class allows only one object of it to be created?

1. Virtual class
2. Abstract class
3. Singleton class
4. Friend class

ANSWER: C

QUES. A _______ defines a class type.

1. structure.
2. union.
3. enumeration.
4. type def.

ANSWER: A
QUES.. ________ function is a function that calls itself repeatedly.

1. friend.
2. inline.
3. recursive .
4. member.

ANSWER: C

QUES.. A _______ is an alias or synonym for another variable.

1. reference.
2. structure.
3.  pointer.
4. array.

ANSWER: A

QUES.. ________ is the process of using the same name for two or more functions.

1. Function Overloading.
2. Operator Overloading.
3. Default Function.
4. Constructors.

ANSWER: A

QUES.. _____ is used to prevent problems when one object is used to initialize others.

1. Default Constructor.
2. Parameterized Constructor.
3. Copy Constructor.
4. Overloading Operator.

ANSWER: C

QUES.. ________ must be predefined in the C++ compiler

1. Keywords.
2. Variables.
3. Identifiers.
4. Operators.

ANSWER: D

QUES.. _________ function is not a member of the class which does not have “this” pointer.

1. Inline.
2. Friend.
3. Member.
4. Void.

ANSWER: B

QUES. The ______ function receives the pointer to the region of memory to be free.

1. new.
2. delete.
3. free.
4. alloc.

ANSWER: B

QUES.. The -> pointer operator is also called as _____.

1. class member access.


2. loc::operator.
3. element.
4. object.

ANSWER: A

QUES.. The class that acquires the properties of parent class is called _________ class.

1.  base.
2. inherited.
3. derived.
4.  public.

ANSWER: C

QUES.The keyword virtual precedes the inherited _______ specification.

1. class.
2. variable.
3. array.
4.  pointer.

ANSWER: A

QUES.The inherited member access specification is to employ _______ within the derived
class.

1. class declaration.
2.  private declaration.
3.  public declaration.
4. access declaration.

ANSWER: D
QUES.. The ______ is used to create generic function and classes.

1. class.
2. template.
3. specifier.
4. identifier.

ANSWER: B

QUES.. The _________ defines a general set of operation that will be applied to various
types of data.

1. generic function.
2. member function.
3. function overloading.
4. operator overloading.

ANSWER: A

QUES.. The function ________ displays its first argument at the tab position requested by its
argument.

1. tab.
2. out .
3. tabout.
4. tab( ).

ANSWER: C

QUES.. The ________ parameter is a standard call by value parameter.

1. tabout ( ).
2. tab.
3. out.
4. tab ( ).

ANSWER: B

QUES.Which of the following keywords is used to control access to a class member?

1. Default
2. Break
3. Protected
4. Asm

ANSWER: C

QUES.. ______ is an implicit parameter to all member functions.

1. Pointer.
2. This.
3. Enum.
4. Array.

ANSWER:2

QUES.A ________ is an object that contains memory address.

1. constructor.
2. destructor.
3. pointer.
4. temp.

ANSWER: C

QUES. ________ is a unary operator that returns the memory address of its operand.

1. &.
2. ++.
3.  _ _.
4. ||.

ANSWER: A

QUES. ________ is a stream connected to standard output.

1. cin.
2. gets.
3. out.
4. cout.

ANSWER: D

QUES.The functions that are used to access the file in non-sequential fashion _______ and
 _____.

1. seekf( ) , seekp ( ).
2. seekg( ), seekp( ).
3. seekp( ), seekf ( ).
4.  beg( ), seekx( ).

ANSWER: B

QUES.. An exception is caught based on its ______.

1. keyword.
2. address.
3. type.
4.  pointer.
ANSWER: C

QUES.The keyword _______ is used to declare a generic function.

1. generic.
2. template.
3. virtual.
4. friend.

ANSWER: B

QUES.If an allocation request is not fulfilled ________ exception is thrown.

1. wrong_alloc.
2. re_alloc.
3. malloc.
4. bad_alloc.

ANSWER: D

QUES.The ______ keyword brings the members of a namespace into view.

1. view.
2. using.
3. additive.
4. show.

ANSWER: B

QUES.. ________ determines the type of an object at the runtime.

1. Static.
2. Dynamic.
3. Typeid.
4. Typedef.

ANSWER: C

QUES.. The current position of each file pointer using the functions _____ and _____.

1. pos_type tellg( ), pos_type tellp( ).


2.  pos_type tellx( ), pos_type tellf( ).
3.  pos_type tellx( ), pos_type tellp( ).
4.  pos_type tellf( ), pos_type tellp( ).

ANSWER: A

QUES.The ______ is the function that detects the end of file.

1. eof( ).
2. getline( ).
3.  putline( ).
4. clear( ).

ANSWER: A

QUES.The ___ manipulator skips leading whitespaces.

1. sw.
2. ws.
3. wt.
4. skipws.

ANSWER: B

QUES.. The ______ is a short function that gets or sets the value of a private instance
variable.

1. inline.
2. friend.
3. accessor.
4. void.

ANSWER: C

QUES.. To rethrow an exception ______ is specified.

1. throw without a value.


2. catch with a value.
3. rethrow.
4. catch without a value.

ANSWER: A

QUES.. C++ was developed by___.

1. Dr. Bjarne stroustrup.


2. Dennis Ritc
3. Borland.
4. ANSI.

ANSWER: A

QUES.. The ____ is the standard input/ouput library in C++.

1. stdio.
2. iostream.
3. conio.
4. std.
ANSWER: B

QUES.. The _____ is predefined identifier that is linked to console output

1. out.
2.  print.
3. cin.
4. cout.

ANSWER: D

QUES.. A ____ is a storage location that contains data value.

1. function.
2. structure.
3. variable.
4. key word.

ANSWER: C

QUES.. _____ is the data type that can accommodate char that require more than 8-bits.

1. char.
2. wchar_t.
3. w char.
4. char_t.

ANSWER: B

QUES.. ______ object is used to print wide characters.

1. wout.
2.  print.
3. w_cout.
4. cout.

ANSWER: A

QUES.Which of the following is not true about constants in c++?

1. It is also called literals.


2. It has not compiled place in memory.
3. It s value cannot be changed.
4. The address value cannot be of constant data type

QUES.The escape sequence \onn represents _______.

1.  back space.
2. new line.
3. octal number.
4. hexadecimal number.

ANSWER: C

1. Which of the following is the proper keyword to allocate memory?


2. new.
3. malloc.
4. create.
5. value

QUES.Which of the following is the proper keyword to deallocate memory?

1. free.
2. delete.
3. clear.
4. remove.

ANSWER: A

QUES.A variable that receives an assigned value is called an___________.

1. l value.
2. r value.
3. value.
4. assignment.

ANSWER: A

QUES.. >> is called as __________ operator.

1. insertion.
2. extraction.
3. greater than.
4. lesser than.

ANSWER: B

QUES.. The ____________ operation returns the remains of a divisions operation .

1. . !.
2. &&.
3. %.
4. /.

ANSWER: C

QUES.. ____________ operation inserts zero bits into low order bits of result.

1. shift.
2. shifting left.
3. shifting right.
4. append.

ANSWER: B

QUES.. Which of the following is invalid assignment operator?

1. -=.
2. &=.
3. ^=.
4. *=.

ANSWER: C

QUES.Which one of the following is the conditional operator?

1. ?: .
2. ?: =.
3. :?.
4. ?=.

ANSWER: A

QUES.Which on of the following has the highest precedence?

1. %.
2. ( ).
3. ||.
4. ?:.

ANSWER: B

QUES.. ___________ is not a type of scope in c++.

1. global.
2. local.
3. file.
4. function.

ANSWER: D

QUES.When local & global variable have same name to refer global variable_____________
operator is used.

1. ?:
2. :
3. ::
4. <<

ANSWER: C
QUES.. The result of a relational or logical expression is of type _________.

1. integer.
2. float.
3. boolean.
4. character.

ANSWER: c

QUES.. A _____________ local variable preserves its variable between function calls.

1. extern.
2. static.
3. register.
4. auto.

ANSWER: B

QUES.The ____ storage class is the only request to the compiler.

1. xtern.
2. static.
3. register.
4. auto.

ANSWER: C

QUES.. Which one of the following is correct assignment of the variable min to zero?

1. min = = 0;
2. min =+ 0
3. min = 0;
4. min ++ 0

ANSWER: C

QUES.To what device is cin linked by default?

1.  printer.
2. keyboard.
3. CPU.
4. mouse.

ANSWER: B

QUES.. ____ is the output operator.

1. >>.
2. <.
3. >.
4. <<.

ANSWER: D

QUES.. Which one of the following is invalid variable name?

1. 1count .
2. count.
3. counta.
4. count_a.

ANSWER: A

QUES.. A/An ________ integer can hold both positive and negative values.

1. unsigned.
2.  positive.
3. negative.
4. signed.

ANSWER: D

QUES.. The primary difference between float and double is in the ____ of the value they
hold.

1. address.
2. magnitude.
3. sign.
4. decimal point.

ANSWER: B

QUES.The _____ type specifies a valueless expression.

1. int.
2. float.
3.  bool.
4. void.

ANSWER: D

QUES.. _____ is the escape sequence that causes a backspace.

1. \b.
2. \s.
3. \bs.
4. \ba.

ANSWER: A
QUES.The specification of the number 100 as long int is _____.

100. L100.
101. 100.
102. 100L.
103. 100I.

ANSWER: C

QUES.Which of the following concepts means determining at runtime what method to


invoke?

1. Data hiding
2. Dynamic Typing
3. Dynamic binding
4. Dynamic loading

ANSWER: C

QUES.. The automatic conversion of all char and short int values to int is called _______.

1. integral promotion .
2. type promotion.
3. value promotion.
4. cast.

ANSWER: A

QUES.The operands converted up to the type of largest operands are called _____.

1. integral promotion.
2. type promotion.
3. value promotion.
4. cast.

ANSWER: B

QUES.. The variables in an array are called its _____.

1. data.
2. index.
3. elements.
4. subscripts.

ANSWER: C

QUES.. The elements of an array can be accessed by providing integer expression called
 ____.

1. superscripts.
2. elements.
3. values.
4. subscripts.

ANSWER: D

QES.. The second element of the array int zones[5]= { 43,54,56,76,78} can be accessed by
 ________.

1. zones[2].
2. zones[1].
3. zones[3].
4. zones[4].

ANSWER: B

QUES.The declaration of a two dimensional array called list with dimensions 4 X 9 is


represented as _____.

1. int list [4] [9].


2. int list [9][4].
3. int list [4,9].
4. int list[9,4].

ANSWER: A

QUES.. In a two dimensional array called list with dimensions 4 X 9 the element 2,3 can be
accessed by using the expression _____.

1. list[3][2].
2. list[2,3].
3. list[2][3].
4. list[3,2].

ANSWER: C

QUES.. The size of operator returns the size of variable or type in _____.

1.  bits.
2. nibble.
3. bytes.
4. char.

ANSWER: C

QUES.. Size of operator is _______ operator.

1. compile time.
2. intrinsic.
3. extraction.
4. ternary.

ANSWER: A

QUES.. A reference parameter is declared by proceeding with ______.

1. *.
2. &.
3. &&.
4. ~.

ANSWER: B

QUES.. When a function returns a reference it ______.

1. returns an implicit pointer to its return value.


2. displays that pointer.
3. returns the value referring to it.
4. does not return anything.

ANSWER: A

QUES.. Which of the following is not true with the reference variable?

1. References eliminate the overhead associated with passing large data structures as
 parameters.
2. It cannot be used to reduce complex notation .
3. References eliminate pointer dereference notation.
4. It is a copy alias for another variable.

ANSWER: B

QUES.. The ____ storage class is used to declare reference variable.

1. register.
2. static.
3. extern.
4. auto.

ANSWER: C

QUES.If and the switch statements are called as _____ statements.

1. iteration.
2.  jump.
3. selection.
4. conditional.

ANSWER: C
QUES.The conditional expressions are evaluated from _____.

1. top down.
2.  bottom up.
3. middle.
4. end.

ANSWER:A

QUES. ______ provides multiway branching.

1. for.
2. if.
3. if else.
4. switch.

ANSWER: D

QUES.. Variables that are declared, but not initialized, contain _______.

1.  blank spaces.
2. zeros.
3. “garbage” values .
4. nothing –  they are empty.

ANSWER: C

QUES.The switch expression must be of type _______ or _______.

1. char,float.
2. float,int.
3. int, char.
4. char, float.

ANSWER: C

QUES.. The code and data are called ______ of the class.

1. instances.
2. instance variables.
3. members.
4. object.

ANSWER: C

QUES.The ______is contained in instance variable defined by the class.

1. data.
2. code.
3. object.
4. function.

ANSWER: A

QUES.. Code is contained in _____ of the class.

1. object.
2. template.
3. function.
4. array.

ANSWER: C

QUES.. ___ operator links the name of the object with the name of the member.

1. ->
2. .(Dot)
3. &
4. *

ANSWER: B

QUES.. Each object has its own copies of the class _______.

1. data.
2. code.
3. function.
4. instance variables.

ANSWER: D

QUES. ____ operator links a class to a member.

1. ::
2. .
3. ->.
4. *.

ANSWER: A

UES.. C++ programs start their execution at _______.

1. start().
2.  begin().
3. main().
4. output().

ANSWER: C
QUES.The _____ function is a short function that gets or sets the value of a private instance
variable.

1. inline.
2. accessor.
3. member.
4. recursive.

ANSWER: B

QUES. Inline is a ____

1. command.
2. statement.
3. request .
4. class.

ANSWER: C

QUES.The ___ functions are implementation independent.

1. inline.
2. accessor.
3. member.
4. recursive

ANSWER: A

QUES.A ___ declaration defines a new type that links code and data.

1. class.
2. array.
3.  pointer.
4. variable.

ANSWER: A

QUES.. A ________ converts from an object of the type of the constructor parameter to an
object of the class.

1. conversion function.
2. member function.
3. class conversion.
4. conversion constructors.

ANSWER: D

QUES. ________ function converts an object of the class in which you define the function to
an object of different data type.
1. conversion function.
2. member function.
3. class conversion.
4. conversion constructors.

ANSWER: C

QUES.An _____ is an instance of class.

1. class.
2. object.
3. variable.
4.  pointer.

ANSWER: B

QUES.. Public, private, protected are ______.

1. identifiers.
2. keywords.
3. access specifiers.
4. type of class.

ANSWER: C

QUES.The ______ access specifier allows functions or data to be accessible to other parts of
the program.

1.  private.
2.  protected.
3.  public.
4. inherited.

ANSWER: C

QUES.. The protected access specifier is needed only when _______ is needed.

1. inline function.
2. file.
3. friend function.
4. inheritance.

ANSWER: D

QUES.. The __________ member variable cannot have an initializer.

1. static.
2. non-static.
3. auto.
4. register.
ANSWER: B

QUES.A structure defines a _______ type.

1. class.
2.  pointer.
3. arrays.
4. variables.

ANSWER: A

QUES.. One of the methods to stop the execution of the function is by calling the standard
 ________ function.

1. goto.
2.  jump.
3. stop.
4. exit.

ANSWER: D

QUES.What is a Constructor?

1. A function called when an instance of a class is initialized.


2. A function that is called when an instance of a class is deleted.
3. A special function to change the value of dynamically allocated memory.
4. A function that is called in order to change the value of a variable.

ANSWER: A

QUES.The ______ term refers to the value that is used to call a function.

1.  parameter.
2. argument.
3. variable.
4.  pointer.

ANSWER: B

QUES.. A ______ is a variable that receives the value.

1. argument.
2. parameter.
3. variable.
4. array.

ANSWER: B

QUES.. The _____ is the variables that contain the address of other variables.
1. function.
2. string.
3. pointer.
4. identifier.

ANSWER: C

QUES.. ____operator returns the address of the identifier.

1. &.
2. *.
3. &&.
4. !.

ANSWER: A

QUES.The ________ operator is used to return the value of the variable to which the pointer
 points.

1. reference.
2. dereference.
3. dot.
4. arrow.

ANSWER: B

QUES.A structure pointer points to an/a ________ of its structure type.

1. variable.
2. address.
3. keyword.
4. instance.

ANSWER: D

QUES.. Which of the following is the proper declaration of a pointer?

1. int x;
2. int &x;
3.  ptr x;
4. int *x;

ANSWER: D

QUES.Which of the following gives the memory address of integer variable a;?

1. *a;
2. a;
3. &a;
4. address(a);
ANSWER: C

QUES.Which of the following gives the memory address of a variable pointed to a pointer a?

1. *a;
2. a;
3. &a;
4. address(a);

ANSWER: A

QUES.Which of the following gives the value stored at the address pointed to by the pointer
a?

1. a;
2. val(a);
3. *a;
4. &a;

ANSWER: C

QUES.Which of the following is the proper keyword to allocate memory?

1.  New.
2. Malloc.
3. Create.
4. Value.

ANSWER: B

QUES.. Which of the following is the proper keyword to deallocate memory?

1. Free.
2. Delete
3. Clear.
4. Remove.

ANSWER: A

QUES.A derived class __________.

1. inherits data members and member functions from base class.


2. inherits constructors and destructor.
3. object can access protected members with the dot operator.
4. inherits data members and member functions from base class as well as Inherits
constructors and destructor.

ANSWER: D

QUES.. The _________is a relationship.


1.  polymorphism.
2. inheritance.
3. overloading.
4. overriding.

ANSWER:B

QUES.The data members of ______ share the same memory.

1. union.
2. structure.
3. function.
4. class.

ANSWER: A

QUES.For a binary member operator function, the left operand is passed through _____ .

1.  pointer.
2. reference.
3. this.
4.  parameter.

ANSWER: C

QUES.A ________ function is a function that has no body inside its base class.

1. inline.
2. friend.
3. constructor.
4.  pure virtual.

ANSWER: D

QUES.. A generic function is created using the keyword ______.

1. template.
2. generic.
3. friend.
4. class.

ANSWER: A

QUES.A generic function is also called as ________.

1. friend function.
2. template function.
3. virtual function.
4. special function.
ANSWER: B

QUES.. The specific version of the generic function created by the compiler is called as
 ______.

1. specialization.
2. generalization.
3. general function.
4. template function.

ANSWER: A

QUES.. A class that is inherited is called as _________ class.

1. derived.
2. child.
3. base.
4. abstract.

ANSWER: C

QUES.The pure virtual function represents the _______.

1. inheritance.
2. overloading.
3. overriding.
4. interface.

ANSWER: D

QUES.. Which of the following is not a correct variable type?

1. float.
2. real.
3. switch.
4. double.

ANSWER: C

QUES.Which of the following is the correct operator to compare two variables?

1. :=.
2. v
3. equal.
4. = =.

ANSWER: D

QUES.. Which of the following is the boolean operator for logical-and?


1. &.
2. &&.
3. |.
4. |&.

ANSWER: B

QUES.. The directives for the pre-processors begin with _______.

1. ampersand symbol (&).


2.  b. two Slashes (//).
3. C. number Sign (#).
4. less than symbol (<).

ANSWER: C

QUES.A continue statement causes execution to skip to________.

1. the return 0; statement.


2. the first statement after the loop.
3. the statement following the continue statement.
4. the next iteration of the loop.

ANSWER: D

QUES.. Set precision requires the ________ header file.

1. stdlib.h.
2. iomanip.h.
3. console.h.
4. conio.h.

ANSWER: B

QUES.The memory address of the first element of an array is called ______.

1. floor address.
2. foundation address.
3. first address.
4. base address .

ANSWER: D

QUES.. A variable P is called pointer if ______.

1. P contains the address of an element in DATA.


2. P points to the address of first element in DATA
3. P can store only memory addresses
4. P contain the DATA and the address of DATA
ANSWER: A

QUES.You have a variable myNum that has the value 5. You want to print your variable to
the screen. How would you do it?

1. cout<< “My number is”, myNum << endl;


2. cout<< “My number is 5” << endl;
3. cout<< My number is << myNum << endl;
4. cout<< “My number is” << myNum << endl;

ANSWER:

QUES.. ________ must be predefined in the C++ compiler.

1. Keywords.
2. Variables.
3. Identifiers.
4. Operators.

ANSWER: D

QUES.The escape sequence \onn represents

1.  back space.
2. new line.
3. octal number.
4. hexadecimal number.

ANSWER: C

QUES.. Find out the error in following code. If (x = 100)

1. 100 should be enclosed in quotations.


2. There is no semicolon at the end of first line.
3. Equals to operator mistake .
4. Variable x should not be inside quotation.

ANSWER: C

QUES.. Looping in a program means _________.

1.  jumping to the specified branch of program.


2. repeat the specified lines of code.
3. testing for the condition.
4.  jumping without checking the condition.

ANSWER: B

QUES.. Which of the following term is used for a function defined inside a class?
1. Member Variable
2. Member function
3. Class function
4. Classic function

ANSWER: B

QUES.. Which of the following is not a valid statement regarding stringstream?

1. Stringstream is defined in the header file <sstream>.


2. It allows string based objects treated as stream.
3. It is especially useful to convert strings to numerical values and vice versa.
4. none of above.

ANSWER: D

QUES.. Which of the header file must be included to use stringstream?

1. <iostream>.
2. <string>.
3. <sstring>.
4. <sstream>.

ANSWER: D

QUES.Which of the following header file does not exist?

1. <iostream>.
2. <string>.
3. <sstring>.
4. <sstream>.

ANSWER: C

QUES.Which of the following is not the member of class?

1. Static function
2. Friend function
3. Const function
4. Virtual function

ANSWER: B

QUES.Which of the following is not a reserve keyword in C++?

1. mutable.
2. default.
3. readable.
4. volatile.
ANSWER: D

QUES.. The size of following variable is not 4 bytes in 32 bit systems is _______.

1. int.
2. long int .
3. short int.
4. float.

ANSWER: C

QUES.. How many instances of an abstract class can be created?

1. 1
2. 13
3. 5
4. 0

ANSWER: D

QUES.. Which of the following is not a valid escape code?

1. \t.
2. \v.
3. \f.
4. \w.

ANSWER: D

QUES.What is the correct value to return to the operating system upon the successful
completion of a program?

2. 2.
3. 1.
4. 0.
5.  programs do not return a value.

ANSWER: C

QUES.. What punctuation is used to signal the beginning and end of code blocks?

1. { }.
2. -> and <-.
3. BEGIN and END.
4. ( and ).

ANSWER: A

QUES.The file iostream includes __________.


1. the declarations of the basic standard input-output library.
2. the streams of includes and outputs of program effect.
3.  both of these
4. none of these.

ANSWER: A

QUES.. Every function in C++ is followed by ________.

1.  parameters.
2. parenthesis.
3. curly braces.
4. none of these.

ANSWER: B

QUES.Which of the following is false?

1. cout represents the standard output stream in c++.


2. cout is declared in the iostream standard file.
3. cout is declared within the std namespace.
4. none of above.

ANSWER: D

QUES.Every statement in C++ program should end with a _______.

1. full stop (.).


2. comma (,).
3. semicolon (;).
4. colon (:).

ANSWER: C

QUES.Which of the following statement is true about preprocessor directives?

1. these are lines read and processed by the pre-processor.


2. they do not produce any code by themselves.
3. these must be written on their own line.
4. they end with a semicolon.

ANSWER: D

QUES.. When writing comments you can _______.

1. use code and /* comment on the same line.


2. use code and // comments on the same line.
3. use code and //* comments on the same line.
4. use code and <!- comments on the same line.
ANSWER: B

QUES.. Which of the following can not be used as identifiers?

1. letters.
2. digits.
3. underscores.
4. spaces.

ANSWER: D

QUES.Which of the following identifiers is invalid?

1.  papername.
2. writername.
3. typename.
4.  printname.

ANSWER: C

QUES.Which of the following is not a looping statement in C?

1. while.
2. until.
3. do.
4. for.

ANSWER: B

QUES.In C++, 14 % 4 = ________.

1. 1.
2. 2.
3. 3.
4. 4.

ANSWER: B

QUES.Which of the following is not a jump statement in C++?

1.  break.
2. goto.
3. exit.
4. switch.

ANSWER: D

QUES.When using a built-in function, you must _________.

1. include the function’s prototype.


2. include the proper header file.
3. include the function’s definition.
4. specify the length of the library function.

ANSWER: D

QUES.The library function isalpha( ) requires the header file ____.

1. <ctype.h>.
2. <math.h>.
3. <time.h>.
4. <stdlib.h>.

ANSWER: A

QUES.The built-in library function isalnum( ) is testing to determine if the argument is ___.

1. one of “all” numbers available from the keyboard.


2. an alphabet character.
3. an ASCII character.
4. an alphanumeric.
alphanumeric.

ANSWER: D

QUES.The built-in library function ceil(x) requires the _______ header file.

1. <ctype.h>.
2. <math.h>.
3. <stdlib.h>.
4. <time.h>.

ANSWER: B

QUES.. To raise any number to a power, _______ is used.

1. the exponent symbol ^.


2. the built-in library function pow(x,y).
3. the built-in library function pow10(x).
4. concatenation.

ANSWER: B

QUES.. Time_t is a ____.

1. variable used to hold a number from the computer’s internal clock.


2. data type
3.  built-in library function
functi on which will return a value from the internal clock.
4. header file.

ANSWER: B
QUES.. The rand( ) built-in library function _____.

1. is a true random number generator.


2. returns positive double values.
3. is a pseudo-random number generator.
4. returns a different sequence of values each time it is run.

ANSWER: C

QUES.The purpose of the code answer = toupper(ans); is to ensure that _________.

1. answer will be rounded to the next larger integer.


2. the first letter in answer will be a capital letter.
3. answer will contain all capital letters.
4. answer will contain no numeric values.

ANSWER: C

QUES.. Which type of data file is analogous to an audio cassette tape?

1. random access file


2. sequential access file
3.  binary file
4. source code file

ANSWER: B

QUES.Which of the following header files is required for creating and reading data files?

1. ofstream.h.
2. fstream.h.
3. ifstream.h.
4. console.h.

ANSWER: B

QUES.. The continue statement _____.

1. resumes the program if it is hanged.


2. resumes the program if it was break was applied.
3. skips the rest of the loop in current iteration.
4. executes the entire iteration.

ANSWER: C

QUES.The code ifstream fin; would be used when _______.

1. creating a file.
2. reading a file.
3. appending a file.
4. removing a file.

ANSWER: B

QUES.The conditional compilation __________.

1. is taken care of by the compiler.


2. is setting the compiler option conditionally.
3. is compiling a program based on a condition.
4. none of the above.

ANSWER: C

QUES.. Which of the following language is a subset of C++ language?

1. C language.
2. Java Language.
3. C# language.
4. B language.

ANSWER: A

QUES.. Which of the following correctly describes C++ language?

1. Statically typed language.


2. Dynamically typed language.
3. Both Statically and dynamically typed language.
4. Type-less language.

ANSWER: A

QUES.Which of the following keyword supports dynamic method resolution?

1. Abstract.
2. Virtual.
3. Dynamic.
4. Typeid.

ANSWER: B

QUES.. Which of the following concept is not supported by C++?

1. Exception Handling.
2. Reflection.
3. Operator Overloading.
4.  Namespaces.

ANSWER: B

QUES.Which of the following language feature is not an access specifier in C++?


1. Public.
2. Private.
3. Protected.
4. Internal.

ANSWER: D

QUES.What does STL stand for?

1. Simple Template Library.


2. Standard Template Library.
3. Static Type Library.
4. Single Type-based Library.

ANSWER: B

QUES.Which of the following is the most common way of implementing C++?

1. A. C++ programs are directly compiled into native code by a compiler .


2. C++ programs are first compiled to intermediate code by a compiler and then
executed by a virtual machine.
3. C++ programs are interpreted by an interpreter.
4. A C++ editor directly compiles and executes the program.

ANSWER: A

QUES.What is the implicit pointer that is passed as the first argument for non-static member
functions?

1. self pointer.
2. std::auto_ptr pointer.
3. Myself pointer.
4. this pointer.

ANSWER: D

QUES.. If X is the name of the class, what is the correct way to declare copy constructor of
X?

1. X(X arg).
2. X(X* arg).
3. X(const X* arg).
4. X(const X& arg).

ANSWER: D

QUES.. Which of the following operator cannot be overloaded?

1. = (assignment operator).
2. == (equality operator).
3. -> (rrow operator).
4. :: (cope resolution operator).

ANSWER: D

QUES.Which of the following operators can be overloaded?

1. .(dot or member access operator).


2. & (address-of operator).
3. sizeof operator.
4. ?: (conditional operator).

ANSWER: B

QUES.. How do we declare an abstract class?

1. By providing at least one pure virtual method in a class.


2. By declaring at least one method abstract using the keyword abstract in a class.
3. By declaring the class abstract with the keyword abstract.
4. It is not possible to create abstract classes in C++.

ANSWER: A

QUES.How do we declare an interface class?

1. By making all the methods pure virtual in a class.


2. By making all the methods abstract using the keyword abstract in a class.
3. By declaring the class as interface with the keyword interface.
4. It is not possible to create interface class in C++.

ANSWER: A

QUES.. How many copies of a class static member are shared between objects of the class?

1. A copy of the static member is shared by all objects of a class.


2. A copy is created only when at least one object is created from that class.
3. A copy of the static member is created for each instntiation of the class.
4.  No memory is allocated for static members of a class.

ANSWER: A

QUES.. Which of the following is true about const member functions?

1. const members can be invoked on both const as well as nonconst objects .


2. const members can be invoked only on const objects and not on nonconst objects.
3. nonconst members can be invoked on const objects as well as nonconst objects.
4. none of the above.

ANSWER: A
QUES.When is std::bad_alloc exception thrown?

1. When new operator cannot allocate memory.


2. When alloc function fails.
3. When type requested for new operation is considered bad, this exception is thrown.
4. When delete operator cannot delete teh allocated (corrupted) object.

ANSWER: A

QUES.. Which header file should we include for using std::auto_ptr?

1. <memory>.
2. <alloc>.
3. <autoptr>.
4. <smartptr>.

ANSWER: A

QUES.. Which of the following correctly describes the meaning of namespace feature in
C++?

1.  Namespaces refer to the memory space allocated for names used in a program.
2.  Namespaces refer to space between the names in a program.
3.  Namespaces refer to space between the names in a program.
4. Namespaces provide facilities for organizing the names in a program to avoid
name clashes.

ANSWER: D

QUES. ____________ operation inserts zero bits into low order bits of result.

1. Shift.
2. Shifting left.
3. Shifting right.
4. Append.

ANSWER: B

QUES.The eof( ) is the function used for_____.

1. asserting no errors in a file.


2. appending data to a file.
3. counting the amount of data in a file.
4. checking for end of file.

ANSWER: D

QUES.. Minimum number of temporary variable needed to swap the contents of 2 variables
is ________.
1. 1.
2. 4.
3. 2.
4. 0.

ANSWER: D

QUES.. A direct access file is _______.

1. a file in which records are arranged in a way they are inserted in a file.
2. a file in which records are arranged in a particular order.
3. a file which is stored on a direct access storage medium.
4. none of the above.

ANSWER: C

QUES.Which of the following is not an advantage of secondary memory?

1. It is cost-effective.
2. It has large storage capacity.
3. It has highest speed.
4. It is easily portable.

ANSWER: C

QUES.How many objects can be created from an abstract class?

1. Zero
2. One
3. Two
4. As many as we want

ANSWER: A

QUES.Which of the following is not a file operation?

1. Repositioning.
2. Truncating.
3. Readable.
4. Appending.

ANSWER: C

QUES.. Which of the following is not a component of file system?

1. Access method.
2. Auxiliary storage management.
3. Free integrity mechanism.
4. None of the above.
ANSWER: D

QUES.. Which of the following concepts means wrapping up of data and functions together?

1. Abstraction
2. Encapsulation
3. Inheritance
4. Polymorphism

ANSWER: B

QUES.. Which of the following is correct about function overloading?

1. The types of arguments are different.


2. The order of argument is different.
3. The number of argument is same.
4. Both A and B.

ANSWER: D

QUES.Which of the following concepts means waiting until runtime to determine which
function to call?

1. Data hiding
2. Dynamic casting
3. Dynamic binding
4. Dynamic loading

ANSWER: C

QUES.Which of the following is an abstract data type?

1. int
2. double
3. string
4. Class

ANSWER: D

QUES.. cout is a/an __________ .

1. operator
2. function
3. object
4. macro

ANSWER: C

QUES.. Which of the following approach is adapted by C++?


1. Top-down
2. Bottom-up
3. Right-left
4. Left-right

ANSWER: B

QUES.. How “Late binding” is implemented in C++?

1. Using C++ tables


2. Using Virtual tables
3. Using Indexed virtual tables
4. Using polymorphic tables

ANSWER: B

QUES.. A ______ is a variable that receives the value.

1. datatype.
2. parameter .
3. variable.
4. array.

ANSWER: B

QUES.Value of ix+j, if i,j are integer type and ix long type would be _____.

1. integer.
2. float.
3. long integer.
4. double precision.

ANSWER: C

QUES.. ____ is the standard input/output library in C++.

1. stdio.
2. iostream.
3. conio.
4. std.

ANSWER: B

QUES.. ____ operator links a class to a member.

1. ::
2. ..
3. ->.
4. *.
MCQ of Web Designing – Set 1
by Ganesh Maharjan

1-1. What is the full form of HTML?


A. Hyper text markup language
B. Hyphenation text markup language
C. Hyphenation test marking language
D. Hyper text marking language
1-2. What is the full form of HTTP?
A. Hyper text transfer protocol
B. Hyper text transfer package
C. Hyphenation text test program
D. none of the above
1-3. What is a search engine?
A. a program that searches engines
B. a web site that searches anything
C. a hardware component
D. a machinery engine that search data
1-4. What is the full form of TCP/IP?
A. transmission control protocol / internet protocol
B. telephone call protocol / international protocol
C. transport control protocol / internet protocol
D. none of the above
1-5. HTML document start and end with which tag pairs?
A. <HEAD>….</HEAD>
B. <BODY>….</BODY>
C. <HTML>….</HTML>
D. <WEB>….</WEB>
1-6. Which tag is used to create body text in HTML?
A. <HEAD>
B. <TEXT>
C. <TITLE>
D. <BODY>
1-7. “Yahoo”, “Infoseek” and “Lycos” are _________?
A. Search Engines
B. Browsers
C. News groups
D. None of the above
1-8. What does the .com domain represents?
A. Education domain
B. Commercial domain
C. Network
D. None of the above
1-9. In Satellite based communication, VSAT stands for?
A. Very Small Aperture Terminal
B. Varying Size Aperture Terminal
C. Very Small Analog Terminal
D. None of the above
1-10. Outlook Express is a _________
A. E-Mail Client
B. Browser
C. Search Engine
D. None of the above

Answers
1 – A / 2 – A / 3 – B / 4 – A / 5 – C / 6 – D / 7 – A / 8 – B / 9 – A / 10 – A
MCQ of Web Designing – Set 2
by Ganesh Maharjan

2-1. <TITLE> … </TITLE> tag must be within ________


A. Title
B. Form
C. Header
D. Body
2-2. Text within <EM> … </EM> tag is displayed as ________
A. bold
B. italic
C. list
D. indented
2-3. Text within <STRONG> … </STRONG> tag is displayed as ________
A. bold
B. italic
C. list
D. indented
2-4. <UL> … </UL> tag is used to ________
A. display the numbered list
B. underline the text
C. display the bulleted list
D. bold the text
2-5. Which tag is used to display the numbered list?
A. <OL></OL>
B. <DL></DL>
C. <UL></UL>
D. <LI></LI>
2-6. Which tag is used to display the large font size?
A. <LARGE></LARGE>
B. <BIG></BIG>
C. < SIZE ></SIZE>
D. <FONT></FONT>
2-7. <SCRIPT> … </SCRIPT> tag can be placed within ________
A. Header
B. Body
C. both A and B
D. none of the above
2-8. using <P> tag will
A. start a new paragraph
B. break the line
C. end the current paragraph
D. none of the above
2-9. <TD> … </TD> tag is used for ________
A. Table heading
B. Table Records
C. Table row
D. none of the above
2-10. Which is true to change the text color to red?
A. <BODY BGCOLOR=RED>
B. <BODY TEXT=RED>
C. <BODY COLOR=RED>
D. none of the above

Answers
1 – C / 2 – B / 3 – A / 4 – C / 5 – A / 6 – B / 7 – C / 8 – A / 9 – B / 10 – B
MCQ of Web Designing – Set 3
by Ganesh Maharjan

3-1. With regards to e-mail addresses:


A. they must always contain an @ symbol
B. they can never contain spaces
C. they are case-insensitive
D. all of the above
3-2. A homepage is __________
A. an index of encyclopedia articles
B. where all Internet data is stored
C. required for access to the Internet
D. the first page of a website
3-3. Which of the following is used to explore the Internet?
A. Browser
B. Spreadsheet
C. Clipboard
D. Draw
3-4. What is Internet Explorer?
A. An Icon
B. A File Manager
C. A Browser
D. The Internet
3-5. What do I need to get onto the Internet?
A. Computer
B. Modem
C. Browser
D. All of the above
3-6. What is an ISP?
A. Internet System Protocol
B. Internal System Program
C. Internet Service Provider
D. None of the above
3-7. Which of the following is valid IP address?
A. 984.12.787.76
B. 192.168.321.10
C. 1.888.234.3456
D. 192.168.56.115
3-8. Which is not a domain name extension
A. .mil
B. .org
C. .int
D. .com
3-9. What is a FTP program used for?
A. Transfer files to and from an Internet Server
B. Designing a website
C. Connecting to the internet
D. None of the above
3-10. Which of the following are commonly found on web pages?
A. internet
B. hyperlinks
C. intranet
D. all of the above

Answers
1 – D / 2 – D / 3 – A / 4 – C / 5 – D / 6 – C / 7 – D / 8 – C / 9 – A / 10 – B
MCQ of Web Designing – Set 4
by Ganesh Maharjan

4.1 What is the correct syntax in HTML for creating a link on a webpage?
A. <LINK SRC= “ghumti.html”>
B. <BODY LINK = “ghumti.html”>
C. <A SRC = “ghumti.html” >
D. < A HREF = “ghumti.html”>
4.2 Which of the following is an attribute of <Table> tag?
A. SRC
B. LINK
C. CELLPADDING
D. BOLD
4.3 Choose the correct HTML tag to make the text bold?
A. <B>
B. <BOLD>
C. <STRONG>
D. Both A) and C)
4.4 Which HTML tag would be used to display power in expression (A+B)2 ?
A. <SUP>
B. <SUB>
C. <B>
D. <P>
4.5 Choose the correct HTML code to create an email link?
A. <A HREF = “ganesh@ghumti.com”></A>
B. <A HREF = “mailto:ganesh@ghumti.com”></A>
C. <MAIL>ganesh@ghumti.com </MAIL>
D. <A MAILHREF = “ganesh@ghumti.com”></A>
4.6 Choose the correct HTML tag for the largest heading?
A. <H1>
B. <H6>
C. <H10>
D. <HEAD>
4.7 Output of XML document can be viewed in a
A. Word Processor
B. Web browser
C. Notepad
D. None of the above
4.8 What is the correct way of describing XML data?
A. XML uses a DTD to describe data
B. XML uses a description node to describe data
C. XML uses XSL to describe the data
D. XML uses a validator to describe the data
4.9 Comments in XML document is given by:
A. <?_ _ _ _>
B. <!_ _ _ _!>
C. <!_ _ _ _>
D. </_ _ _ _>
4.10 Which statement is true?
A. An XML document can have one root element
B. An XML document can have one child element
C. XML elements have to be in lower case
D. All of the above

Answers
1 – D / 2 – C / 3 – D / 4 – A / 5 – B / 6 – A / 7 – B / 8 – C / 9 – C / 10 – A
MCQ of Web Designing – Set 5
by Ganesh Maharjan

This set of MCQ Questions is related to Web Designing. This series of Multiple Choice
Questions (MCQs) covers Web Deigning Language and Tools such as HTML, XHTML, Java Script,
Web Topology & Terminology, Domain Name, Web Hosting & etc. Here is the 5th Set of this series.

Multiple Choice Questions on Web Designing


5.1 How to define target in new page in HTML?
A. <a href = “http://www.ghumti.com/” target = “blank”>Click Here</a>
B. <a href = “http://www.ghumti.com/” target = “_blank”> Click Here </a>
C. <a href = “http://www.ghumti.com/” target = “#blank”> Click Here </a>
D. <a href = “http://www.ghumti.com/” target = “@blank”> Click Here </a>
5.2 In HTML, Uniform Resource Identifier (URI) is used to
A. To create a frame document .
B. To create a image map in the webpage.
C. To customize the image in the webpage.
D. To identify a name or a resource on the internet.
5.3 CSS is an acronym for
A. Cascading Style Sheet
B. Costume Style Sheet
C. Cascading System Style
D. None of the Above
5.4 Which of the following protocol is not used in the Internet
A. Telnet
B. WIRL
C. HTTP
D. Gopher
5.5 Who invented World Wide Web (WWW)?
A. Blaise Pascal
B. Charles Babbage
C. Herman Hollerith
D. Tim Berners-Lee
5.6 What is the use of Web Font in HTML ?
A. that is the core font that is use to develop Web Pages.
B. that enables to use fonts over the Web without installation.
C. that is the special font that developed by Microsoft Corp.
D. All of the Above.
5.7 What is <tt> tag in HTML?
A. It renders fonts as teletype text font style.
B. It renders fonts as truetype text font style.
C. It renders fonts as truncate text font style.
D. None of the Above.
5.8 What is the use of Forms in HTML?
A. to display contents of email.
B. to display animation effect.
C. to collect user’s input.
D. None of the Above.
5.9 What is the use of iframe in HTML?
A. to display a web page within a web page.
B. to display a web page with animation effect.
C. to display a web page without browser.
D. All of the Above.
5.10 FTP is an acronym for
A. File Transaction Protocol
B. File Transmission Protocol
C. File Translation Protocol
D. File Transfer Protocol

Answers
1 – B / 2 – D / 3 – A / 4 – B / 5 – D / 6 – B / 7 – A / 8 – C / 9 – A / 10 – D

Potrebbero piacerti anche