- Home
- MCQs by exam
- PPSC IT
PPSC IT MCQs · Page 2
577 multiple choice questions typical of the PPSC IT exam, with answers and explanations. Switch on practice mode to test yourself first.
-
A
It applies weak regularisation, allowing the coefficients to grow freely
-
B
It disables regularisation entirely, matching unpenalised maximum likelihood
-
C
It caps the number of solver iterations, so the fit stops early in training
-
D
It applies strong regularisation, shrinking the coefficients toward zero
Correct answer
-
A
Columns prefixed with x_ and y_, aligned on the shared index labels
-
B
A dictionary of the two frames keyed by x and y instead of a frame
-
C
A MultiIndex whose outer level records which frame each row came from
Correct answer
-
D
A new column named keys holding x or y for each contributing row of both
-
A
Both must share a MultiIndex, since asof merges only on index keys
-
B
Both must contain no duplicate keys, because asof performs an inner join
-
C
Both must be sorted by the key column, which has to hold ordered data
Correct answer
-
D
Both must have identical dtypes for every shared column in the frames
-
A
It shifts the values one row down and leaves the index labels untouched
-
B
It resamples the series to daily frequency before shifting the values
-
C
It fills the vacated rows with the previous value instead of with NaN
-
D
It shifts the index labels by a day, keeping values with their labels
Correct answer
-
A
A running count within its own group, starting again at zero per group
Correct answer
-
B
A running count across the whole frame, ignoring the group boundaries
-
C
The total number of rows in its group, broadcast back to every member
-
D
A cumulative sum of those counts, so the last row holds the group size
-
A
NaN entries are replaced by whatever the function happens to return for a NaN
-
B
NaN entries pass through untouched instead of being sent to the function
Correct answer
-
C
NaN entries raise an error rather than being silently forwarded to func
-
D
The mapping dictionary's NaN key is used, overriding any default value
-
A
The interval from 0 up to 10, because right=False moves the closed edge
-
B
The interval from 10 up to 20, because right=False makes bins left-closed
Correct answer
-
C
The interval from 0 up to 10, since the default includes the right edge
-
D
A missing category, because the value 10 sits exactly on a bin boundary point
-
A
All three 9 values, because ties are always retained by nlargest
-
B
Two 9 values, chosen by their index labels rather than by position
-
C
Three rows followed by a truncation warning from pandas about ties
-
D
Two of the tied 9 values, ordered by their position in the Series
Correct answer
-
A
where keeps values where the condition holds; mask replaces them there
Correct answer
-
B
where replaces values where the condition holds; mask keeps them
-
C
where drops the rows failing the condition; mask keeps them and fills in
-
D
The two are aliases, and only their argument order differs from each other
-
A
The original shape, with the missing values dropped by the round trip
-
B
A transposed frame, because unstack reverses the axes rather than stack
-
C
A frame with one extra level, since stack keeps every level intact
-
D
The original shape, with the same missing values still in place there
Correct answer
-
A
The frame sorted by the year level, keeping only the first matching rows
-
B
The year level reset into an ordinary column of the same DataFrame
-
C
A grouped object that aggregates the values for 2021 by the other index level
-
D
A cross-section at one index level, with that level dropped from the result
Correct answer
-
A
NaN in the extracted column, because a non-match yields a missing value
Correct answer
-
B
An empty string, because extract returns the unmatched part of the input
-
C
The original value unchanged, since extract only rewrites matching rows
-
D
An error, because extract requires every value to match the pattern
-
A
It splits each string on commas into separate columns, one per element
-
B
It flattens the whole column into a single Series of concatenated list values
-
C
It expands the lists into new columns named tags_0, tags_1 and so on
-
D
It gives each list element its own row, repeating the other column values
Correct answer
-
A
tz_convert on the index, because it attaches a zone to a naive index
-
B
astype to a datetime64 value with the UTC unit, which attaches the zone
-
C
tz_localize(None), which labels the index as UTC without adding a zone
-
D
tz_localize on the index, because tz_convert needs an aware index first
Correct answer
-
A
Calling agg twice, since the second call renames the resulting columns
-
B
Named aggregation, with keywords mapping each name to a column and func
Correct answer
-
C
Passing a dictionary of column names to functions, then renaming afterwards
-
D
Passing a list of function names, which yields already-named columns
-
A
86400 seconds, because the distribution default takes precedence always
-
B
0 seconds, because the minimum TTL allows revalidation on every request
-
C
300 seconds, but only when the viewer sends no conditional headers
-
D
300 seconds, because the origin header overrides the default TTL value
Correct answer
-
A
It shortens the total retry window, reducing the cost of each failed call
-
B
It guarantees that a retry will succeed within a bounded number of tries
-
C
It converts a non-idempotent operation into a safely repeatable one
-
D
It spreads retries so that clients do not retry in synchronised bursts
Correct answer
-
A
1 MB per second or 1,000 records per second, whichever limit is reached
Correct answer
-
B
2 MB per second or 1,000 records per second, whichever limit is reached
-
C
1 MB per second or 10,000 records per second, whichever limit is reached
-
D
5 MB per second or 1,000 records per second, whichever limit is reached
-
A
A latency increase above the threshold set in the routing policy
-
B
The TTL of the primary record expiring without a refresh from the zone
-
C
The health check on the primary record failing its configured checks
Correct answer
-
D
The primary record being deleted from the hosted zone by an operator
-
A
Each snapshot copies all blocks, but later ones compress more tightly
-
B
The first copies all used blocks; later ones store only changed blocks
Correct answer
-
C
Both copy all 100 GB every time, and the service deduplicates afterwards
-
D
The first is incremental, and a full copy is taken only on the tenth one
-
A
A NAT gateway inside the private subnet with an elastic IP attached to it
-
B
A VPC endpoint for the internet that proxies every outbound HTTPS request
-
C
A NAT gateway in a public subnet, plus a route in the private route table
Correct answer
-
D
An internet gateway attached to the private subnet's own route table
-
A
Yes, but only if all three VPCs use non-overlapping CIDR ranges
-
B
No, unless a shared transit gateway attachment joins all three peers
-
C
No, because VPC peering is non-transitive and needs a direct peering
Correct answer
-
D
Yes, because B forwards the traffic when its route tables say so
-
A
They may be delivered in any order but never more than once at all
-
B
They are ordered only if a deduplication ID is also supplied for each
-
C
They are ordered across all groups, since the queue is first-in first-out
-
D
They are delivered strictly in order, one at a time within that group
Correct answer
-
A
60 seconds, which reduces empty responses and request charges
-
B
20 seconds, but this applies only to FIFO queues and not standard ones
-
C
20 seconds, which reduces empty responses and request charges
Correct answer
-
D
10 seconds, which reduces empty responses and request charges
-
A
A 502 error, because Lambda rejects runs longer than 30 seconds
-
B
A 504 only if reserved concurrency has been configured on the function
-
C
A 504 timeout, because the integration timeout is capped at 29 seconds
Correct answer
-
D
A 200 response after 40 seconds, since the gateway waits for the backend