CUET and UG Entrance CUET Computer Science Mock Test PDF Sarkari Exam Sarkari Exam CUET Computer Science Mock Test PDF Questions Available Here at: https://www.easy-quizzz.com/in/sarkari-exam/cuet-and-ug-entrance-exams/cuet- computer-science-mock-test/quiz.html Enrolling now you will get access to 348 questions in a unique set ofCUET Computer Science Mock Test Question 1 In algorithm analysis, the time complexity of linear search grows in __________ with the size of the input in the worst case. Options: A. constant time B. logarithmic time C. linear time D. quadratic time Answer: C Explanation: Linear search may examine elements one by one until the target is found or the list ends, so the number of comparisons increases proportionally with input size in the worst case. Constant and logarithmic growth are too low for this process, while quadratic growth is higher than needed here. Question 2 In a packet-switched network, the device that forwards data packets between different networks is called a ______. Options: A. Switch B. Router Sarkari Exam Sarkari Exam CUET Computer Science Mock Test PDF https://www.easy-quizzz.com/in/ C. Hub D. Repeater Answer: B Explanation: A router connects different networks and forwards packets using network-layer information such as IP addresses. A switch mainly works within a local network, a hub simply broadcasts signals, and a repeater regenerates signals to extend distance without making forwarding decisions. Question 3 In a stack, insertion and deletion are performed at the _____ end. Options: A. front B. middle C. top D. rear Answer: C Explanation: A stack follows the LIFO principle, so both insertion and deletion happen at the top end. Front and rear are terms commonly used for queues, while middle is not used for standard stack operations. Question 4 In a relational database, a ______ uniquely identifies each record in a table. Options: A. foreign key B. candidate key C. primary key D. composite attribute Answer: C Explanation: A primary key uniquely identifies each row in a table and cannot be null. A foreign key links two tables, a candidate key is a possible unique identifier but not necessarily the chosen one, and a composite attribute is made of smaller parts rather than serving as a row identifier. Sarkari Exam Sarkari Exam CUET Computer Science Mock Test PDF https://www.easy-quizzz.com/in/ Question 5 In Python, the keyword used to create a function is ________. Options: A. func B. define C. def D. function Answer: C Explanation: The keyword used to start a function definition in Python is def. The other words are not Python keywords for defining functions and would cause an error if used in that role. Question 6 A student writes: 'An algorithm for checking whether a number is prime stops as soon as it finds a divisor.' If the number is 49, the procedure tests 2, 3, 4, 5, and 6 before deciding. The best classification of this behavior is Options: A. best-case execution B. average-case execution C. worst-case execution D. space complexity Answer: C Explanation: The procedure continues until a divisor is discovered, and for 49 that happens only after several tests. This reflects worst-case behavior for that input. Best-case execution would stop very early, average-case describes typical expected performance, and space complexity refers to memory usage rather than number of steps. Question 7 A student opens a website, and the browser first needs to translate the domain name into an IP address. In this situation, the service being used is most closely related to DNS. What does DNS primarily do? Options: Sarkari Exam Sarkari Exam CUET Computer Science Mock Test PDF https://www.easy-quizzz.com/in/ A. Encrypts web pages before transfer B. Maps domain names to IP addresses C. Assigns physical addresses to devices D. Compresses data to reduce bandwidth Answer: B Explanation: DNS resolves human-readable domain names into IP addresses so devices can locate servers on a network. It does not encrypt content, assign MAC or physical addresses, or compress data. Question 8 During a lab demo, a student keeps adding elements to a waiting list and removes them in the same order in which they arrived. Which data structure matches this behavior? Options: A. Stack B. Queue C. Tree D. Graph Answer: B Explanation: A queue processes elements in first-in, first-out order, which matches the described waiting list. A stack would remove the most recently added element first, while a tree and graph do not represent this simple ordered removal behavior. Question 9 A college stores student details in one table and course details in another. To record which student enrolled in which course, the database designer creates an additional table containing both student IDs and course IDs. This design mainly helps to Options: A. remove the need for primary keys B. represent a many-to-many relationship C. convert a table into a file D. avoid using SQL queries Sarkari Exam Sarkari Exam CUET Computer Science Mock Test PDF https://www.easy-quizzz.com/in/ Answer: B Explanation: An extra table with student IDs and course IDs is the standard way to implement a many-to-many relationship. Primary keys are still needed, tables do not become files, and SQL is still used for querying and managing the data. Question 10 A programmer writes a loop that keeps running until the user enters 0. The intended task is to repeat input validation, not to store data permanently. Which control structure best fits this need? Options: A. for loop with fixed count B. while loop with a condition C. switch statement D. class definition Answer: B Explanation: A while loop is suitable when repetition depends on a condition being true, such as continuing until a sentinel value like 0 is entered. A fixed-count for loop does not match the condition-driven requirement, a switch statement handles selection among cases rather than repetition, and a class definition is unrelated to loop control. Would you like to see more? Don't miss ourCUET Computer Science Mock Test PDF file at: https://www.easy-quizzz.com/in/sarkari-exam/cuet-and-ug-entrance-exams/cuet- computer-science-mock-test-pdf/ Sarkari Exam Sarkari Exam CUET Computer Science Mock Test PDF https://www.easy-quizzz.com/in/