- Home
- MCQs by exam
- PPSC IT
PPSC IT MCQs · Page 14
577 multiple choice questions typical of the PPSC IT exam, with answers and explanations. Switch on practice mode to test yourself first.
-
A
agg returns a Series while transform returns a scalar
-
B
transform only works on datetime columns
-
C
transform broadcasts group results back to every original row
Correct answer
-
D
transform is faster because it skips the grouping step entirely
-
A
A long-format frame holding exactly one row for every original observation
-
B
A copy of the DataFrame sorted by its index
-
C
A frame containing only the numeric columns
-
D
A cross-tabulation with aggregated values at row and column intersections
Correct answer
-
A
The unique values without any counts attached
-
B
The number of NaN entries in the column only
-
C
Counts per distinct value, sorted most frequent first
Correct answer
-
D
Counts per distinct value, sorted in alphabetical order
-
A
Sorting a DataFrame with sort_values in place
-
B
Assigning through a chained index such as df[df.a > 0]["b"]
Correct answer
-
C
Calling dropna on a DataFrame that holds NaN values
-
D
Reading a column with df["a"] and printing its dtype attribute
-
A
Both are identical when applied to any DataFrame or Series object
-
B
map only accepts NumPy ufuncs, never functions
-
C
map transforms each element; apply works row or column wise
Correct answer
-
D
map works row wise; apply transforms each element
-
A
concat removes duplicate rows while merging keeps them
-
B
merge joins on shared keys; concat stacks along an axis
Correct answer
-
C
merge stacks along an axis; concat joins on shared keys
-
D
merge only works on datetime indexes
-
A
Sales summed across all columns grouped by city
-
B
Total sales per distinct city value
Correct answer
-
C
Overall sales total ignoring the city column
-
D
The row count in each city group
-
A
Both address the row whose label equals 2
-
B
loc works only on columns, iloc only on rows
-
C
loc uses the index label 2; iloc uses position 2
Correct answer
-
D
loc uses position 2; iloc uses the index label 2
-
A
len(df)
Correct answer
-
B
df.size
-
C
df.columns
-
D
df.ndim
-
A
Count, mean, standard deviation, min, quartiles and max
Correct answer
-
B
Count, mode and frequency for each distinct value present
-
C
Correlation coefficients between all column pairs
-
D
The first five rows sorted by each column
-
A
Drops columns containing any missing value
-
B
Fills missing values with zero
-
C
Reports the count of missing values only
-
D
Drops rows containing any missing value
Correct answer
-
A
A NumPy array holding the column values
-
B
The column's dtype object
-
C
A Series holding that single column
Correct answer
-
D
A DataFrame with one column
-
A
Five randomly sampled rows
-
B
A summary of each column's dtype
-
C
The first five rows of the DataFrame
Correct answer
-
D
The first five columns of the DataFrame
-
A
The column names as an Index object
-
B
(200, 6), a tuple of rows then columns
Correct answer
-
C
(6, 200), a tuple of columns then rows
-
D
1200, the total number of values stored
-
A
df.order_by('marks', ascending=False)
-
B
df.rank_values('marks', ascending=False)
-
C
df.sort_values('marks', ascending=False)
Correct answer
-
D
df.sort_index('marks', ascending=False)
-
A
Latency or throughput, not both
-
B
Replication or sharding, not both
-
C
Consistency or availability, not both
Correct answer
-
D
Durability or partitioning tolerance, not both
-
A
They remove failing instances from the traffic rotation
Correct answer
-
B
They encrypt traffic between the load balancer and its clients
-
C
They compress responses before sending them onward
-
D
They permanently increase the capacity of the pool
-
A
It keeps a warm server per user to avoid cold starts
-
B
It charges a flat monthly fee regardless of usage
-
C
It bills per invocation and scales to zero when idle
Correct answer
-
D
It bills per reserved virtual machine hour
-
A
Maintaining the provider's data centre power systems
-
B
Securing the physical perimeter of the facility
-
C
Securing their data, identities and access policies
Correct answer
-
D
Patching the physical host hypervisor firmware
-
A
It upgrades the user's local internet connection
-
B
It caches content on edge servers near the users
Correct answer
-
C
It compresses the origin database on every request
-
D
It routes all traffic through a single central hub
-
A
To back up virtual machine disks on a schedule
-
B
To add or remove instances automatically against a metric
Correct answer
-
C
To encrypt data at rest inside managed databases
-
D
To distribute traffic evenly across a fixed pool of servers
-
A
Object storage addresses whole objects by key; block storage exposes volumes
Correct answer
-
B
Object storage exposes raw block volumes; block storage addresses whole objects
-
C
Object storage can only be mounted by one server at a time
-
D
Block storage is always accessed over HTTPS with a REST API
-
A
Horizontal adds more machines; vertical enlarges one machine
Correct answer
-
B
Horizontal enlarges one machine; vertical adds more machines
-
C
Horizontal only applies to storage; vertical only to CPUs
-
D
Horizontal requires downtime; vertical never does
-
A
A software-defined network spanning all regions
-
B
One or more isolated data centres within a region
Correct answer
-
C
A single virtual machine dedicated to one customer
-
D
A billing unit for outbound internet traffic
-
A
Resources are shared by many unrelated tenants by design
-
B
Resources serve a single organisation, whether on-premises or hosted
Correct answer
-
C
Resources are always hosted on hardware inside the customer's own data centre
-
D
Resources are free to use because no provider is involved