Show answer & explanation
Correct answer: C
The 'X' (cross) symbol between two relations denotes the Cartesian Product, which combines every tuple of one relation with every tuple of the other.
Show answer & explanation
Correct answer: A
Union combines all tuples from both tables, removing duplicates. (Anuj, Music) appears in both so kept once. Result: (Anu, Dance), (Anuj, Music), (Prannav, Reading).
Show answer & explanation
Correct answer: C
Deptno in Employee references the primary key Deptno of Department, so it is a Foreign key, which establishes the relationship between the two tables.
Show answer & explanation
Correct answer: C
The DEFAULT constraint provides a value to be used for the column when no value is supplied during insertion.
Show answer & explanation
Correct answer: A
A composite primary key on Rno and Attdate is added after creation using ALTER TABLE ... ADD PRIMARY KEY(Rno, Attdate);
Show answer & explanation
Correct answer: A
DISTINCT eliminates duplicate rows, returning each unique record only once (without repetition).
Show answer & explanation
Correct answer: C
The LIKE operator with wildcards (% and _) is used to search for a specific pattern in a column.
Show answer & explanation
Correct answer: A
MONTH() returns the numeric month from the date. For 2010-03-05 the month is 03, i.e. 3.
Show answer & explanation
Correct answer: A
count(marks)=count non-null values (III); count(*)=count all rows (I); avg(marks)=average of non-null (II); sum(marks)=sum of marks (IV).
Show answer & explanation
Correct answer: A
AVG ignores NULL. Non-null marks: 20, 40, 30; sum=90, count=3, average=$90/3=30$.
Show answer & explanation
Correct answer: B
Intersection returns the tuples that are common to both relations.
Show answer & explanation
Correct answer: C
A valid IPv4 address has four octets each 0-255. A is a MAC address, B has 256 (invalid), D has -1 (invalid). Only 192.168.0.178 is valid.
Show answer & explanation
Correct answer: B
Correct order is try, except, else, finally: (C) try, (A) except, (D) else, (B) finally.
Show answer & explanation
Correct answer: C
Pickling (serialization) converts an in-memory object into a byte stream. De-serialization (unpickling) does the reverse.
Show answer & explanation
Correct answer: C
Binary file must be opened in 'rb' mode and read with pickle.load(filehandle). Option C does this correctly.
Show answer & explanation
Correct answer: B
Mode 'r+' opens a text file for both reading and writing. 'rw' and 'rw+' are not valid Python modes.
Show answer & explanation
Correct answer: A
Prefix (Polish) notation places the operator before its operands. Postfix is reverse Polish; infix places operator between operands.
Show answer & explanation
Correct answer: C
Evaluate: $5*7=35$; $35/5=7$; $24+7=31$.
Show answer & explanation
Correct answer: D
A stack follows LIFO (Last In First Out) and both insertion and deletion happen at one end (the top).
Show answer & explanation
Correct answer: B
Requests must be served in the order received (first-come-first-served), which is the FIFO behaviour of a Queue.
Show answer & explanation
Correct answer: B
Queue operations need isEmpty (to check for underflow), peek (to view front), and isFull (to check overflow). update is not a standard queue operation.
Show answer & explanation
Correct answer: C
Ethernet (UTP) signals attenuate beyond about 100 metres, so a repeater is needed for the longest link A to D = 110 m.
Show answer & explanation
Correct answer: C
A 48-bit MAC address has its first half (24 bits) as the OUI assigned to the manufacturer.
Show answer & explanation
Correct answer: C
First initialize first and last (B), compute mid (A), then the while loop (D), and finally print unsuccessful (C): (B),(A),(D),(C).
Show answer & explanation
Correct answer: B
Each comparison in binary search discards half of the remaining elements, so the search area is halved each pass.
Show answer & explanation
Correct answer: B
In an ascending list, if the middle element is smaller than the key, the key must lie in the right (second) half.
Show answer & explanation
Correct answer: A
Bubble sort pass 1 on 4,-9,12,30,2,6 gives -9,4,12,2,6,30 progressing through swaps. The intermediate snapshots in increasing sorted order are (A),(B),(D),(C): (A) after first swap, then (B), (D) end of pass1, (C) end of pass2.
Show answer & explanation
Correct answer: C
Time complexity expresses the amount of time an algorithm takes to run as a function of input size.
Show answer & explanation
Correct answer: B
Mean is a measure of central tendency, not a measure of variability, so within this context that statement is the incorrect/misplaced one.
Show answer & explanation
Correct answer: C
Video has no predefined tabular schema, so it is unstructured data.
Show answer & explanation
Correct answer: A
Mode is the most frequent value. 50 appears 4 times, more than any other value, so mode = 50.
Show answer & explanation
Correct answer: B
Primary key=uniquely identify tuple (III); Degree=total attributes (I); Foreign key=relate two tables (II); Constraint=restriction on data (IV).
Show answer & explanation
Correct answer: C
The set of all permissible values for a column (attribute) is its domain.
Show answer & explanation
Correct answer: A
Metadata (data about data) is stored in the Data Dictionary, which is its synonym.
Show answer & explanation
Correct answer: D
Single-row functions operate on one row at a time and return one result per row; they are also called scalar functions.
Show answer & explanation
Correct answer: C
DROP TABLE removes the table structure and data permanently. DELETE only removes rows, keeping the structure.
Show answer & explanation
Correct answer: C
MID, INSTR, SUBSTR and LENGTH all operate on strings, so all four are text (string) functions.
Show answer & explanation
Correct answer: A
Router=network device (II); Ethernet card=NIC (IV); Ring=topology (I); PAN=network type (III).
Show answer & explanation
Correct answer: C
HTML (HyperText Markup Language) is the markup language used to design web pages.
Show answer & explanation
Correct answer: B
Modem=Modulator-Demodulator (II); RJ45=8-pin connector (I); Network interface unit=Ethernet card (IV); ISP=provides internet access (III).
Show answer & explanation
Correct answer: A
Bandwidth is the range of frequencies available for transmitting data over a channel.
Show answer & explanation
Correct answer: B
$1\text{ Gbps}=1024\text{ Mbps}=1024\times1024\times1024\text{ bps}=2^{30}\text{ bps}$. So (A) and (C).
Show answer & explanation
Correct answer: C
Twisted pair cable comes in unshielded (UTP) and shielded (STP) types and is widely used in telephone lines and LANs.
Show answer & explanation
Correct answer: B
A cookie is created/edited only by the website that set it and is stored on the client's computer which acts as a host.
Show answer & explanation
Correct answer: C
Overloading a resource with illegitimate requests to deny access to authorized users is a Denial of Service (DoS) attack.
Show answer & explanation
Correct answer: D
HTTPS uses SSL/TLS for secure communication, which requires an SSL Digital Certificate.
Show answer & explanation
Correct answer: C
MID with a negative length returns an empty string, and LENGTH of an empty string is 0.
Show answer & explanation
Correct answer: A
group by pairs with having (III); mid()=text function (IV); count()=aggregate function (II); mod()=math function (I).
Show answer & explanation
Correct answer: B
NOW() returns the current date and time in the format YYYY-MM-DD HH:MM:SS.
Show answer & explanation
Correct answer: A
ROUND with -2 rounds to the nearest hundred: 9873.567 rounds to 9900.
Show answer & explanation
Correct answer: C
COUNT(SALARY) counts only non-null values. Salaries 4000, 6000, 2000 are non-null (NULL excluded), so count = 3.
Show answer & explanation
Correct answer: B
SUBSTR=extract substring (II); TRIM=remove spaces both sides (IV); INSTR=find position of substring (I); LEFT=extract left characters (III).
Show answer & explanation
Correct answer: C
Import pandas (B), create dictionary (D), create series from it (C), then print (A): (B),(D),(C),(A).
Show answer & explanation
Correct answer: D
df.tail() defaults to last 5 rows and df.tail(5) shows last 5 rows. tail(-5)/head(-5) give empty/different results, so only (C) and (D).
Show answer & explanation
Correct answer: B
A boolean comparison returns True/False for every index: 69<70 F, 80 T, 20 F, 50 F, 100 T, 70 T.
Show answer & explanation
Correct answer: A
Valid forms use axis=1 or axis='columns'. (B) uses axis=columns without quotes which is invalid. So (A), (C), (D).
Show answer & explanation
Correct answer: D
The series is named Tail; head(2) returns its first 2 records: print(tail.head(2)).
Show answer & explanation
Correct answer: A
header=False prevents column names (header row) from being written to the CSV file.
Show answer & explanation
Correct answer: C
HTTP is the HyperText Transfer Protocol, a set of rules used to retrieve linked web pages (hypertext) across the web.
Show answer & explanation
Correct answer: A
From simplest central tendency to spread: Mode, Median, Mean, Range, Standard Deviation, i.e. (A),(C),(B),(D),(E).
Show answer & explanation
Correct answer: D
The second quartile (50th percentile, Q2) is the median.
Show answer & explanation
Correct answer: C
The output concatenates the NAME strings (MEENAREENATEENASHEENA) and sums numeric columns, which happens only when text is included, i.e. default df4.sum() (equivalent to numeric_only=False). Since the output includes the string column, sum() concatenating strings is shown by C.
Show answer & explanation
Correct answer: D
pivot() rearranges/changes the structure of a DataFrame, which is called reshaping.
Show answer & explanation
Correct answer: A
Valid pandas functions are read_sql_query(), read_sql_table() and read_sql(). read_sql_query_table() does not exist. So (A),(B),(D).
Show answer & explanation
Correct answer: D
Scatter plots display the relationship/correlation between two variables, hence called correlation plots.
Show answer & explanation
Correct answer: B
The 'as plt' clause assigns an alias name to the imported module.
Show answer & explanation
Correct answer: C
plt.savefig() saves the current figure to a file.
Show answer & explanation
Correct answer: A
Error occurs (C), exception raised (B), exception caught (D), then program termination/continuation (A): (C),(B),(D),(A).
Show answer & explanation
Correct answer: C
kind accepts 'area', 'box', 'scatter' and 'line' (among others), so all four are valid.
Show answer & explanation
Correct answer: B
fill=False means the bars are not filled with colour, leaving them empty (only edges shown).
Show answer & explanation
Correct answer: D
The correct package name for pip is matplotlib: pip install matplotlib.
Show answer & explanation
Correct answer: C
JavaScript, PHP, Python and Ruby can all be used to create dynamic web pages, so all four.
Show answer & explanation
Correct answer: C
Star topology=central node (I); LAN=type of network (IV); Hub=networking device (II); VoIP=protocol (III).
Show answer & explanation
Correct answer: C
Client sends HTTP request (A), server calls application (B), program executes producing HTML (C), then HTTP response sent (D).
Show answer & explanation
Correct answer: A
Static=fixed content (II); Home page=first page (IV); Dynamic=content keeps changing (I); Web server=delivers content (III).
Show answer & explanation
Correct answer: B
Gateway, Repeater and Modem are networking devices; MAN is a type of network, not a device. So (A),(B),(D).
Show answer & explanation
Correct answer: D
The Internet is the largest WAN connecting billions of devices and millions of LANs worldwide.
Show answer & explanation
Correct answer: B
A patent is the IPR granted for inventions.
Show answer & explanation
Correct answer: D
IPR violations include Copyright Infringement, Trademark Infringement and Plagiarism. Patent itself is a right, not a violation. So (A),(C),(D).
Show answer & explanation
Correct answer: A
Cyber Appellate Tribunal=resolves cyber disputes (III); Env Protection Act 1986=punishes polluters (I); IT Act 2000=guidelines on sensitive data (IV); CPCB=e-waste handling guidelines (II).
Show answer & explanation
Correct answer: B
Ergonomics is the science of designing and arranging workplaces to fit the people who use them.
Show answer & explanation
Correct answer: A
Open in a+ (A), append data with write (C), seek to start (D), then read contents (B): (A),(C),(D),(B).
Show answer & explanation
Correct answer: B
Load string into deque (A), remove characters from both ends (B), compare them (C), then decide palindrome (D): (A),(B),(C),(D).
Show answer & explanation
Correct answer: B
Cable broadband covers a city-wide area, an example of a MAN (Metropolitan Area Network).
Show answer & explanation
Correct answer: A
The trail of data left behind from online activity is called a digital footprint.
Original question paper source: National Testing Agency (NTA), CUET (UG) 2025. Reproduced for educational use. Answers & explanations by UniDrill.