- Home
- MCQs by exam
- NTS
NTS MCQs · Page 136
5,604 multiple choice questions typical of the NTS exam, with answers and explanations. Switch on practice mode to test yourself first.
-
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
-
A
A message queue that buffers incoming requests
-
B
A relational database that stores machine images
-
C
A hypervisor that partitions hardware resources
Correct answer
-
D
A content delivery network at the network edge
-
A
Rapid elasticity
Correct answer
-
B
Measured service
-
C
Broad network access
-
D
On-demand self-service
-
A
The end user's device and browser configuration
-
B
The operating system and runtime beneath deployed code
Correct answer
-
C
Only the physical network cabling and power
-
D
The customer's application source code and business logic
-
A
Virtual machines that the customer patches and configures
-
B
A runtime platform on which customers deploy and scale their own code
-
C
A private data centre leased from a hardware vendor
-
D
A complete application used over the network, managed by the provider
Correct answer
-
A
Platform as a Service, offering a managed runtime
-
B
Function as a Service, offering event-driven code
-
C
Infrastructure as a Service, offering raw virtual hardware
Correct answer
-
D
Software as a Service, offering complete finished applications
-
A
Marks x as const to prevent further modification
-
B
Deallocates x and returns its old storage
-
C
Casts x to an rvalue reference so it can be moved from
Correct answer
-
D
Transfers the bits of x immediately into the target object
-
A
Through a hash table keyed on the mangled function name
-
B
Through a per-object vptr into the class's vtable
Correct answer
-
C
By scanning the inheritance tree on every call
-
D
By storing the function body inside each object