← All previous-year papers

CUET 2023 Computer Science Question Paper with Answers & Solutions

85 questions with answer key & explanations

Q1.
Match List I with List II LIST I: A. writelines, B. pickle, C. try-except, D. rb LIST II: I. module for binary files, II. opening and reading a binary file, III. writing a sequence of string, IV. exception handling Choose the correct answer from the options given below:
A. A-III, B-IV, C-II, D-I
B. A-IV, B-I, C-III, D-II
C. A-III, B-IV, C-I, D-II
D. A-III, B-I, C-IV, D-II
Show answer & explanation

Correct answer: D

writelines writes a sequence of strings (III); pickle is the module for binary files (I); try-except is exception handling (IV); rb is opening and reading a binary file (II). So A-III, B-I, C-IV, D-II = option D.

Q2.
Which of the following represents mode of both writing and reading in binary format in file?
A. wb+
B. w
C. a+
D. w+
Show answer & explanation

Correct answer: A

'wb+' opens a binary file for both writing and reading (binary read/write). 'w+' and 'a+' are text mode read/write. So binary read+write is wb+.

Q3.
Which of the following is not a valid mode to open a file?
A. ab
B. rw
C. r+
D. w+
Show answer & explanation

Correct answer: B

Valid file modes include r, w, a, r+, w+, a+, rb, wb, ab. 'rw' is not a valid mode in Python; reading+writing is denoted r+ or w+.

Q4.
Which error is generated by pickle.load() function, when you reach end-of-file, while reading from the file.
A. EOL error
B. EOF error
C. File doesn't exist
D. No error is generated
Show answer & explanation

Correct answer: B

When pickle.load() reaches end-of-file with no more data to read, it raises an EOFError.

Q5.
Which of the following command is DML command?
A. Delete
B. Drop
C. Alter
D. Create
Show answer & explanation

Correct answer: A

DELETE is a DML (Data Manipulation Language) command. DROP, ALTER, CREATE are DDL commands.

Q6.
Which key is used to link two tables together?
A. Primary key
B. Unique key
C. Foreign key
D. Candidate key
Show answer & explanation

Correct answer: C

A foreign key in one table references the primary key of another table, linking the two tables together.

Q7.
The criteria for selecting a primary key for a table: A. It must uniquely identify the row. B. It cannot have NULL value. C. It can have NULL value. D. It can have duplicate values. E. It never uniquely identifies the row. Choose the correct answer from the options given below:
A. A and B only
B. C and D only
C. B and E only
D. A and E only
Show answer & explanation

Correct answer: A

A primary key must uniquely identify the row (A) and cannot contain NULL values (B). Statements C, D, E are false.

Q8.
SQL applies conditions on the groups through which clause after groups have been formed?
A. Group by
B. With
C. Where
D. Having
Show answer & explanation

Correct answer: D

The HAVING clause applies conditions on groups after they are formed by GROUP BY. WHERE filters individual rows before grouping.

Q9.
If column "Payment" contains the data set {10000, 15000, 25000, 10000, 15000}, what will be the output after the execution of the given query? SELECT SUM(DISTINCT PAYMENT) FROM EMPLOYEE ;
A. 75000
B. 25000
C. 10000
D. 50000
Show answer & explanation

Correct answer: D

DISTINCT values are {10000, 15000, 25000}. Sum = 10000+15000+25000 = 50000.

Q10.
Which of the following is not an aggregate function?
A. max(col)
B. min(col)
C. round(n,d)
D. count(*)
Show answer & explanation

Correct answer: C

round(n,d) is a single-row/scalar (numeric) function. max, min, count are aggregate functions.

Q11.
What is the output of the following SQL query? mysql > SELECT RIGHT("PRAYGRAJ", 3);
A. PRA
B. PRAYAG
C. RAJ
D. PRAYAGRAJ
Show answer & explanation

Correct answer: C

RIGHT("PRAYGRAJ", 3) returns the rightmost 3 characters = 'RAJ'.

Q12.
Match List I with List II LIST I: A. HTTP, B. FTP, C. SMTP, D. TCP LIST II: I. File Transfer Protocol, II. Simple Mail Transfer Protocol, III. Transmission Control Protocol, IV. Hyper Text Transfer Protocol Choose the correct answer from the options given below:
A. A-IV, B-I, C-III, D-II
B. A-IV, B-I, C-II, D-III
C. A-I, B-II, C-IV, D-III
D. A-II, B-I, C-III, D-IV
Show answer & explanation

Correct answer: B

HTTP=Hyper Text Transfer Protocol (IV); FTP=File Transfer Protocol (I); SMTP=Simple Mail Transfer Protocol (II); TCP=Transmission Control Protocol (III). So A-IV, B-I, C-II, D-III.

Q13.
If a computer connected to a star topology fails, the entire network will __________.
A. Also fails
B. Work unaffectedly
C. Only server will work
D. Only five nodes will be affected
Show answer & explanation

Correct answer: B

In star topology each node connects independently to a central hub/switch. If one computer (node) fails, the rest of the network continues to work unaffected.

Q14.
In __________ topology if the server is not working the entire network does not work.
A. Bus
B. Ring
C. Circle
D. Star
Show answer & explanation

Correct answer: D

In star topology all nodes connect to a central device (server/hub). If the central server/hub fails, the entire network stops working.

Q15.
Which of the following device filters the data before forwarding it? A. Switch B. Repeater C. Gateway D. Ethernet Card Choose the correct answer from the options given below:
A. A Only
B. B Only
C. C Only
D. D Only
Show answer & explanation

Correct answer: A

A switch examines the destination MAC address and filters/forwards data only to the intended port. Repeaters merely regenerate signals without filtering.

Q16.
The statements inside the __________ block are always executed regardless of whether an exception occured in the __________ block or not. What will be the appropriate clause in above statement respectively.
A. finally, except
B. except, finally
C. finally, try
D. try, finally
Show answer & explanation

Correct answer: C

The 'finally' block always executes regardless of whether an exception occurred in the 'try' block. So order is finally, try.

Q17.
Which of the file mode in the following is invalid for a text-file?
A. a
B. w
C. r
D. ab
Show answer & explanation

Correct answer: D

'ab' is a binary append mode, not a text-file mode. a, w, r are valid text modes.

Q18.
Which offset of seek() method in the following is not valid?
A. 0-is for beginning of file.
B. 1-the middle position of the file.
C. 2-for end of file.
D. 1- for current position of file pointer.
Show answer & explanation

Correct answer: B

seek() offsets: 0=beginning, 1=current position, 2=end of file. There is no offset for 'middle position', so 'B' (1-the middle position) is invalid.

Q19.
Evaluate the following postfix expression and find the correct value in the following- 50, 60, +, 20, 10, -, *
A. 1100
B. 1000
C. 9000
D. 10
Show answer & explanation

Correct answer: A

50 60 + = 110; 20 10 - = 10; 110 * 10 = 1100.

Q20.
Which of the following is a service that does the mapping between domain name and IP address?
A. Uniform Resource Locator
B. World Wide Web
C. Domain Name System
D. Hyper Text Transfer Protocol
Show answer & explanation

Correct answer: C

DNS (Domain Name System) maps domain names to IP addresses.

Q21.
Which term is used to add an element into a stack?
A. PUSH
B. PULL
C. SEEK
D. POP
Show answer & explanation

Correct answer: A

PUSH adds an element to a stack; POP removes the top element.

Q22.
Match List I with List II LIST I: A. Stack, B. EOF, C. Tree, D. Queue LIST II: I. FIFO, II. Non-linear Data Structure, III. Exception, IV. LIFO Choose the correct answer from the options given below:
A. A-IV, B-III, C-II, D-I
B. A-II, B-III, C-IV, D-I
C. A-I, B-II, C-III, D-IV
D. A-IV, B-III, C-I, D-II
Show answer & explanation

Correct answer: A

Stack=LIFO (IV); EOF=Exception (III); Tree=Non-linear Data Structure (II); Queue=FIFO (I). So A-IV, B-III, C-II, D-I.

Q23.
What is the term for inserting into a full queue known as?
A. Overflow
B. Underflow
C. Null pointer exception
D. Program won't be compiled
Show answer & explanation

Correct answer: A

Inserting into a full queue causes an overflow condition.

Q24.
Insertion and deletion in a queue takes place respectively at which end. A. Front B. Rear C. Middle D. Second element from right end E. Second element from left end. Choose the correct answer from the options given below:
A. B and A only
B. A and B only
C. C and E only
D. D and E only
Show answer & explanation

Correct answer: A

In a queue, insertion takes place at the Rear and deletion at the Front. So respectively (insertion, deletion) = Rear, Front = B and A.

Q25.
For best case, linear search, searches
A. The whole list
B. Half of the list
C. Just one element in the list
D. One fourth of the list
Show answer & explanation

Correct answer: C

In the best case of linear search, the target is found at the first position, so only one element is searched.

Q26.
Which of the following statement(s) is/are true A. When two elements map to the same slot in hash table, it is called hashing. B. Linear search takes a sorted list and divide it in the middle C. Modulo division method is Hashing method. D. Traversing specifies whether key is present in the list or not. E. Binary search take a sorted/ordered list and divides it in the middle. Choose the correct answer from the options given below:
A. A and B only
B. A, B and C only
C. B and D only
D. C and E only
Show answer & explanation

Correct answer: D

C (modulo division is a hashing method) and E (binary search uses a sorted list divided at the middle) are true. A is false (that is collision, not hashing); B is false (that describes binary search); D is false (searching, not traversing, checks key presence).

Q27.
The number of swaps made in pass 1 for the following list using Insertion sort is : List: 9, 8, 14, 2, -8, 5
[Figure in original paper — see source PDF]
A. 0
B. 1
C. 2
D. 3
Show answer & explanation

Correct answer: B

In insertion sort, pass 1 considers the second element (8) and inserts it into the sorted portion. Since 8 < 9, one swap/shift occurs to place 8 before 9. So 1 swap in pass 1.

Q28.
What will be the status of list (given below) after pass 2 using Bubble sort list? List: 8, 7, 13, 1, -9, 4
[Figure in original paper — see source PDF]
A. 7, 8, 1, -9, 4, 13
B. 7, 1, -9, 4, 8, 13
C. 1, -9, 4, 7, 8, 13
D. -9, 1, 4, 8, 7, 13
Show answer & explanation

Correct answer: B

Bubble sort start: 8,7,13,1,-9,4. Pass 1 bubbles largest to end: 7,8,1,-9,4,13. Pass 2 on 7,8,1,-9,4: compare 7,8 (no swap); 8,1 swap->7,1,8; 8,-9 swap->7,1,-9,8; 8,4 swap->7,1,-9,4,8; gives 7,1,-9,4,8,13.

Q29.
To sort a list having n elements, the Selection sort makes __________ number of passes through the list.
A. $n^2$
B. n
C. n - 1
D. n + 1
Show answer & explanation

Correct answer: C

Selection sort makes n-1 passes for a list of n elements.

Q30.
The first page of a website is known as ______.
A. Front page
B. Home page
C. First Page
D. Banner Page
Show answer & explanation

Correct answer: B

The first/main page of a website is called the Home page.

Q31.
Which of the following is a text file which is transferred by the website to the browser when it is browsed?
A. Web page
B. Cookies
C. Add-ons
D. Plug-ins
Show answer & explanation

Correct answer: B

Cookies are small text files transferred by a website to the browser to store information.

Q32.
Match List I with List II LIST I: A. MAN, B. Ethernet, C. Router, D. Repeater LIST II: I. It receives the information, examines it and transfers it to other network. II. It regenerates the received weak signals. III. Set of rules that governs functioning of LAN. IV. It covers larger geographical area such as town or city. Choose the correct answer from the options given below:
A. A-IV, B-I, C-III, D-II
B. A-IV, B-III, C-II, D-I
C. A-IV, B-III, C-I, D-II
D. A-I, B-II, C-IV, D-III
Show answer & explanation

Correct answer: C

MAN covers a larger geographical area like a town/city (IV); Ethernet is a set of rules governing LAN functioning (III); Router receives info, examines and transfers to another network (I); Repeater regenerates weak signals (II). So A-IV, B-III, C-I, D-II.

Q33.
Which of the following statement(s) is/are true? A. Selection operation yield horizontal subset of a relation B. Selection operation yields vertical subset of a relation. C. Union operator can work on relation with different degree. D. Intersection and cartesian product operations are not binary. E. A record is a column on a datasheet. Choose the correct answer from the options given below:
A. A only
B. B only
C. C and E only
D. D and E only
Show answer & explanation

Correct answer: A

Selection operation produces a horizontal subset (rows) of a relation (A is true). Projection gives vertical subset. Union needs same degree (C false). Intersection and cartesian product are binary (D false). A record is a row, not a column (E false).

Q34.
Before the usage of ________ table command to add a primary key, one needs to make sure that the field is ________.
A. ALTER, NOT NULL
B. Create, NOT NULL
C. Update, NOT NULL
D. Update, NULL
Show answer & explanation

Correct answer: A

ALTER TABLE is used to add a primary key to an existing table, and the field must be NOT NULL.

Q35.
Which clause amongst the following can be used along with aggregate functions?
A. Select
B. Group by
C. Where
D. Both Select and Group by
Show answer & explanation

Correct answer: D

Aggregate functions are used in the SELECT clause and are commonly applied per group using GROUP BY. So both Select and Group by can be used with aggregate functions.

Consider the following EMPLOYEE table: Emp_No, Ename, Salary, Bonus, DeptId 101 Aaliya 10000 234 D02 102 Kritika 60000 123 D01 103 Shabbir 45000 566 D01 104 Gurpreet 19000 565 D04 105 Joseph 34000 875 D03 106 Sanya 48000 695 D02 107 Vergese 15000 NULL D01 108 Nachaobi 29000 NULL D05 109 Daribha 42000 NULL D04 110 Tanya 50000 467 D05
Q36.
What will be the output of the SQL query based on above EMPLOYEE table. SELECT COUNT(*) FROM EMPLOYEE WHERE BONUS IS NULL ;
A. 2
B. 3
C. 4
D. 5
Show answer & explanation

Correct answer: B

Rows with Bonus NULL: Emp 107, 108, 109 = 3 rows. COUNT(*) = 3.

Q37.
What will be the output of the below SQL query based on above EMPLOYEE table. SELECT AVG(Salary) FROM EMPLOYEE WHERE Ename like '_anya' ;
A. 48000
B. 47000
C. 49000
D. 50000
Show answer & explanation

Correct answer: C

'_anya' matches names with exactly one char before 'anya': Sanya (48000) and Tanya (50000). AVG = (48000+50000)/2 = 49000.

Q38.
SELECT SUM(Bonus) FROM EMPLOYEE WHERE Ename LIKE '%a' AND Salary > 45000 ;
A. 1185
B. 1265
C. 1275
D. 1285
Show answer & explanation

Correct answer: D

Names ending in 'a' AND Salary>45000: Kritika (60000, bonus 123), Sanya (48000, bonus 695), Tanya (50000, bonus 467). Aaliya salary 10000 excluded. Sum=123+695+467=1285.

Q39.
SELECT MIN(Salary) FROM EMPLOYEE WHERE DeptId = 'D01' ;
A. 60000
B. 15000
C. 30000
D. 45000
Show answer & explanation

Correct answer: B

DeptId D01 employees: Kritika 60000, Shabbir 45000, Vergese 15000. MIN = 15000.

Q40.
SELECT MAX(Salary) FROM EMPLOYEE WHERE Bonus IS NOT NULL AND DeptId IN ('D01', 'D02') ;
A. 48000
B. 50000
C. 60000
D. 45000
Show answer & explanation

Correct answer: C

DeptId in D01/D02 with Bonus NOT NULL: Aaliya(D02,10000), Kritika(D01,60000), Shabbir(D01,45000), Sanya(D02,48000). Vergese D01 has NULL bonus, excluded. MAX = 60000.

Data is a collection of characters, numbers and other symbols that represents the value of some situations or variables. Structured and Unstructured are two types of data. Data storage is the process of storing the data on storage devices so that data can be retrieved later. There are various data pre-processing cycle. Store, retrieve, classify and update is a pre processing steps. RDBMS can be used to remove the certain limitations in processing the files.
Q41.
Which of the following is not a structured data?
A. Tabular data
B. Spread sheet data
C. Multimedia content
D. Inventory of kitchen
Show answer & explanation

Correct answer: C

Multimedia content (audio/video/images) is unstructured data. Tabular, spreadsheet, and inventory data are structured.

Q42.
Which of the following is not an unstructured data?
A. Webpages consist of text
B. Text documents
C. Audio/Video files
D. Bank customer details
Show answer & explanation

Correct answer: D

Bank customer details are stored in structured form (tables). Webpages, text documents and audio/video files are unstructured.

Q43.
Which of the following is not a data storage device?
A. Hard Disk Drive (HDD)
B. Tape Drive
C. Central Processing Unit (CPU)
D. Data files
Show answer & explanation

Correct answer: C

The CPU is a processing unit, not a storage device. HDD, Tape Drive store data; data files reside on storage.

Q44.
Which of the following is not a pre-processing steps in procuring the data?
A. Store
B. Retrieve
C. Update
D. Search
Show answer & explanation

Correct answer: D

Per the passage, pre-processing steps are Store, retrieve, classify and update. Search is not listed.

Q45.
Which of the following software method can be used to store and retrieve the data?
A. Python or DBMS like Mysql
B. Files
C. Processing system
D. Tables
Show answer & explanation

Correct answer: A

Software methods to store and retrieve data include Python programs or a DBMS like MySQL.

Q46.
This exception occurs wherever a local or global variable name is not defined.
A. ValueError
B. TypeError
C. OSError
D. NameError
Show answer & explanation

Correct answer: D

NameError is raised when a local or global variable name is not defined.

Q47.
Match List I with List II LIST I: A. Insertion in a queue at, B. Deletion in a queue at, C. Deletion operation, D. Insertion operation LIST II: I. FRONT, II. Enqueue, III. REAR, IV. Dequeue Choose the correct answer from the options given below:
A. A-II, B-I, C-III, D-IV
B. A-II, B-I, C-IV, D-III
C. A-III, B-IV, C-I, D-II
D. A-III, B-I, C-IV, D-II
Show answer & explanation

Correct answer: D

Insertion in a queue is at REAR (III); Deletion in a queue is at FRONT (I); Deletion operation = Dequeue (IV); Insertion operation = Enqueue (II). So A-III, B-I, C-IV, D-II.

Q48.
In search by hashing, we have size of the hash table and the size of list, then
A. Size of hash table is always smaller than size of list
B. Size of hash table always equal to size of list
C. Size of list is always greater than size of hashtable
D. Size of hash table can be greater than the size of the list
Show answer & explanation

Correct answer: D

In hashing, the hash table size can be greater than the list size to reduce collisions; it is not fixed to be smaller or equal.

Q49.
__________ sorts a given list of elements by repeatedly comparing the adjacent elements and swapping them if they are unordered.
A. Selection Sort
B. Insertion Sort
C. Bubble Sort
D. Merge Sort
Show answer & explanation

Correct answer: C

Bubble sort repeatedly compares adjacent elements and swaps them if out of order.

Q50.
Match List I with List II LIST I: A. RDBMS, B. Primary Key, C. Tuple is collection of, D. Database Schema and Constraints LIST II: I. Unique identification of tuples, II. Attribute Value, III. Store data in related table, IV. Database catalog Choose the correct answer from the options given below:
A. A-IV, B-I, C-II, D-III
B. A-III, B-I, C-II, D-IV
C. A-II, B-IV, C-III, D-I
D. A-I, B-IV, C-III, D-II
Show answer & explanation

Correct answer: B

RDBMS stores data in related tables (III); Primary Key gives unique identification of tuples (I); a Tuple is a collection of attribute values (II); Database Schema and Constraints form the database catalog (IV). So A-III, B-I, C-II, D-IV.

Q51.
Match List I with List II LIST I: A. SELECT LOWER('COMPUTER'); B. SELECT LEFT('COMPUTER', 3); C. SELECT RIGHT('COMPUTER', 4); D. SELECT MID('COMPUTER', 2,3); LIST II: I. 'COM', II. 'UTER', III. 'OMP', IV. 'computer' Choose the correct answer from the options given below:
A. A-I, B-II, C-IV, D-III
B. A-IV, B-I, C-III, D-II
C. A-IV, B-I, C-II, D-III
D. A-IV, B-II, C-I, D-III
Show answer & explanation

Correct answer: C

LOWER('COMPUTER')='computer'(IV); LEFT('COMPUTER',3)='COM'(I); RIGHT('COMPUTER',4)='UTER'(II); MID('COMPUTER',2,3) starts at position 2 length 3 ='OMP'(III). So A-IV, B-I, C-II, D-III.

Q52.
Which one in the following options is not a constraint ?
A. Primary key
B. Unique
C. Foreign key
D. Candidate key
Show answer & explanation

Correct answer: D

Candidate key is a concept/term, not a SQL constraint. Primary key, Unique, and Foreign key are constraints.

Q53.
Which SQL function will return the following output: mysql > Select ___?____ (53, 10); output __3
A. Truncate
B. ROUND
C. MOD
D. POW
Show answer & explanation

Correct answer: C

MOD(53,10) returns the remainder 53 mod 10 = 3.

Q54.
Which of the following is not a Descriptive Statistical method that can be applied to a DataFrame?
A. sum()
B. count()
C. avg()
D. mean()
Show answer & explanation

Correct answer: C

Pandas DataFrame supports sum(), count(), mean() but not avg(); the average method is mean(), so avg() is not a valid DataFrame method.

Q55.
Which of the following is not an aggregate function that can be applied to a DataFrame?
A. max()
B. std()
C. var()
D. sort()
Show answer & explanation

Correct answer: D

sort() (sort_values) reorders data and is not an aggregate function. max(), std(), var() are aggregate/statistical functions.

Q56.
Which of the following denotes a missing value in a DataFrame?
A. NULL
B. 0
C. NaN
D. -1
Show answer & explanation

Correct answer: C

In pandas, NaN (Not a Number) denotes a missing value.

Q57.
The scatter() function
A. Is a powerful method of creating scatter plots than plot() function.
B. Can create line graph
C. Can create bar graph
D. Can create pie chart
Show answer & explanation

Correct answer: A

The scatter() function is a more powerful/dedicated method of creating scatter plots than the plot() function.

Q58.
Which of the following plots makes it easy to compare two or more distributions on the same set of axes?
A. Box plot
B. Histogram
C. Frequency polygon
D. Bar chart
Show answer & explanation

Correct answer: C

A frequency polygon makes it easy to compare two or more distributions on the same set of axes since multiple polygons can be overlaid.

Q59.
Which of the following statements is used to create a histogram of 'step' type with 20 bins?
A. plt.hist(x, bins = 20, histype= "barstacked")
B. plt.hist(x, bins = 20)
C. plt.hist(x, bins =20, histype = "step")
D. plt.hist(x, bins = 20, histype = hist())
Show answer & explanation

Correct answer: C

To create a step-type histogram with 20 bins, use plt.hist(x, bins=20, histtype="step"). Option C matches (histtype="step").

Q60.
Cancer patient analysis in the Mumbai region is to be plotted. The command used to give title to X-axis as "No. of patients" in the graph is:
A. plt.show()
B. plt.plot("No. of patients")
C. plt.xlabel("No. of patients")
D. plt.title("No. of patients")
Show answer & explanation

Correct answer: C

plt.xlabel() sets the label/title of the X-axis. plt.title() sets the graph title.

Q61.
Which of the following is not a web browser?
A. Microsoft Edge
B. Windows
C. Internet Explorer
D. Google Chrome
Show answer & explanation

Correct answer: B

Windows is an operating system, not a web browser. Edge, Internet Explorer, and Chrome are browsers.

Q62.
Match List I with List II LIST I: A. Slammer, B. Microwave, C. Radiowave, D. White hats LIST II: I. Omni directional, II. Uni directional, III. Ethical hacker, IV. Virus Choose the correct answer from the options given below:
A. A-III, B-I, C-II, D-IV
B. A-IV, B-II, C-I, D-III
C. A-IV, B-I, C-II, D-III
D. A-III, B-II, C-I, D-IV
Show answer & explanation

Correct answer: B

Slammer is a virus/worm (IV); Microwave is uni-directional (II); Radiowave is omni-directional (I); White hats are ethical hackers (III). So A-IV, B-II, C-I, D-III.

Q63.
What are two advantages of using fiber-optic cabling instead of UTP (any two)? A. Lower cost B. Easier to install C. Allows longer distances D. Less affected by external signals E. Easier to terminate the cable ends. Choose the correct answer from the options given below:
A. A and B only
B. C and D only
C. A and E only
D. B and E only
Show answer & explanation

Correct answer: B

Fiber-optic allows longer transmission distances (C) and is less affected by external electromagnetic signals/interference (D). It is more expensive and harder to install/terminate.

Q64.
Anyone who uses digital technology along with internet is known as: A. Responsible citizen B. Netizen C. Good citizen D. Digital citizen Choose the correct answer from the options given below:
A. A and B only
B. C and D only
C. B and D only
D. A and D only
Show answer & explanation

Correct answer: C

A person who uses digital technology along with the internet is called a Netizen or a Digital citizen. So B and D.

Q65.
Digital foot prints are trail of data reflecting the activities performed by us online. The two types of digital footprints are: A. Tech B. Smart C. Passive D. Active Choose the correct answer from the options given below:
A. A and D only
B. B and C only
C. A, B, C and D
D. C and D only
Show answer & explanation

Correct answer: D

The two types of digital footprints are Passive and Active. So C and D.

Q66.
Choose the options which come under the category of net etiquettes A. Be Ethical B. Respect Privacy C. Be Responsible D. Be Respectful Choose the correct answer from the options given below:
A. A, B, C and D
B. A only
C. B only
D. C and D only
Show answer & explanation

Correct answer: A

Net etiquettes include being ethical, respecting privacy, being responsible and being respectful. All four (A, B, C and D).

Q67.
________ and ________ are popular free and open source software tools.
A. Matlab, Python
B. Libre Office, Mozilla Firefox
C. Adobe Acrobat, Matlab
D. MS-Office, Microsoft Windows
Show answer & explanation

Correct answer: B

LibreOffice and Mozilla Firefox are popular free and open source software (FOSS). Matlab, Adobe Acrobat, MS-Office and Windows are proprietary.

Q68.
Unsolicited commercial email is known as :
A. Malware
B. Virus
C. Spyware
D. Spam
Show answer & explanation

Correct answer: D

Unsolicited commercial/bulk email is known as spam.

Q69.
Match List I with List II LIST I: A. Doxing, B. FOSS, C. WORM, D. TROJAN HORSE LIST II: I. It is a program which is intended to carry out malicious operations, II. It is a program which copies itself across a network, III. It grants a user substantial rights and freedom, IV. Cyber bullying Choose the correct answer from the options given below:
A. A-IV, B-III, C-II, D-I
B. A-I, B-II, C-III, D-IV
C. A-IV, B-I, C-III, D-II
D. A-II, B-I, C-IV, D-III
Show answer & explanation

Correct answer: A

Doxing is a form of cyber bullying (IV); FOSS grants users substantial rights and freedom (III); WORM copies itself across a network (II); Trojan Horse carries out malicious operations (I). So A-IV, B-III, C-II, D-I.

Q70.
Creative creations of mind such as patents, trademark and copyright are called :
A. Internet Creative Rights
B. Intellectual Profit Rights
C. Intellectual Property Rights
D. Digital assets
Show answer & explanation

Correct answer: C

Creations of the mind like patents, trademarks and copyrights are protected as Intellectual Property Rights (IPR).

Consider a computer system connected with transmission medium having minimum frequency 500 kHz and maximum frequency 1500 kHz. A user wants to upload a text document at the rate of 10 (1 page = 1600 characters and each character is of 8 bits) pages per 20 seconds. Simultaneously he is also receiving the data on the system from transmission medium.
Q71.
What is the bandwidth of the transmission medium used?
A. 500 kHz
B. 1500 kHz
C. 1000 kHz
D. 2000 kHz
Show answer & explanation

Correct answer: C

Bandwidth = maximum frequency - minimum frequency = 1500 - 500 = 1000 kHz.

Q72.
Calculate the required data rate of the transmission medium.
A. 6400 bps
B. 640 kbps
C. 6400 kbps
D. 64000 bps
Show answer & explanation

Correct answer: A

Data per upload = 10 pages * 1600 chars * 8 bits = 128000 bits per 20 seconds. Data rate = 128000/20 = 6400 bps.

Q73.
Which type of data communication have been used in the present scenario?
A. Half duplex communication
B. Simplex communication
C. Duplex communication
D. Full duplex communication
Show answer & explanation

Correct answer: D

The user uploads and simultaneously receives data, i.e., sending and receiving at the same time, which is full duplex communication.

Q74.
How many number of bits the user wants to upload?
A. 200 bits
B. 16000 bits
C. 8 bits
D. 128000 bits
Show answer & explanation

Correct answer: D

10 pages * 1600 characters * 8 bits = 128000 bits.

Q75.
The capacity of a transmission medium is measured in terms of __________ and __________.
A. bits, character
B. bytes, frequency
C. Bandwidth, data transfer rate
D. Bandwidth, frequency
Show answer & explanation

Correct answer: C

The capacity of a transmission medium is measured in terms of bandwidth and data transfer rate.

Given dataframe showing the record of Temperature, Rainfall, Humidity of 5 states. State, Avg Temp (°C), Rainfall (in cm), Humidity 1 Assam 20 150 10.6 2 Delhi 30 70 7.5 3 Kerala 20 120 10.9 4 Rajasthan 35 50 5.6 5 Telangana 28 90 8.7
Q76.
Identify the correct code to remove the column Humidity from the given dataframe, statedf:
A. statedf = statedf.pop('Humidity')\nprint(statedf)
B. statedf = statedf.pop(['Humidity'], axis = 1)
C. statedf = statedf.drop(['Humidity'], axis = 0)
D. statedf = statedf.drop(['Humidity'], axis = 1)
Show answer & explanation

Correct answer: D

To remove a column, use drop() with axis=1: statedf = statedf.drop(['Humidity'], axis=1).

Q77.
Identify the correct statement from the following to display all the data of "Rajasthan" state.
A. statedf.loc[3]
B. statedf.loc['Rajasthan']
C. statedf.loc(3)
D. statedf.loc('Rajasthan')
Show answer & explanation

Correct answer: B

The index labels are state names (Assam, Delhi, ...). loc uses square brackets with label: statedf.loc['Rajasthan'].

Q78.
Name the attribute used to display a tuple showing the dimensions of statedf dataframe i.e., (5, 4), 5 rows and 4 columns respectively.
A. statedf.size
B. statedf.shape
C. statedf.ndim
D. statedf.index
Show answer & explanation

Correct answer: B

The shape attribute returns a tuple (rows, columns), e.g., (5, 4).

Q79.
________ command is used to display first five records and ______ command is used to display bottom five records of the dataframe.
A. statedf.head(5), statedf.tail(-5)
B. statedf.head(), statedf.tail(-5)
C. statedf.head(5), statedf.tail(5)
D. statedf.head(-5), statedf.tail()
Show answer & explanation

Correct answer: C

head(5) displays the first 5 records and tail(5) displays the last (bottom) 5 records.

Q80.
Give the output of the given python code: statedf.loc[:, 'Rainfall (in cm)'] > 90
[Figure in original paper — see source PDF]
A. Assam True, Delhi False, Kerala True, Rajasthan False, Telangana False
B. 1 True, 2 False, 3 True, 4 False, 5 False
C. 1 150, 3 120
D. Assam 150, Kerala 120
Show answer & explanation

Correct answer: A

The expression returns a boolean Series indexed by the state names (the dataframe index). Rainfall>90: Assam 150 True, Delhi 70 False, Kerala 120 True, Rajasthan 50 False, Telangana 90 False (90 is not >90). So option A.

Single row or scalar functions are applied on a single value and return a single value.
Q81.
Which of the following is NOT a Date Function?
A. DATE( )
B. NOW( )
C. THEN( )
D. DAY( )
Show answer & explanation

Correct answer: C

DATE(), NOW(), DAY() are SQL date/time functions. THEN() is not a date function.

Q82.
Match List I with List II LIST I: A. DataFrame.std( ), B. DataFrame.describe( ), C. DataFrame.var( ), D. DataFrame.mode( ) LIST II: I. Variance, II. Value that appears most, III. Descriptive statistical values, IV. Standard Deviation Choose the correct answer from the options given below:
A. A-IV, B-III, C-I, D-II
B. A-III, B-IV, C-II, D-I
C. A-IV, B-I, C-II, D-III
D. A-I, B-II, C-IV, D-III
Show answer & explanation

Correct answer: A

std()=Standard Deviation (IV); describe()=Descriptive statistical values (III); var()=Variance (I); mode()=value that appears most (II). So A-IV, B-III, C-I, D-II.

Q83.
The process of secret capture and analysis of network traffic by malicious users is called:
A. Snooping
B. Intrusion
C. Eavesdropping
D. Cookies
Show answer & explanation

Correct answer: C

Eavesdropping is the secret/unauthorized interception (capture and analysis) of network traffic by malicious users.

Q84.
Match List I with List II LIST I: A. Mesh topology, B. Ring topology, C. Bus topology, D. Star topology LIST II: I. Single backbone wire shared among the nodes, II. Each communicating device is connected to a central networking device, III. Each communicating device is connected with every other device, IV. Each node is connected to two other devices, one each on either side Choose the correct answer from the options given below:
A. A-IV, B-I, C-II, D-III
B. A-III, B-IV, C-I, D-II
C. A-II, B-III, C-IV, D-I
D. A-I, B-II, C-III, D-IV
Show answer & explanation

Correct answer: B

Mesh: each device connected with every other device (III); Ring: each node connected to two other devices on either side (IV); Bus: single backbone wire shared among nodes (I); Star: each device connected to a central networking device (II). So A-III, B-IV, C-I, D-II.

Q85.
The way a dataset is arranged into rows and columns is referred to as the shape of data. Following function is used to reshape and create a new DataFrame from the original one:
A. dropna( )
B. pivot( )
C. sort( )
D. merge( )
Show answer & explanation

Correct answer: B

The pivot() function reshapes data and creates a new DataFrame from the original one.

Original question paper source: National Testing Agency (NTA), CUET (UG) 2023. Reproduced for educational use. Answers & explanations by UniDrill.