aglasem.com
Schools Admission Mock Test Playground
ClassChoose class
StateSelect state

CUET Sample Paper for Computer Science

Download CUET Sample Paper for Computer Science PDF free from AglaSem Docs. Practice with this sample paper to get familiar with the question format and improve your exam readiness. More Detail
CUET Sample Paper for Computer Science - Page 1 of 35

Finished viewing? Save it for later —

Download CUET Sample Paper for Computer Science (PDF · 35 pages)
Downloaded 128 times

About CUET Sample Paper for Computer Science

CUET Sample Paper for Computer Science is available here for free download. Published by NTA for Common University Entrance Test, this sample paper can be viewed online or downloaded as a PDF (35 pages). Candidates preparing for Common University Entrance Test can use CUET Sample Paper for Computer Science to understand the exam pattern, the type of questions asked, and the overall difficulty level.

Frequently Asked Questions

How can I download CUET Sample Paper for Computer Science?

Open this page and click the Download button to save CUET Sample Paper for Computer Science as a PDF. It is completely free on AglaSem Docs.

Is CUET Sample Paper for Computer Science free to download?

Yes. CUET Sample Paper for Computer Science can be viewed online and downloaded as a PDF free of cost on AglaSem Docs.

How many pages does CUET Sample Paper for Computer Science have?

CUET Sample Paper for Computer Science contains 35 pages, which you can read online or download together as a single PDF.

Where can I find more Common University Entrance Test study material?

You can find more Common University Entrance Test question papers, sample papers, syllabus, and answer keys on AglaSem Docs.

CUET Sample Paper for Computer Science – Text

Read the full text of this sample paper below — useful to quickly search, copy and reference the content online without downloading the PDF.

📄 View text version (35 pages)

Page 1

CUET UG
ENTRANCE
SAMPLE PAPER
2023
SAMPLE PAPERS • PRACTICE
QUESTION PAPERS • YEAR 2023 •
PDF DOWNLOAD • FREE READING

2023 JUNE
MAY 2023

AGLASEM
Mock Test | Study Material | Notes

More Information: www.

Page 2

CUET 2023 Overview

CUET is a Common entrance exam. The full form of CUET is Common University Entrance Test. It
is organized by National Testing Agency at a National level. It is organized by National Testing
Agency as a National level exam in India for admission in All Central Universities, and State, Deemed,
Private Universities accepting CUET scores.

Highlights of the examination are as follows.

Aspects Details

Name of Exam CUET 2023

Full Form of CUET Common University Entrance Test

Organizing Body NTA

Full Form of NTA National Testing Agency

Type of Exam Common Entrance Exam

Level of Exam National

Region India

Official Website cuet.samarth.ac.in

Courses Where BA, BCA, B.Sc, B.Com, BJMC, B.Pharm, D.Pharm, B.Tech, B.Voc, BVA,
Admission is Through BFA, BPA, BSW, Integrated MA Integrated B.Ed, Integrated M.Sc,
CUET Integrated B.Tech-M.Tech, Integrated MPA, BA LLB, BBA LLB, Diploma,
Shastri,

Colleges Where All Central Universities, and State, Deemed, Private Universities acepting
Admission is Through CUET scores
CUET

Minimum Educational Class 12th
Qualification

Mode of Exam Computer Based Test-CBT

Type of Questions Objective type with Multiple Choice Questions

Marking Scheme +5, -1

CUET 2023 Exam Pattern

The exam pattern is as follows

▪ Mode of Exam – The exam is a Computer Based Test-CBT.
▪ Question type – The questions are Objective type with Multiple Choice Questions.
▪ Number of Subjects – A candidate can choose upto 10 Subjects for giving the Exam.
▪ Language of Question Paper – The question paper is in 13 languages (Assamese, Bengali,
English, Gujarati, Hindi, Kannada, Malayalam, Marathi, Punjabi, Odia, Tamil, Telugu, and
Urdu).

Page 3

Marking Scheme –
▪ Candidates get +5 marks for correct answer.
▪ And negative marks is -1 for incorrect answers

Page 4

List of Languages/ Domain Specific Subjects /General Test offered under CUET (UG)-2023

Page 5

Sample Paper
Computer Science

Q.No. 1

Your teacher has given you a method/function FilterWords() in python which read lines from a text file
NewsLetter.TXT, and display those words, which are lesser than 4 characters. Your teachers intentionally
kept few blanks in between the code and asked you to fill the blanks so that the code will run to find desired
result. Do the needful with the following python code.

Write mode of opening the file in statement-1?

(A) a

(B) ab

(C) w

(D) r

Q.No. 2

In a Database, there are two tables with the instances given below:

Identify the statement to delete a column phone from the table students.
---

Page 6

(A) ALTER TABLE STUDENTS DROP PHONE;

(B) DROP PHONE;

(C) UPDATE DROP PHONE; CUET 2023
(D) DELETE FROM STUDENTS WHERE DROP PHONE;

Q.No. 3

Krrishnav is looking for his dream job but has some restrictions. He loves Delhi and would take a job there if
he is paid over Rs.40,000 a month. He hates Chennai and demands at least Rs. 1,00,000 to work there. In any
another location he is willing to work for Rs. 60,000 a month. The following code shows his basic strategy
for evaluating a job offer.

Code:

On the basis of the above code, choose the right statement which will be executed when different inputs for
pay and location are given.

Input: location = "Chennai”, pay = 50000

(A) Statement 1

(B) Statement 2

(C) Statement 3

(D) Statement 4

Q.No. 4

Krrishnav is looking for his dream job but has some restrictions. He loves Delhi and would take a job there if
he is paid over Rs.40,000 a month. He hates Chennai and demands at least Rs. 1,00,000 to work there. In any
another location he is willing to work for Rs. 60,000 a month. The following code shows his basic strategy
for evaluating a job offer.

Code:
---

Page 7

On the basis of the above code, choose the right statement which will be executed when different inputs for
pay and location are given.

Input- location = "Any Other City", pay = 1

(A) Statement 1

(B) Statement 2

(C) Statement 4

(D) Statement 6

Q.No. 5

Rohit, a student of class 12th, is learning CSV File Module in Python. During examination, he has been
assigned an incomplete python code (shown below) to create a CSV File 'Student.csv' (content shown
below). Help him in completing the code which creates the desired CSV File.

CSV File

1,AKSHAY,XII,A

2,ABHISHEK,XII,A

3,ARVIND,XII,A

4,RAVI,XII,A

5,ASHISH,XII,A

Incomplete Code
---

Page 8

Choose the function name that should be used in the blank space of line marked as Statement-5 to create the
desired CSV File?

(A) dump()

(B) load()

(C) writerows()

(D) writerow()

Q.No. 6

Millions of computer science students have taken a course on algorithms and data structures, typically the
second course after the initial one introducing programming. One of the basic data structures in such a course
is the stack. The stack has a special place in the emergence of computing as a science, as argued by Michael
Mahoney, the pioneer of the history of the theory of computing. The Stack can be used in many computer
applications, few are given below:

a) In recursive function

b) When function is called.

c) Expression conversion such as – Infix to Postfix, Infix to Prefix, Postfix to Infix, Prefix to Infix.

In Stack, insertion operation is known as Push whereas deletion operation is known as Pop.

Code – 1

Required Output:

['Indian', 'UK', 'Sri Lanka']

Code - 2
---

Page 9

Required Output:

Sri Lanka

UK

India

Under flow

Fill the above statement based on given question:

Fill the statement 5, to call the pop function

(A) pop(C)

(B) pop(Country)

(C) call pop(Country)

(D) def pop(Country)

Q.No. 7

Radha Shah is a programmer, who has recently been given a task to write a python code to perform the
following CSV file operations with the help of two user defined functions/modules:

a. CSVOpen() : to create a CSV file called BOOKS.CSV in append mode containing information of books –
Title, Author and Price.

b. CSVRead() : to display the records from the CSV file called BOOKS.CSV where the field title starts with
'R'.

She has succeeded in writing partial code and has missed out certain statements, so she has left certain
queries in comment lines.
---

Page 10

You as an expert of Python have to provide the missing statements and other related queries based on the
following code of Radha.

Which statement will be used to create a csv writer object in Statement 2.

(A) csv.writer(csvf)

(B) csv.writer(csvf)

(C) csvf.writer()

(D) cs.writer(csvf)

Q.No. 8

Millions of computer science students have taken a course on algorithms and data structures, typically the
second course after the initial one introducing programming. One of the basic data structures in such a course
is the stack. The stack has a special place in the emergence of computing as a science, as argued by Michael
Mahoney, the pioneer of the history of the theory of computing. The Stack can be used in many computer
applications, few are given below:

a) In recursive function

b) When function is called.

c) Expression conversion such as – Infix to Postfix, Infix to Prefix, Postfix to Infix, Prefix to Infix.

In Stack, insertion operation is known as Push whereas deletion operation is known as Pop.

Code – 1

Required Output:

['Indian', 'UK', 'Sri Lanka']

Code - 2
---

Page 11

Required Output:

Sri Lanka

UK

India

Under flow

Fill the above statement based on given question:

Fill the statement 3, to check the stack is empty.

(A) Country=[]

(B) Country.isEmpty()

(C) len(country)==0

(D) No of the above

Q.No. 9

Millions of computer science students have taken a course on algorithms and data structures, typically the
second course after the initial one introducing programming. One of the basic data structures in such a course
is the stack. The stack has a special place in the emergence of computing as a science, as argued by Michael
Mahoney, the pioneer of the history of the theory of computing. The Stack can be used in many computer
applications, few are given below:

a) In recursive function

b) When function is called.

c) Expression conversion such as – Infix to Postfix, Infix to Prefix, Postfix to Infix, Prefix to Infix.

In Stack, insertion operation is known as Push whereas deletion operation is known as Pop.

Code – 1
---

Page 12

Required Output:

['Indian', 'UK', 'Sri Lanka']

Code - 2 CUET 2023

Required Output:

Sri Lanka

UK

India

Under flow

Fill the above statement based on given question:

Fill the statement 2, to insert the alternate element from Country list.

(A) 3

(B) 0

(C) -1

(D) 2

Q.No. 10

Rohit, a student of class 12th, is learning CSV File Module in Python. During examination, he has been
assigned an incomplete python code (shown below) to create a CSV File 'Student.csv' (content shown
below). Help him in completing the code which creates the desired CSV File.

CSV File

1,AKSHAY,XII,A

2,ABHISHEK,XII,A

3,ARVIND,XII,A

4,RAVI,XII,A

5,ASHISH,XII,A

Incomplete Code
---

Page 13

Identify the missing code for blank space in line marked as Statement-2?

(A) "School.csv","w"

(B) "Student.csv","w"

(C) "Student.csv","r"

(D) "School.csv","r"

Q.No. 11

Millions of computer science students have taken a course on algorithms and data structures, typically the
second course after the initial one introducing programming. One of the basic data structures in such a course
is the stack. The stack has a special place in the emergence of computing as a science, as argued by Michael
Mahoney, the pioneer of the history of the theory of computing. The Stack can be used in many computer
applications, few are given below:

a) In recursive function

b) When function is called.

c) Expression conversion such as – Infix to Postfix, Infix to Prefix, Postfix to Infix, Prefix to Infix.

In Stack, insertion operation is known as Push whereas deletion operation is known as Pop.

Code – 1

Required Output:

['Indian', 'UK', 'Sri Lanka']

Code - 2
---

Page 14

Required Output:

Sri Lanka

UK

India

Under flow

Fill the above statement based on given question:

Fill the statement 4, to delete an element from the stack.

(A) pop(1)

(B) pop()

(C) del country[1]

(D) Country.delete(1)

Q.No. 12

Consider the following code and answer the question:

What will be the output of the following line of code: print(list(Library))

(A) [‘5’,’Madras Diaries’,’6’,’Malgudi Days’]

(B) (‘5’,’Madras Diaries’,’6’,’Malgudi Days’)

(C) [’Madras Diaries’,’Malgudi Days’]

(D) [‘5’,’6’]

Q.No. 13

In a Database, there are two tables with the instances given below:
---

Page 15

Choose the command to count the number of students who play volleyball

(A) SELECT COUNT(*) FROM STUDENTS,SPORTS WHERE GAME=”VOLLEYBALL” AND
STUDENTS.ADMNO=SPORTS.ADMNO ;

(B) SELECT COUNT(GAME) FROM STUDENTS,SPORTS WHERE GAME=”VOLLEYBALL” AND
STUDENTS.ADMNO=SPORTS.ADMNO ;

(C) SELECT COUNT(*) FROM STUDENTS,SPORTS WHERE GAME=”VOLLEYBALL” ;

(D) SELECT COUNT(*) FROM STUDENTS,SPORTS WHERE SPORTS=”VOLLEYBALL” AND
STUDENTS.ADMNO=SPORTS.ADMNO

Q.No. 14

A company ABC Enterprises has four blocks of buildings as shown:

Center to center distance between various blocks.

Number of computers in each block :
---

Page 16

Computers in each block are networked but blocks are not networked. The company has now decided to
connect the blocks also.

The company is planning to link its head office situated in New Delhi with the offices in hilly areas. Suggest
a way to connect it economically:

(A) Micro waves

(B) Coaxial cable

(C) Fibre optic

(D) Radio waves

Q.No. 15

Radha Shah is a programmer, who has recently been given a task to write a python code to perform the
following CSV file operations with the help of two user defined functions/modules:

a. CSVOpen() : to create a CSV file called BOOKS.CSV in append mode containing information of books –
Title, Author and Price.

b. CSVRead() : to display the records from the CSV file called BOOKS.CSV where the field title starts with
'R'.

She has succeeded in writing partial code and has missed out certain statements, so she has left certain
queries in comment lines.

You as an expert of Python have to provide the missing statements and other related queries based on the
following code of Radha.
---

Page 17

Choose the appropriate mode in which the file is to be opened in append mode (Statement 1)

(A) w+

(B) ab CUET 2023
(C) r+

(D) a

Q.No. 16

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 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.

Specify the range to print all queue elements in statement-5?

(A) print(queue=[0:len=(queue)])

(B) print(queue[0:len(queue)])

(C) print(queue[[0:len]])

(D) print(queue[0=len(queue)])

Q.No. 17

Amritya Seth is a programmer, who has recently been given a task to write a python code to perform the
following binary file operations with the help of two user defined functions/modules:

a. AddStudents() to create a binary file called STUDENT.DAT containing student information – roll

number, name and marks (out of 100) of each student.

b. GetStudents() to display the name and percentage of those students who have a percentage greater than
75. In case there is no student having percentage > 75 the function displays an appropriate message. The
function should also display the average percent.

He has succeeded in writing partial code and has missed out certain statements, so he has left certain queries
in comment lines. You as an expert of Python have to provide the missing statements and other related
queries based on the following code of Amritya.

Answer the question:
---

Page 18

Which of the following statement(s) are correct regarding the file access modes?

(A) ‘r+’ opens a file for both reading and writing. File object points to its beginning.

(B) ‘w+’ opens a file for both writing and reading. Adds at the end of the existing file if it exists and creates a
new one if it does not exist.

(C) ‘wb’ opens a file for reading and writing in binary format. Overwrites the file if it exists and creates a

new one if it does not exist.

(D) ‘a’ opens a file for appending. The file pointer is at the start of the file if the file exists.

Q.No. 18

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 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.
---

Page 19

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

(A) isEmpty(Queue)

(B) isEmpty(q)

(C) Queue.isEmpty

(D) Empty.Queue

Q.No. 19

Amritya Seth is a programmer, who has recently been given a task to write a python code to perform the
following binary file operations with the help of two user defined functions/modules:

a. AddStudents() to create a binary file called STUDENT.DAT containing student information – roll
number, name and marks (out of 100) of each student.

b. GetStudents() to display the name and percentage of those students who have a percentage greater than
75. In case there is no student having percentage > 75 the function displays an appropriate message. The
function should also display the average percent.

He has succeeded in writing partial code and has missed out certain statements, so he has left certain queries
in comment lines. You as an expert of Python have to provide the missing statements and other related
queries based on the following code of Amritya.

Answer the question:
---

Page 20

Which of the following statements correctly explain the function of seek() method?

(A) tells the current position within the file.

(B) determines if you can move the file position or not.

(C) indicates that the next read or write occurs from that position in a file.

(D) moves the current file position to a given specified position

Q.No. 20

Consider the following code and answer the question:

Ramesh needs to change the title in the dictionary book from ‘Crime’ to ‘Crime Thriller’.He has written the
following command: Book[‘Crime’]=’Crime Thriller’ But he is not getting the answer. Help him choose the
correct command:

(A) Book[2]=’Crime Thriller’

(B) Book[3]=’Crime Thriller’

(C) Book[2]=(’Crime Thriller’)

(D) Book[3] =(‘Crime Thriller’)

Q.No. 21

Arun, during Practical Examination of Computer Science, has been assigned an incomplete search() function
to search in a pickled file student.dat. The File student.dat is created by his Teacher and the following
information is known about the file.
---

Page 21

• File contains details of students in [roll_no,name,marks] format.

• File contains details of 10 students (i.e. from roll_no 1 to 10) and separate list of each student is written in
the binary file using dump().
Arun has been assigned the task to complete the code and print details of roll number 1.

What will be the suitable code for blank space in line marked as Statement-4.

(A) rec[0]==2

(B) rec[1]==2

(C) rec[2]==2

(D) rec[0]==1

Q.No. 22

A company ABC Enterprises has four blocks of buildings as shown:

Center to center distance between various blocks.

Number of computers in each block :
---

Page 22

Computers in each block are networked but blocks are not networked. The company has now decided to
connect the blocks also.

Suggest the most appropriate topology for the connections between the blocks.

(A) Ring topology

(B) Star topology

(C) Mesh topology

(D) Bus topology

Q.No. 23

Rohit, a student of class 12th, is learning CSV File Module in Python. During examination, he has been
assigned an incomplete python code (shown below) to create a CSV File 'Student.csv' (content shown
below). Help him in completing the code which creates the desired CSV File.

CSV File

1,AKSHAY,XII,A

2,ABHISHEK,XII,A

3,ARVIND,XII,A

4,RAVI,XII,A

5,ASHISH,XII,A

Incomplete Code

Choose the function name (with argument) that should be used in the blank space of line marked as
Statement-3

(A) reader(fh)

(B) reader(MyFile)
---

Page 23

(C) writer(fh)

(D) writer(MyFile)

Q.No. 24 CUET 2023
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 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.

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

(A) queue.append(a)

(B) queue=append(a)

(C) queue.append=a

(D) append(a).queue

Q.No. 25

Consider the following code and answer the question:

The command to merge the dictionary Book with Library the command would be:

(A) d=Book+Library

(B) print(Book+Library)

(C) Book.update(Library)

(D) Library.update(Book)

Q.No. 26

Your teacher has given you a method/function FilterWords() in python which read lines from a text file
NewsLetter.TXT, and display those words, which are lesser than 4 characters. Your teachers intentionally
kept few blanks in between the code and asked you to fill the blanks so that the code will run to find desired
result. Do the needful with the following python code.
---

Page 24

Fill in the blank in statement-2 to read the data from the file.

(A) File.Read()

(B) file.read()

(C) read.lines( )

(D) readlines( )

Q.No. 27

Arun, during Practical Examination of Computer Science, has been assigned an incomplete search() function
to search in a pickled file student.dat. The File student.dat is created by his Teacher and the following
information is known about the file.

• File contains details of students in [roll_no,name,marks] format.

• File contains details of 10 students (i.e. from roll_no 1 to 10) and separate list of each student is written in
the binary file using dump().

Arun has been assigned the task to complete the code and print details of roll number 1.

Which statement Arun should use at blank space in line marked as Statement4 to close the file.

(A) file.close()

(B) close(file)

(C) f.close()

(D) close()

Q.No. 28
---

Page 25

Krrishnav is looking for his dream job but has some restrictions. He loves Delhi and would take a job there if
he is paid over Rs.40,000 a month. He hates Chennai and demands at least Rs. 1,00,000 to work there. In any
another location he is willing to work for Rs. 60,000 a month. The following code shows his basic strategy
for evaluating a job offer.
Code:

On the basis of the above code, choose the right statement which will be executed when different inputs for
pay and location are given.

Input location = "Delhi", pay = 500000

(A) Statement 6

(B) Statement 5

(C) Statement 4

(D) Statement 3

Q.No. 29

Amritya Seth is a programmer, who has recently been given a task to write a python code to perform the
following binary file operations with the help of two user defined functions/modules:

a. AddStudents() to create a binary file called STUDENT.DAT containing student information – roll
number, name and marks (out of 100) of each student.

b. GetStudents() to display the name and percentage of those students who have a percentage greater than
75. In case there is no student having percentage > 75 the function displays an appropriate message. The
function should also display the average percent.

He has succeeded in writing partial code and has missed out certain statements, so he has left certain queries
in comment lines. You as an expert of Python have to provide the missing statements and other related
queries based on the following code of Amritya.

Answer the question:
---

Page 26

Which of the following commands is used to write the list L into the binary file, STUDENT.DAT? (marked
as #2 in the Python code)

(A) pickle.write(L,f)

(B) pickle.write(f, L)

(C) pickle.dump(L,F)

(D) f=pickle.dump(L)

Q.No. 30

Krrishnav is looking for his dream job but has some restrictions. He loves Delhi and would take a job there if
he is paid over Rs.40,000 a month. He hates Chennai and demands at least Rs. 1,00,000 to work there. In any
another location he is willing to work for Rs. 60,000 a month. The following code shows his basic strategy
for evaluating a job offer.

Code:
---

Page 27

On the basis of the above code, choose the right statement which will be executed when different inputs for
pay and location are given.

Input: location = "Surat" ,pay = 50000

(A) Statement 2

(B) Statement 4

(C) Statement 5

(D) Statement 6

Q.No. 31

Radha Shah is a programmer, who has recently been given a task to write a python code to perform the
following CSV file operations with the help of two user defined functions/modules:

a. CSVOpen() : to create a CSV file called BOOKS.CSV in append mode containing information of books –
Title, Author and Price.

b. CSVRead() : to display the records from the CSV file called BOOKS.CSV where the field title starts with
'R'.

She has succeeded in writing partial code and has missed out certain statements, so she has left certain
queries in comment lines.
---

Page 28

You as an expert of Python have to provide the missing statements and other related queries based on the
following code of Radha.

Choose the correct option for Statement 3 to write the names of the column headings in the CSV file,
BOOKS.CSV.

(A) cw.writerow('Title','Author','Price')

(B) cw.writerow(['Title','Author','Price'])

(C) cw.writerows('Title','Author','Price')

(D) cw.writerows(['Title','Author','Price'])

Q.No. 32

Your teacher has given you a method/function FilterWords() in python which read lines from a text file
NewsLetter.TXT, and display those words, which are lesser than 4 characters. Your teachers intentionally
kept few blanks in between the code and asked you to fill the blanks so that the code will run to find desired
result. Do the needful with the following python code.

Fill in the blank in Statement-5 to close the file.

(A) file.close()

(B) File.Close()

(C) Close()

(D) end()

Q.No. 33

A company ABC Enterprises has four blocks of buildings as shown:
---

Page 29

Center to center distance between various blocks.

Number of computers in each block :

Computers in each block are networked but blocks are not networked. The company has now decided to
connect the blocks also.

The company wants internet accessibility in all the blocks. The suitable and cost-effective technology for that
would be:

(A) Satellite

(B) Lease line

(C) Telephone line

(D) Broadband

Q.No. 34

Krrishnav is looking for his dream job but has some restrictions. He loves Delhi and would take a job there if
he is paid over Rs.40,000 a month. He hates Chennai and demands at least Rs. 1,00,000 to work there. In any
another location he is willing to work for Rs. 60,000 a month. The following code shows his basic strategy
for evaluating a job offer.

Code:
---

Page 30

On the basis of the above code, choose the right statement which will be executed when different inputs for
pay and location are given.

Input- location = "Lucknow", pay = 65000

(A) Statement 2

(B) Statement 3

(C) Statement 4

(D) Statement 5

Q.No. 35

Your teacher has given you a method/function FilterWords() in python which read lines from a text file
NewsLetter.TXT, and display those words, which are lesser than 4 characters. Your teachers intentionally
kept few blanks in between the code and asked you to fill the blanks so that the code will run to find desired
result. Do the needful with the following python code.

Fill in the blank in statement-4, which display the word having lesser than 4 characters.

(A) len(c) ==4

(B) len(c)<4

(C) len ( )= =3

(D) len ( )==3

Q.No. 36
---

Page 31

Arun, during Practical Examination of Computer Science, has been assigned an incomplete search() function
to search in a pickled file student.dat. The File student.dat is created by his Teacher and the following
information is known about the file.

• File contains details of students in [roll_no,name,marks] format.

• File contains details of 10 students (i.e. from roll_no 1 to 10) and separate list of each student is written in
the binary file using dump().

Arun has been assigned the task to complete the code and print details of roll number 1.

Identify the function (with argument), to be used at blank space in line marked as Statement-3.

(A) load()

(B) load(student.dat)

(C) load(f)

(D) load(fin)

Q.No. 37

A company ABC Enterprises has four blocks of buildings as shown:

Center to center distance between various blocks.

Number of computers in each block :
---

Page 32

Computers in each block are networked but blocks are not networked. The company has now decided to
connect the blocks also.

Which one of the following devices will you suggest for connecting all the computers with in each of their
blocks?

(A) Switch/Hub

(B) Modem

(C) Telephone

(D) Repeater

Q.No. 38

Arun, during Practical Examination of Computer Science, has been assigned an incomplete search() function
to search in a pickled file student.dat. The File student.dat is created by his Teacher and the following
information is known about the file.

• File contains details of students in [roll_no,name,marks] format.

• File contains details of 10 students (i.e. from roll_no 1 to 10) and separate list of each student is written in
the binary file using dump().

Arun has been assigned the task to complete the code and print details of roll number 1.

In which mode Arun should open the file in Statement-1?

(A) r

(B) r+

(C) rb

(D) wb

Q.No. 39

Amritya Seth is a programmer, who has recently been given a task to write a python code to perform the
following binary file operations with the help of two user defined functions/modules:
---

Page 33

a. AddStudents() to create a binary file called STUDENT.DAT containing student information – roll
number, name and marks (out of 100) of each student.

b. GetStudents() to display the name and percentage of those students who have a percentage greater than
75. In case there is no student having percentage > 75 the function displays an appropriate message. The
function should also display the average percent.

He has succeeded in writing partial code and has missed out certain statements, so he has left certain queries
in comment lines. You as an expert of Python have to provide the missing statements and other related
queries based on the following code of Amritya.

Answer the question:

Which of the following commands is used to read each record from the binary file STUDENT.DAT?
(marked as #3 in the Python code)

(A) R = pickle.load(F)

(B) pickle.read(r,f)
---

Page 34

(C) r= pickle.read(f)

(D) pickle.load(r,f)

Q.No. 40 CUET 2023
In a Database, there are two tables with the instances given below:

which two select queries will give the same output:

A. SELECT NAME, GRADE FROM STUDENTS,SPORTS WHERE ADDRESS IS NULL AND
STUDENTS.ADMNO =SPORTS.ADMNO ;

B. SELECT NAME, GRADE FROM STUDENTS,SPORTS WHERE ADDRESS IS NOT NULL AND
STUDENTS.ADMNO =SPORTS.ADMNO ;

C SELECT NAME, GRADE FROM STUDENTS,SPORTS WHERE ADDRESS IS NULL OR
STUDENTS.ADMNO=SPORTS.ADMNO ;

D. SELECT ST.NAME, SP.GRADE FROM STUDENTS ST,SPORTS SP WHERE ADDRESS IS NULL
AND ST.ADMNO=SP.ADMNO ;

(A) A AND B

(B) B AND C

(C) A AND D

(D) C AND D

Answer Sheet
Q.No Answer
Q.No. 1 (D)
Q.No. 2 (A)
Q.No. 3 (B)
Q.No. 4 (D)
Q.No. 5 (C)
---

Page 35

Q.No. 6 (B)
Q.No. 7 (B)
Q.No. 8 (C)
Q.No. 9 (D)
Q.No. 10 (B)
Q.No. 11 (B)
Q.No. 12 (D)
Q.No. 13 (A)
Q.No. 14 (D)
Q.No. 15 (D)
Q.No. 16 (B)
Q.No. 17 (A)
Q.No. 18 (A)
Q.No. 19 (D)
Q.No. 20 (B)
Q.No. 21 (D)
Q.No. 22 (B)
Q.No. 23 (C)
Q.No. 24 (A)
Q.No. 25 (D)
Q.No. 26 (B)
Q.No. 27 (C)
Q.No. 28 (C)
Q.No. 29 (C)
Q.No. 30 (D)
Q.No. 31 (B)
Q.No. 32 (A)
Q.No. 33 (D)
Q.No. 34 (D)
Q.No. 35 (B)
Q.No. 36 (C)

Q.No. 37 (A)
Q.No. 38 (C)
Q.No. 39 (A)
Q.No. 40 (C)
---

Document Details

Board / OrgNTA
ExamCommon University Entrance Test
TypeSample Paper
Pages35
Updated09 Jun 2026