NIELIT QUESTION PAPER - 2024 - Data Structure Through Object Oriented Programming Language
Concept of Overloading relates to which Object oriented feature-
- Encapsulation
- Abstraction
- Inheritance
- Polymorphism
- option4 Clear All
Clear All
What will be the output of following code in
C++ ?
#include
#include
using namespace std;
int main()
{
char str1[6] = "Happy";
char str2[9] = "Birthday";
char str3[15] = str1+ " " + str2;
cout<
- HappyBirthday
- Error
- Happy Birthday
- Birthday
- option2
Clear All
Clear All
- HappyBirthday
- Error
- Happy Birthday
- Birthday
- option2 Clear All
Clear All
What is the complexity of Binary Search in best case scenario-
- O(1)
- O(log n)
- O(n^2 )
- O(n log n)
- option1 Clear All
Clear All
Which algorithm follows the Divide and Conquer Strategy ?
- (A) Bubble Sort
- (B) Heap
- (C) Quicksort
- (D) All the above
- option3 Clear All
Clear All
Which statement is not true about Arrays ?
- (A) Arrays are homogenous in nature
- (B) Arrays are dynamic in nature
- (C) Array elements are stored in contiguous memory
- (D) Arrays are also called as subscripted variable
- option2 Clear All
Clear All
Values on the stack can be removed from :
- (A) anywhere
- (B) bottom position
- (C) top position
- (D) value cannot be removed
- option3 Clear All
Clear All
An algorithm that calls itself directly or indirectly is known as :
- (A) Sub algorithm
- (B) Recursion
- (C) Polish notation
- (D) Traversal algorithm
- option2 Clear All
Clear All
Which traversal method lists the nodes of binary search tree in ascending order ?
- (A) post-order
- (B) in-order
- (C) Pre-order
- (D) None of the above
- option2 Clear All
Clear All
Which Data Structure is used in implementation of Quicksort ?
- (A) stack
- (B) set
- (C) tree
- (D) queue
- option1 Clear All
Clear All
Graph can be represented using :
- (A) Adjacency Matrix
- (B) Incidence Matrix
- (C) Linklist
- (D) Both (A) and (B)
- option4 Clear All
Clear All