CS301 Midterm searching mcqs.pdf

Verified academic study resource for CS301 (Data Structures) under the Computer Science at Virtual University of Pakistan. This PDF document (Midterm Solved Past Paper & Revision File) covers Mid-Term Exam Scope (Lectures 1 to 22) spanning approximately 240 pages across 4 curriculum modules, and is indexed for student examination review with instant in-browser preview and 100% free direct download.

Course
CS301 – Data Structures
Faculty
Computer Science
Format
PDF
Type
Midterm
Coverage
Mid-Term Exam Scope (Lectures 1 to 22)
Tags
MCQ, MIDTERM

Focus on core definitions and repeated MCQs from Lectures 1–22. Remember that scoring in the First Half builds your safety buffer toward the mandatory 20% Two-Half passing rule in CS301.

What this file covers — CS301 syllabus roadmap

  1. Core Architecture, Syntax & Primitive Data Structures — Lectures 1 to 6 (Pages 1 to 65). 15% Objective Marks (8–10 MCQs)
  2. Conditional Branching, Loops & Logical Control Flow — Lectures 7 to 12 (Pages 66 to 140). 18% Exam Marks (MCQs + 2-Mark Short Questions)
  3. Memory Management, Pointers, Arrays & Functions — Lectures 13 to 18 (Pages 141 to 215). 22% Exam Marks (High Yield for Midterms)
  4. Midterm Consolidation, Strings & Algorithm Synthesis — Lectures 19 to 22 (Pages 216 to 280). Midterm Exam Culmination (Lectures 1–22 Scope)

Frequently asked questions

Where can I download CS301 Midterm searching mcqs.pdf for free?

You can preview and download "CS301 Midterm searching mcqs.pdf" (CS301 PDF, ~240 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs301-midterm-searching-mcqs-pdf) with 100% free high-speed downloads and zero registration requirements.

What syllabus chapters and lectures are covered in this CS301 file?

This document covers Mid-Term Exam Scope (Lectures 1 to 22) across 4 distinct lecture units (Lectures 1 to 6, Lectures 7 to 12, Lectures 13 to 18, Lectures 19 to 22), featuring comprehensive definitions, solved objective questions, and examiner marking rubrics.

What is the passing criteria for CS301 under the VU 20% Two-Half Rule?

Under official Virtual University regulations, students must score at least 20% in the First Half (Quizzes, Assignments, GDBs, and Midterm combined) AND independently at least 20% in the Final-Term examination paper. Scoring under 20% in the final exam results in an automatic F grade regardless of earlier marks.

Are CS301 solved past papers and handouts verified for 2026 exams?

Yes. All CS301 materials on MIHORA VU—including Moaaz, Waqar Siddhu, and team archives—are reviewed against the current VU syllabus to help students prepare for 2026 Midterm, Final-Term, and online quiz examinations.

Inside this file

CS301 Updated 250+ MCqs
    Lec 1 - 20 Spring 2022
         Quiz 1 and Quiz 2
     #Midterm Preparation
 REMEMBER OWN PRAYER
      Orange Monkey Team
Important NOTE:-
  Like share and comment too ..ager koi
mistake hogaye ho to sorry and comment
main lazmi mention krdijiye ga takey main
   correction krlon file main …. And like
   zaroor krein is hamein or bhe apsab
keyliye files makes krny ke himat milti hey
              …JAZAKALLAH

Orange Monkey Team                          Page 1

 1. In which traversal method root node is visited at left first subtree?

                 Inorder…..confirm

 2. In which traversal method root node is visited at first step?

                 Preorder…..confirm

 3. In which traversal method root node is visited at last step?

                    Postorder……confirm

 4. In level-order traversal for binary Search Tree _______ data structure is used.

                           Queue….confirm

Orange Monkey Team                                                                    Page 2

 5. _________ is used for reference variables in C++

                &….confirm

 6. The first statement in the given code is called as:
    Class BinarySearchTree;
    Class BinaryNode{
    Friend class BinarySearchTree;
    };

                   Forward declaration

 7. Which of the following traversal method traverses the binary tree in sorted order?

                             Inorder….confirm

 8. The _____ symbol is used when we want to get the value of a variable using pointer.

             *…..confirm

 9. The _______ of every node should be 1,0 or -1 otherwise it will not be an AVL tree.

                 Balance….confirm

 10. The ___ tree has been named after two person Adelson-Velskii and landis

                  AVL ….confirm

Orange Monkey Team                                                                Page 3

 11. What will be output of the given C++ code?
     Char lhs[]= “Army”;
     Char rhs[]= “Army”;
     Cout<<strcmp(lhs,rhs);
     }
                      0…..confirm

 12. ________ of an empty AVL tree is defined to be -1

                Height….confirm

 13. Linked list use _________ to store data.’

                  Variables…..confirm

 14. AVL stands for
                          Adelson-Velskii and Landis….confirm

Orange Monkey Team                                              Page 4

 15. The balance of a node in a binary tree is defined as the height of its ___ sub tree
     minus height of its right sub tree.

                      Left….confirm

 16. The ____ sign before the name of the variable means that the address of the variable
     is being passed.

                   &…..confirm

 17. If we delete node 2 from the given BST then which node will replace it?

                              3….confirm

Orange Monkey Team                                                                    Page 5

 18. During in order traversal using recursive calls if we found a node is NULL it means
     this node will satisfy following condition.

                       It will not have left child….confirm

 19. A tree is an AVL tree if

           All the nodes fulfill the AVL condition….confirm

 20. Which of the following calling method does not change the original value of variable
     passed to a function on argument?

                Call by passing as value….confirm

 21. Which of the following data structure is/are linear type?

                Heap and stack

 22. Which of the following is correct syntax to pass a constant variable by reference to a
     function?

                 Int display (const int& val)

Orange Monkey Team                                                                   Page 6

 23. In C++ we place the class interface in _______ file,

               .h…..confirm

 24. If we write functions for recursive and non recursive inorder traversal method of
     BST, what will be the difference between its functions prototypes?

                                 Nothing will be different…..confirm

 25. What will be the preorder traversal of the given tree?

                                45,25,15,35,75….confirm

 26. Binary Search Tree violates the condition of AVL tree when any node has balance
     factor equal to

                                 0…..confirm

Orange Monkey Team                                                                 Page 7

 27. Binary Search Tree violates the condition of AVL tree when any node has balance
     factor equal to

                      1 or -1….confirm

 28. After deletion of a node from a binary search tree _______ traversal method should
     be maintained.

                               Inorder

 29. Link list can be special case of

                        Binary search tree

 30. To create a reference variable we need to use ______ sign.

                      Ampersand……confirm

Orange Monkey Team                                                                Page 8

 31. At a particular node the difference in heights of its left and right subtree gives the
     ____ of the node.

                            Balance…..confirm

 32. For string-based binary search tree, we use ASCII values of characters for
     comparing among letters. This method is known as _________.

                         Lexicographic order….confirm

 33. What will be level order traversal of the given BST?

            6,2,8,1,5,3,4…..confirm

Orange Monkey Team                                                                     Page 9

 34. __________ parameter passing ( by value or by reference) is similar to PASCAL.

                              C++….confirm

 35. We can make a lexicographic order of characters based on their ____________.

                                ASCII values….confirm

 36. If we return the reference of a local variable form a function it will cause.

                    Dangling reference….confirm

 37. Which one is the correct function call for the following function of calculating cube?
     Int cube(int& num)
     {

More CS301 files

All CS301 files · Midterm Prep 2026 · MCQs Bank