VU CS-301 Online Test Preparation

MCQ's Test For CS-301 Final Term Exams Preparation Virtual University

Try The MCQ's Test For CS-301 Final Term Exams Preparation Virtual University

  • Total Questions10

  • Time Allowed10

CS-301 Final Term Exams Preparation Virtual University

00:00
Question # 1

Which of the following statement statement is true about dummy node of threaded binary type?

Question # 2

Consider a min heap, represented by the following array: 11,22,33,44,55 After inserting a node with value 66.Which of the following is the updated min heap?

Question # 3

The arguments passed to a function should match in number, type and order with the parameters in the function definition.

Question # 4

While joining nodes in the building of Huffman encoding tree if there are more nodes with same frequency, we choose the nodes _______.

Question # 5

In an array we can store data elements of different types

Question # 6

If numbers 5,222,4,48 are inserted in queue,which one will be removed first?

Question # 7

The definition of Transitivity property is

Question # 8

Suppose A is an array containing numbers in increasing order, but some numbers occur more than once when using a binary search for a value, the binary search always finds ____________

Question # 9

Suppose currentNode refers to a node in a linked list(using the Node class with member variables called data and next node),What statement changes currentNode so that it refers to the next node?

Question # 10

While building Huffman encoding tree the new node that is the result of joining two nodes has the frequency.

Prepare Complete Set Wise CS-301 Final Term Exams Preparation Virtual University MCQs Online With Answers


Topic Test

00:00

Top Scorers Of CS-301 Final Term Exams Preparation Virtual University MCQ`s Test

  • T
    Tahira Nawaz 26 - Feb - 2023 00 Min 02 Sec 10/10
  • Q
    Qudsia fatima 11 - Feb - 2024 00 Min 35 Sec 10/10
  • J
    Jehanzaib khalil 15 - Aug - 2023 00 Min 48 Sec 10/10
  • E
    Eiza Munawar 22 - Sep - 2022 01 Min 07 Sec 10/10
  • S
    Shabnam Irshad 17 - Aug - 2023 01 Min 18 Sec 10/10
  • A
    Ayesha javaid 02 - Mar - 2023 01 Min 24 Sec 10/10
  • S
    Sana Riaz 11 - Feb - 2024 01 Min 26 Sec 10/10
  • A
    Ayesha Butt 31 - May - 2024 01 Min 46 Sec 10/10
  • U
    Uzair sajid 18 - Feb - 2024 02 Min 12 Sec 10/10
  • R
    Rubab Irfan 22 - Sep - 2022 01 Min 09 Sec 9/10
  • R
    Rabani baloch 07 - Jun - 2024 01 Min 19 Sec 9/10
  • B
    bc210402145 MOHTASHAM JAVED 15 - Aug - 2023 01 Min 44 Sec 9/10
  • A
    Asif Iqbal 15 - Feb - 2024 01 Min 49 Sec 9/10
  • M
    Mehwish Khan 04 - Mar - 2023 02 Min 26 Sec 8/10
  • U
    U Shop 4 All 04 - Oct - 2022 02 Min 37 Sec 8/10

Virtual University CS-301 Chapter 1 Important MCQ's

Sr.# Question Answer
1 Here is a small function definition:
void f(int i, int &k)
{ i
= 1; k = 2;
}
Suppose that a main program has two integer variables x and y, which are given the value 0. Then the main program calls f(x,y); What are the values of x and y after the function f finishes?
A. Both x and y are still 0.
B. Both x and y are still 0.
C. x is still 0, but y is now 2.
D. x is now 1, and y is now 2.
2 A complete binary tree of height 3 has between _____ node
A. 8-14
B. 8-15
C. 8-16
D. 8-17
3 Union is a ___________ time operation
A. Constant
B. Polynomial
C. Exponential
D. None of the above
4 If both pointers of the node in a binary tree are NULL then it will be a/an _______ .
A. Inner node
B. Leaf node
C. Root node
D. None of the given options
5 Consider the following postfix expression S and the initial values of the variable,
S = A B - C + D E F - + ^ Assume that A=3, B=2, C=1, D=1, E=2, F=3 What would be the final output of the stack?
A. 1
B. 2
C. 0
D. -1
6 In an array we can store data elements of different types
A. True
B. False
C. Not sure
7 In a perfectly balanced tree the insertion of a node needs ________ .
A. One rotation
B. Two rotations
C. Rotations equal to number of levels
D. No rotation at all
8 A complete binary tree of height ___ has node between 16 to 31.
A. 2
B. 3
C. 4
D. 5
9 If there are N elements in an array then the number of maximum steps needed to find an element using Binary Search is _______
A. N
B. N2
C. Nlog2 n
D. log2N
10 Huffman encoding uses _________ tree to develop codes of varying lengths for the letters used in the original message
A. Linked List
B. Stack
C. Queue
D. Binary tree

Test Questions