CUET Exam  >  CUET Tests  >  CUET Mock Test Series  >  Computer Science: CUET Mock Test - 3 - CUET MCQ

Computer Science: CUET Mock Test - 3 - CUET MCQ


Test Description

30 Questions MCQ Test CUET Mock Test Series - Computer Science: CUET Mock Test - 3

Computer Science: CUET Mock Test - 3 for CUET 2025 is part of CUET Mock Test Series preparation. The Computer Science: CUET Mock Test - 3 questions and answers have been prepared according to the CUET exam syllabus.The Computer Science: CUET Mock Test - 3 MCQs are made for CUET 2025 Exam. Find important definitions, questions, notes, meanings, examples, exercises, MCQs and online tests for Computer Science: CUET Mock Test - 3 below.
Solutions of Computer Science: CUET Mock Test - 3 questions in English are available as part of our CUET Mock Test Series for CUET & Computer Science: CUET Mock Test - 3 solutions in Hindi for CUET Mock Test Series course. Download more important topics, notes, lectures and mock test series for CUET Exam by signing up for free. Attempt Computer Science: CUET Mock Test - 3 | 50 questions in 45 minutes | Mock test for CUET preparation | Free important questions MCQ to study CUET Mock Test Series for CUET Exam | Download free PDF with solutions
Computer Science: CUET Mock Test - 3 - Question 1

Given below are two statements, one labelled as Assertion (A) and the other labelled as Reason (R):

Assertion (A): Database Management System (DBMS) provides a variety of software tools for organising data.
Reason (R): Normalisation is the process for removing data redundancy.

Detailed Solution for Computer Science: CUET Mock Test - 3 - Question 1
  • Assertion is correct because Database Management System (DBMS) provides a variety of software tools for organising, processing and querying data in a flexible manner. MS Access, Oracle, SQL Server, and IBM-DB2 are examples of DBMS software.
  • Reason is correct because normalisation is the process for removing data redundancy. It breaks up the information into separate but related tables.
  • Therefore, assertion and reason both are correct, but reason is not the correct explanation of assertion.
Computer Science: CUET Mock Test - 3 - Question 2

Choose correct SQL query to

Display the details of all male customers having membership more than 10 months.

Detailed Solution for Computer Science: CUET Mock Test - 3 - Question 2

The correct answer is Option 1

Select * from Customer

Where Gender = "M" and Membership >10;

Key Points

SELECT * FROM Customer WHERE Gender = 'M' AND Membership > 10;

  • SELECT *: This retrieves all columns from the Customer table. You can replace * with specific column names if you only need certain details.
  • FROM Customer: This specifies the table from which data will be retrieved.
  • WHERE Gender = 'M': This filters the results to include only customers whose Gender is 'M' (male).
  • AND Membership > 10: This further filters the results to include only male customers whose Membership value is greater than 10 months.
  • This query effectively combines the conditions for male gender and membership duration to provide the desired output.
Computer Science: CUET Mock Test - 3 - Question 3

Choose correct SQL query to display total customers under each trainer in the Gym.

Detailed Solution for Computer Science: CUET Mock Test - 3 - Question 3

The correct answer is Option 3

Select TId, count(*) from Customer

group by TId;

Key PointsTo display the total number of customers under each trainer in the Gym accurately, we need to join the Trainer table with the Customer table and then group by the trainer's ID or name. Since the options provided don’t exactly reflect this approach and seem to focus on concepts rather than precise syntax, according to the options based on standard SQL practices and the requirement:

  1. This option tries to select columns from the Customer table and attempts to reference the Trainer table, but it lacks a JOIN clause, making the WHERE condition syntactically incorrect.
  2. This option selects the trainer name (TName) and counts the number of entries (customers) grouped by TId. However, "TName" is not available in the Customer table, implying this query would not execute as intended.
  3. This option correctly counts the number of customers and groups them by TId, which is a simple and direct approach to understanding how many customers each trainer has. However, it lacks the JOIN with the Trainer table and does not display the trainer's name, which might be desired for clarity.
  4. Similar to the first option, it attempts to apply a condition joining Trainer and Customer tables but lacks a JOIN clause, making the syntax incorrect.

Given the options and assuming the context where we don't directly join tables (since none of the options correctly implement a JOIN operation), the correct option based on SQL standards and the goal to "display total customers under each trainer" without considering the join explicitly would be:

Select TId, count(*) from Customer
group by TId;

This option correctly groups customers by their trainer IDs, allowing us to see how many customers each trainer has.

Computer Science: CUET Mock Test - 3 - Question 4

Choose correct SQL query to display the names of all trainees with their date of appointment in descending order, who are taking core activity.

Detailed Solution for Computer Science: CUET Mock Test - 3 - Question 4

The correct answer is Option 2

Select TName, Dt_Appoint from Trainer
Where Activity = "Core"
Order by Dt_Appoint desc
;

Key PointsThe correct SQL syntax for filtering the records before sorting them is to use the WHERE clause before the ORDER BY clause. Therefore, the query that correctly applies this structure to display the names of all trainers (trainees in the question seems to be a typo since the details pertain to trainers) with their date of appointment in descending order, who are taking core activity, would need to follow this logic.

Among the options given, the correct choice would be the one that places the WHERE clause directly after specifying the table, and before the ORDER BY clause, with the correct syntax for ordering the results in descending order:

Select TName, Dt_Appoint from Trainer Where
Activity = "Core"
Order by Dt_Appoint desc;

Computer Science: CUET Mock Test - 3 - Question 5

Choose correct SQL query to update the membership of all the customers, under Trainer with code G101 and G102, to 12 months.

Detailed Solution for Computer Science: CUET Mock Test - 3 - Question 5

The correct answer is Option 1

Update Customer
Set Membership = 12
Where TId = "G101" or TId = "G102"
;

Key PointsThe correct SQL query to update the membership of all customers, under trainers with code G101 and G102, to 12 months is the one that uses the UPDATE statement to modify the value of the Membership field for all customers that meet the specified condition (their trainer ID being G101 or G102).

  • The SET clause is used to specify the new value for the field you want to update.
  • The WHERE clause is used to filter the records you want to update.
  • When checking for multiple conditions, OR is used to update records that meet either one of the conditions.

Among the options given:
Update Customer
Set Membership = 12
Where TId = "G101" or TId = "G102";

This option correctly:

  • Uses the UPDATE statement to indicate that you're going to change some rows in the Customer table.
  • Uses Set Membership = 12 to set the Membership field to 12 months for all rows that match the condition.
  • Uses the WHERE clause with an OR operator to specify that the condition matches customers whose TId is either "G101" or "G102".

So, the correct answer is:

Update Customer
Set Membership = 12
Where TId = "G101" or TId = "G102";

Computer Science: CUET Mock Test - 3 - Question 6

Choose the correct SQL query to display a report showing Trainer name, Salary, Customer name and Fee for all Trainers having salary between 20000 to 25000.

A. Select TName, Salary, Cust Name, Fee
From Customer C, Trainer T
Where T.TId = C.TId and Salary>=20000 and Salary<=25000;

B. Select TName, Salary, Cust_Name, Fee
From Customer, Trainer
Where Customer.TId = Trainer. TId and Salary between 20000 and 25000;

C. Select TName, Salary, C_Name, Fee
From Customer C, Trainer T
Where C.TId = T.TId and Salary between 20000 and 25000;

D. Select TName, Salary, C_Name, Fee
From Customer, Trainer
Where C.TI d = T.TId and 20000<=Salary<=25000;

E. Select TName, Salary, Cust_Name, Fee
From Customer C, Trainer T
Where T.TId = C.TId and Salary between 20000 and 25000;

Choose the most appropriate answer from the options given below:

Detailed Solution for Computer Science: CUET Mock Test - 3 - Question 6

The correct answer is A, B and E only

Key Points

  • Proper joining condition between the Trainer and Customer tables (either implicitly through the WHERE clause or using explicit JOIN syntax which isn't shown here).
  • Correct filtering of Trainer salaries within the range of 20000 to 25000.
  • Correct aliasing and referencing of column names, especially for the JOIN condition and selected columns.
  • Select TName, Salary, Cust_Name, Fee: This selects the desired columns from both tables: TName and Salary from Trainer and Cust_Name (assuming a typo and it should be Cust_Name) and Fee from Customer.
  • From Customer, Trainer: This specifies the tables involved in the join.
  • Where C.TId = T.TId: This establishes the join condition between the Customer and Trainer tables, ensuring we retrieve data for trainers with matching IDs in both tables.
  • and Salary between 20000 and 25000: This filters the results to include only trainers whose salaries fall within the specified range (20000 to 25000).

Options A, B, and E all construct the correct SQL query to display the desired report with proper table joins, column selection, and filtering based on trainer salary.

Computer Science: CUET Mock Test - 3 - Question 7

Which of the following join is used to get all the tuples of relation X and Y with Null values of corresponding missing values ?

Detailed Solution for Computer Science: CUET Mock Test - 3 - Question 7

The correct answer is Full outer join

Key PointsA "Full Outer Join" (also known as Full Join) is used in SQL to combine rows from two or more tables based on a related column. The outcome of a Full Outer Join includes all the records from both the left and the right tables, and it matches rows from both tables where the join condition is met. If there isn't a match, the result is NULL on either the left or the right side (or both, in case of no common relation).

So the correct answer is Full outer join

Additional Information

  • A NATURAL JOIN is a type of join operation in SQL that is used to combine rows from two or more tables based on the columns they have in common. This can be particularly useful when you have two tables that contain related data, but do not have an explicitly defined foreign key relationship.
  • Unlike other join types, NATURAL JOIN doesn't require a specific condition to match columns from one table with another, as it automatically matches columns with the same name in both tables. For example, if both tables have a column named 'customer_id', the NATURAL JOIN will use this column as the join condition.
Computer Science: CUET Mock Test - 3 - Question 8

Number of tuples obtained by applying cartesian product over X and Y are :

Detailed Solution for Computer Science: CUET Mock Test - 3 - Question 8

The correct answer is 16

Key PointsIn the context of relational databases and SQL, a Cartesian product (or CROSS JOIN) refers to a JOIN operation that returns the combination of every row of the first table with every row of the second table.
If table1 has n rows and table2 has m rows, the Cartesian product of these two tables will result in a table with n*m rows.
If table1 has 4 rows and table2 has 4 rows, the Cartesian product of these two tables will result in a table with 4*4 = 16 rows.
So the correct answer is 16

Computer Science: CUET Mock Test - 3 - Question 9

Find the number of tuples by applying the operation X⟕X.s = y.sY

Detailed Solution for Computer Science: CUET Mock Test - 3 - Question 9

The correct answer is 4

Key PointsA "Left Outer Join" is another type of JOIN operation in SQL, which is used to combine rows from two or more tables based on a related column between them.

Unlike the Right Outer Join, the Left Outer Join returns all the records from the left table, and the matched records from the right table. If there is no match found in the right table, the result is NULL on the right-side part.

Here the above table is left outer join they have contain four row so correct answer is 4.

Computer Science: CUET Mock Test - 3 - Question 10

Number of tuples by applying right outer join on relation X and Y is/are :

Detailed Solution for Computer Science: CUET Mock Test - 3 - Question 10

The correct answer is 4

Key Points A "Right Outer Join" is a concept from SQL (Structured Query Language), used in relational databases. It's a method of combining two tables based on a common column between them, showing all records from the 'right' table and matched records from the 'left' table.

The result of a right outer join contains all the records from the right table and any records in the left table that match the join condition. For the records in the right table that do not have a corresponding match in the left table, the result is NULL in the columns of the left table.

Here the above table is right outer join they have contain four row so correct answer is 4.

Computer Science: CUET Mock Test - 3 - Question 11

Result of X ⟖ x.s = y.sY is

Detailed Solution for Computer Science: CUET Mock Test - 3 - Question 11

The correct answer is Option 2

Key PointsA "Right Outer Join" is a concept from SQL (Structured Query Language), used in relational databases. It's a method of combining two tables based on a common column between them, showing all records from the 'right' table and matched records from the 'left' table.

The result of a right outer join contains all the records from the right table and any records in the left table that match the join condition. For the records in the right table that do not have a corresponding match in the left table, the result is NULL in the columns of the left table.

Computer Science: CUET Mock Test - 3 - Question 12

When will the bad_alloc exception be thrown by a program?

Detailed Solution for Computer Science: CUET Mock Test - 3 - Question 12

When we are allocating the memory using new operator and allocation fail, then bad_alloc exception is thrown by the program.

Computer Science: CUET Mock Test - 3 - Question 13

A file management system can typically access records from:

Detailed Solution for Computer Science: CUET Mock Test - 3 - Question 13

A file management system can typically access records from only one file at a time.

Computer Science: CUET Mock Test - 3 - Question 14

Two statements are given below, one is Assertion A and the other is Reason R.

Assertion A: Data is any form of information that can be processed by a computer.
Reason R: Data can be in the form of text, numbers, images, audio, and video.

Detailed Solution for Computer Science: CUET Mock Test - 3 - Question 14

Both the Assertion and Reason are true, and the Reason is the correct explanation of the Assertion. Data is any form of information that can be processed by a computer, including text, numbers, images, audio, and video.

Computer Science: CUET Mock Test - 3 - Question 15

___ is an example for RDBMS.

Detailed Solution for Computer Science: CUET Mock Test - 3 - Question 15

Top 10 most popular RDBMSs are:
Oracle
MySQL
SQL Server
PostgreSQL
IBM DB2
Microsoft Access
SQLite
MariaDB
Informix
Azure SQL
So, all the above is correct.

Computer Science: CUET Mock Test - 3 - Question 16

Which constraint does not allow NULL values?

Detailed Solution for Computer Science: CUET Mock Test - 3 - Question 16

The PRIMARY KEY constraint uniquely identifies each record in a table. Primary keys must contain UNIQUE values, and cannot contain NULL values.

Computer Science: CUET Mock Test - 3 - Question 17

Directions: Match the contents under List I with those under List II.

Detailed Solution for Computer Science: CUET Mock Test - 3 - Question 17

'Try' is used to define the code block where an exception might occur. 'Raise' is used to trigger a specific exception intentionally. 'Finally' defines the code block that will execute regardless of whether an exception occurs. 'Except' is used to handle the raised exception.

Computer Science: CUET Mock Test - 3 - Question 18

By using computer networks, we can

Detailed Solution for Computer Science: CUET Mock Test - 3 - Question 18

We can do all the above using computer networks.

Computer Science: CUET Mock Test - 3 - Question 19

Two statements are given below:
Statement I: The 'x' file access mode allows you to create a new file but will raise an error if the file already exists.
Statement II: The 'a' file access mode allows you to write to the file but not overwrite any existing content.

Detailed Solution for Computer Science: CUET Mock Test - 3 - Question 19

The 'x' file access mode is used to open a file for exclusive creation. This mode allows you to create a new file but will raise an error if the file already exists. This mode is useful when you want to create a new file and ensure that it does not already exist. The 'a' file access mode is used to open a file for appending data to the end of the file. This mode allows you to write to the file but not overwrite any existing content. If the file does not exist, it will be created.

Computer Science: CUET Mock Test - 3 - Question 20

Testing stack for overflow is performed by comparing the values of the top with value ______.

Detailed Solution for Computer Science: CUET Mock Test - 3 - Question 20

When stack is completely full (i.e. TOP= MaxSize -1) and we try to insert more elements onto stack then this condition is called overflow condition and no further element could be inserted now until any element is deleted.

Computer Science: CUET Mock Test - 3 - Question 21

What is the similarity between the operations on stacks and those on queues, although they are entirely different?

Detailed Solution for Computer Science: CUET Mock Test - 3 - Question 21

Both the stack and queue are the linear data structure, which means that the elements are stored sequentially and accessed in a single run.

Computer Science: CUET Mock Test - 3 - Question 22

Which of the following is not a limitation of the binary search algorithm?

Detailed Solution for Computer Science: CUET Mock Test - 3 - Question 22

The major limitation of binary search is that there is a need for the sorted array to perform the binary search operation. If the array is not sorted the output is either not correct or maybe after a long number of steps and according to the data structure, the output should come in a minimum number of steps.
Not a limitation of Binary search :Binary search algorithm is not efficient when the data elements are more than 1000.

Computer Science: CUET Mock Test - 3 - Question 23

Two statements are given below, one is Assertion A and the other is Reason R.
Assertion A: Data visualization is the process of creating visual representations of data to communicate information effectively.
Reason R: Data visualization helps to uncover patterns, trends, and insights in data that might not be apparent in raw data.

Detailed Solution for Computer Science: CUET Mock Test - 3 - Question 23

Both the Assertion and Reason are true, and the Reason is the correct explanation of the Assertion. Data visualization is the process of creating visual representations of data to communicate information effectively. It helps to uncover patterns, trends, and insights in data that might not be apparent in raw data, making it easier for decision-makers to understand and act on the data.

Computer Science: CUET Mock Test - 3 - Question 24

The set of 'Processed data' is called?

Detailed Solution for Computer Science: CUET Mock Test - 3 - Question 24

Data processing refers to the process of performing specific operations on a set of data or a database.
Process data is called information.

Computer Science: CUET Mock Test - 3 - Question 25

Two statements are given below, one is Assertion A and the other is Reason R.

Assertion A: A LAN (Local Area Network) is a computer network that connects devices within a small geographic area such as a city.
Reason R: LANs typically use wired or wireless connections to enable devices to communicate with each other and share resources such as printers and files.

Detailed Solution for Computer Science: CUET Mock Test - 3 - Question 25

The Assertion is not correct and Reason are correct. A LAN (Local Area Network) is a computer network that connects devices within a small geographic area such as a building or a campus not city. LANs typically use wired or wireless connections to enable devices to communicate with each other and share resources such as printers and files.

Computer Science: CUET Mock Test - 3 - Question 26

Ankita is writing a program to perform some operations in Queue. She has created three Insert_in_Queue(Student), Delete_from_Queue(Student) and Print_Queue(Student) methods/functions in Python to add a new student name, delete a student name and print the list of student from a queue, considering them to act as insert, delete and print operations of the Queue data structure. She is not getting the desired result. Help her to get the desired result from the given Python code.
def Insert_in_Queue(queue):
a=input("enter student name: ")
queue.____________ # Statement-1
def Delete_from_Queue (queue):
if (____________): # Statement-2
print("Queue empty")
else:
print("Deleted element is: ",queue[0])
del queue[___] #Statement-3
def Print_Queue(queue):
if not ________: #Statement-4

print(queue[__:___ ]) # Statement-5

Q. What should Ankita write to complete the Statement-1 to store the student name?

Detailed Solution for Computer Science: CUET Mock Test - 3 - Question 26

The append() method in Python adds a single item to the existing list.

Computer Science: CUET Mock Test - 3 - Question 27

Ankita is writing a program to perform some operations in Queue. She has created three Insert_in_Queue(Student), Delete_from_Queue(Student) and Print_Queue(Student) methods/functions in Python to add a new student name, delete a student name and print the list of student from a queue, considering them to act as insert, delete and print operations of the Queue data structure. She is not getting the desired result. Help her to get the desired result from the given Python code.
def Insert_in_Queue(queue):
a=input("enter student name: ")
queue.____________ # Statement-1
def Delete_from_Queue (queue):
if (____________): # Statement-2
print("Queue empty")
else:
print("Deleted element is: ",queue[0])
del queue[___] #Statement-3
def Print_Queue(queue):
if not ________: #Statement-4

print(queue[__:___ ]) # Statement-5

Q. Fill in the blank in Statement-3 with index number.

Detailed Solution for Computer Science: CUET Mock Test - 3 - Question 27

The del keyword is used to delete objects. In Python, everything is an object. So, the del keyword can also be used to delete variables, lists, or parts of a list, etc.

Computer Science: CUET Mock Test - 3 - Question 28

Ankita is writing a program to perform some operations in Queue. She has created three Insert_in_Queue(Student), Delete_from_Queue(Student) and Print_Queue(Student) methods/functions in Python to add a new student name, delete a student name and print the list of student from a queue, considering them to act as insert, delete and print operations of the Queue data structure. She is not getting the desired result. Help her to get the desired result from the given Python code.
def Insert_in_Queue(queue):
a=input("enter student name: ")
queue.____________ # Statement-1
def Delete_from_Queue (queue):
if (____________): # Statement-2
print("Queue empty")
else:
print("Deleted element is: ",queue[0])
del queue[___] #Statement-3
def Print_Queue(queue):
if not ________: #Statement-4

print(queue[__:___ ]) # Statement-5

Q. Specify the range to print all queue elements in Statement-5.

Detailed Solution for Computer Science: CUET Mock Test - 3 - Question 28

The len() function returns the number of items (length) in an object.

Computer Science: CUET Mock Test - 3 - Question 29

Ankita is writing a program to perform some operations in Queue. She has created three Insert_in_Queue(Student), Delete_from_Queue(Student) and Print_Queue(Student) methods/functions in Python to add a new student name, delete a student name and print the list of student from a queue, considering them to act as insert, delete and print operations of the Queue data structure. She is not getting the desired result. Help her to get the desired result from the given Python code.
def Insert_in_Queue(queue):
a=input("enter student name: ")
queue.____________ # Statement-1
def Delete_from_Queue (queue):
if (____________): # Statement-2
print("Queue empty")
else:
print("Deleted element is: ",queue[0])
del queue[___] #Statement-3
def Print_Queue(queue):
if not ________: #Statement-4

print(queue[__:___ ]) # Statement-5

Q. Fill in the blank in Statement-2 to check whether the queue is empty or not.

Detailed Solution for Computer Science: CUET Mock Test - 3 - Question 29

The isEmpty() method checks whether a string is empty or not. This method returns true if the string is empty (length() is 0), and false if not.

Computer Science: CUET Mock Test - 3 - Question 30

Ankita is writing a program to perform some operations in Queue. She has created three Insert_in_Queue(Student), Delete_from_Queue(Student) and Print_Queue(Student) methods/functions in Python to add a new student name, delete a student name and print the list of student from a queue, considering them to act as insert, delete and print operations of the Queue data structure. She is not getting the desired result. Help her to get the desired result from the given Python code.
def Insert_in_Queue(queue):
a=input("enter student name: ")
queue.____________ # Statement-1
def Delete_from_Queue (queue):
if (____________): # Statement-2
print("Queue empty")
else:
print("Deleted element is: ",queue[0])
del queue[___] #Statement-3
def Print_Queue(queue):
if not ________: #Statement-4

print(queue[__:___ ]) # Statement-5

Q. Select the correct option to complete Statement-4.

Detailed Solution for Computer Science: CUET Mock Test - 3 - Question 30

The isEmpty() method checks whether a string is empty or not.

View more questions
8 docs|148 tests
Information about Computer Science: CUET Mock Test - 3 Page
In this test you can find the Exam questions for Computer Science: CUET Mock Test - 3 solved & explained in the simplest way possible. Besides giving Questions and answers for Computer Science: CUET Mock Test - 3, EduRev gives you an ample number of Online tests for practice
Download as PDF