CS301 Midterm Online Quiz

0%

CS301-Midterm

1 / 50

Which one of the following statements is correct?

2 / 50

A Compound Data Structure is the data structure which can have multiple data items of same type or of different types.Which of the following can be considered compound data structure?

3 / 50

AVL Tree is,

4 / 50

bool LessThan( SomeClass anotherObject ); Which of the following tests in the client code correctly compares two class objects alpha and beta?

5 / 50

_________ is a binary tree where every node has a value, every node's left subtree contains only values less than or equal to the node's value, and every node's right subtree contains only values that are greater then or equal?

6 / 50

The operation for removing an entry from a stack is traditionally called:

7 / 50

Queue follows,

8 / 50

We access elements in AVL Tree in,

9 / 50

Consider the following sequence of push operations in a stack: stack.push(’7’); stack.push(’8’); stack.push(’9’); stack.push(’10’); stack.push(’11’); stack.push(’12’);

10 / 50

What is the maximum depth of recursive calls a function may make?

11 / 50

 A queue where the de-queue operation depends not on FIFO, is called a priority queue

12 / 50

We access elements in AVL Tree in,

13 / 50

Which of the following can be used to reverse a string value,

14 / 50

Which one is a self- referential data type?

 

 

15 / 50

Which one of the following statements is NOT correct?

16 / 50

A binary search tree should have minimum of one ________ node/s at each level,

17 / 50

is a binary tree where every node has a value, every node's left subtree contains only values less than or equal to the node's value, and every node's right subtree contains only values that are greater then or equal ?

18 / 50

The tree data structure is a

19 / 50

What is the maximum depth of recursive calls a function may make?

20 / 50

The nodes with no successor are called _________

21 / 50

Each node in Binary Search Tree has

22 / 50

Which one of the following calling methods does not change the original value of the argument in the calling function?

23 / 50

Parameters in function call are passed using,

24 / 50

In a program a reference variable, say x, can be declared as

25 / 50

Suppose n is the number of nodes in a complete Binary Tree then maximum steps required for a search operation are,

26 / 50

A queue where the de-queue operation depends not on FIFO, is called a priority queue

27 / 50

A tree is an AVL tree if

28 / 50

bool LessThan( SomeClass anotherObject ); Which of the following tests in the client code correctly compares two class objects alpha and beta?

29 / 50

The difference between a binary tree and a binary search tree is that ,a binary search tree has

30 / 50

We can add elements in QUEUE From _________

31 / 50

In an array list the current element is

32 / 50

Which of the following is Non Linear Data Structure?

33 / 50

In which of the traversal method, the recursive calls can be used to traverse a binary tree ?

34 / 50

A queue where the de-queue operation depends not on FIFO, is called a priority queue

35 / 50

Which one is INCORRECT?

36 / 50

Which one of the following operators has higher priority than all of others?

37 / 50

Consider the following sequence of push operations in a stack: stack.push(’7’); stack.push(’8’); stack.push(’9’); stack.push(’10’); stack.push(’11’); stack.push(’12’);

38 / 50

5+6/2 If one converts the above expression into postfix, what would be the resultant expression?

39 / 50

A tree is an AVL tree if

40 / 50

Which of the following is a non linear data structure?

41 / 50

Which one of the following is a valid postfix expression?

42 / 50

Consider the following function: void test_a(int n) { cout << n << " "; if (n>0) test_a(n-2); } What is printed by the call test_a(4)?

43 / 50

The expression AB+C* is called?

44 / 50

Where does the push member function place the new entry in the array?

45 / 50

Suppose n is the number of nodes in a complete Binary Tree then maximum steps required for a search operation are,

46 / 50

The operation for adding an entry to a stack is traditionally called :

47 / 50

 Which of the above is/are related to normal queues?

48 / 50

 In the linked list implementation of the stack class, where does the push member function places the new entry on the linked list?

49 / 50

Which one of the following calling methods does not change the original value of the argument in the calling function?

50 / 50

An array is a group of consecutive related memory locations.

Your score is

The average score is 51%

0%

Qunoot e Nazilah
Dua e Hajat
4 Qul
6 Kalma
Dua-e-Akasha
Darood Akbar
Surah Fatiha
Dua-e-Ganj Ul Arsh
Dua-e-Jamilah
Ayat-ul-Kursi