Q. Which of the following is a characteristic of a stack?
A.
FIFO
B.
LIFO
C.
Sorted order
D.
Random access
Show solution
Solution
A stack operates on a Last In, First Out (LIFO) principle, meaning the last element added is the first one to be removed.
Correct Answer:
B
— LIFO
Learn More →
Q. Which of the following is a characteristic of arrays?
A.
Dynamic size
B.
Random access
C.
Non-contiguous memory allocation
D.
No fixed size
Show solution
Solution
Arrays allow random access to elements using indices, which is a key characteristic.
Correct Answer:
B
— Random access
Learn More →
Q. Which of the following is a characteristic of AVL trees?
A.
They can have a maximum height of log(n)
B.
They allow duplicate values
C.
They are always complete binary trees
D.
They require less memory than Red-Black trees
Show solution
Solution
AVL trees maintain a height of log(n) for n nodes, ensuring efficient operations.
Correct Answer:
A
— They can have a maximum height of log(n)
Learn More →
Q. Which of the following is a characteristic of BFS?
A.
Uses a stack
B.
Uses a queue
C.
Can find the longest path
D.
Is recursive by nature
Show solution
Solution
BFS uses a queue to explore nodes level by level.
Correct Answer:
B
— Uses a queue
Learn More →
Q. Which of the following is a characteristic of Depth-First Search (DFS)?
A.
Uses a queue
B.
Can be implemented using recursion
C.
Always finds the shortest path
D.
Visits nodes level by level
Show solution
Solution
DFS can be implemented using recursion, which allows it to explore as far as possible along each branch before backtracking.
Correct Answer:
B
— Can be implemented using recursion
Learn More →
Q. Which of the following is a characteristic of Dijkstra's algorithm?
A.
It uses depth-first search.
B.
It guarantees the shortest path in all cases.
C.
It can be used for both directed and undirected graphs.
D.
It requires all edge weights to be the same.
Show solution
Solution
Dijkstra's algorithm can be used for both directed and undirected graphs, provided that all edge weights are non-negative.
Correct Answer:
C
— It can be used for both directed and undirected graphs.
Learn More →
Q. Which of the following is a characteristic of dynamic programming?
A.
It always uses recursion
B.
It requires a greedy approach
C.
It stores results of subproblems
D.
It is only applicable to optimization problems
Show solution
Solution
Dynamic programming is characterized by storing the results of subproblems to avoid redundant calculations, which improves efficiency.
Correct Answer:
C
— It stores results of subproblems
Learn More →
Q. Which of the following is a characteristic of fiber optic cables?
A.
Susceptible to electromagnetic interference
B.
Higher bandwidth than copper cables
C.
Shorter transmission distances
D.
Lower installation costs
Show solution
Solution
Fiber optic cables have a higher bandwidth than copper cables, allowing for faster data transmission over longer distances.
Correct Answer:
B
— Higher bandwidth than copper cables
Learn More →
Q. Which of the following is a characteristic of Heap Sort?
A.
It is a stable sort
B.
It is an in-place sort
C.
It is a recursive sort
D.
It requires additional memory
Show solution
Solution
Heap Sort is an in-place sorting algorithm, meaning it does not require additional storage proportional to the input size.
Correct Answer:
B
— It is an in-place sort
Learn More →
Q. Which of the following is a characteristic of hierarchical clustering?
A.
It requires the number of clusters to be specified in advance
B.
It can produce a dendrogram to visualize the clustering process
C.
It is always faster than K-means
D.
It only works with numerical data
Show solution
Solution
Hierarchical clustering can produce a dendrogram, which is a tree-like diagram that shows the arrangement of the clusters.
Correct Answer:
B
— It can produce a dendrogram to visualize the clustering process
Learn More →
Q. Which of the following is a characteristic of HTTP/2 compared to HTTP/1.1?
A.
Text-based protocol
B.
Single request-response per connection
C.
Multiplexing of streams
D.
No header compression
Show solution
Solution
HTTP/2 introduces multiplexing of streams, allowing multiple requests and responses to be sent simultaneously over a single connection.
Correct Answer:
C
— Multiplexing of streams
Learn More →
Q. Which of the following is a characteristic of HTTP/2?
A.
Text-based protocol
B.
Multiplexing
C.
Single request-response
D.
No header compression
Show solution
Solution
HTTP/2 introduces multiplexing, allowing multiple requests and responses to be sent simultaneously over a single connection.
Correct Answer:
B
— Multiplexing
Learn More →
Q. Which of the following is a characteristic of HTTP?
A.
Connection-oriented
B.
Stateful
C.
Stateless
D.
Reliable
Show solution
Solution
HTTP is a stateless protocol, meaning each request from a client to a server is treated as an independent transaction.
Correct Answer:
C
— Stateless
Learn More →
Q. Which of the following is a characteristic of K-means clustering?
A.
It can produce overlapping clusters
B.
It is deterministic and produces the same result every time
C.
It can handle noise and outliers effectively
D.
It partitions data into non-overlapping clusters
Show solution
Solution
K-means clustering partitions data into non-overlapping clusters, assigning each data point to the nearest centroid.
Correct Answer:
D
— It partitions data into non-overlapping clusters
Learn More →
Q. Which of the following is a characteristic of LL(1) parsing?
A.
It uses a stack for parsing
B.
It can handle left recursion
C.
It requires backtracking
D.
It is a top-down parsing method
Show solution
Solution
LL(1) parsing is a top-down parsing method that does not require backtracking and cannot handle left recursion.
Correct Answer:
D
— It is a top-down parsing method
Learn More →
Q. Which of the following is a characteristic of Merge Sort?
A.
In-place sorting
B.
Not stable
C.
Divides the array into halves
D.
Uses a single pivot
Show solution
Solution
Merge Sort divides the array into halves recursively before merging them back together.
Correct Answer:
C
— Divides the array into halves
Learn More →
Q. Which of the following is a characteristic of neural networks?
A.
They require structured data only
B.
They can learn complex patterns through layers
C.
They are only used for classification tasks
D.
They do not require any training data
Show solution
Solution
Neural networks can learn complex patterns through multiple layers of interconnected nodes, making them versatile.
Correct Answer:
B
— They can learn complex patterns through layers
Learn More →
Q. Which of the following is a characteristic of Quick Sort?
A.
Always stable
B.
In-place sorting
C.
Worst-case O(n log n)
D.
Uses extra space
Show solution
Solution
Quick Sort is an in-place sorting algorithm.
Correct Answer:
B
— In-place sorting
Learn More →
Q. Which of the following is a characteristic of Red-Black Trees?
A.
Every node is either red or black
B.
The root must be red
C.
All leaves are black
D.
Red nodes can have red children
Show solution
Solution
In Red-Black Trees, every node is colored either red or black, and there are specific properties that maintain balance, including that no two red nodes can be adjacent.
Correct Answer:
A
— Every node is either red or black
Learn More →
Q. Which of the following is a characteristic of SVM?
A.
It can only be used for binary classification
B.
It is sensitive to outliers
C.
It can handle multi-class classification using one-vs-one or one-vs-all strategies
D.
It requires a large amount of labeled data
Show solution
Solution
SVM can handle multi-class classification problems using strategies like one-vs-one or one-vs-all.
Correct Answer:
C
— It can handle multi-class classification using one-vs-one or one-vs-all strategies
Learn More →
Q. Which of the following is a characteristic of TCP?
A.
Connectionless protocol
B.
Unreliable data transfer
C.
Provides error recovery
D.
Faster than UDP
Show solution
Solution
TCP (Transmission Control Protocol) is a connection-oriented protocol that provides reliable data transfer and error recovery.
Correct Answer:
C
— Provides error recovery
Learn More →
Q. Which of the following is a characteristic of the HTTP protocol?
A.
Connection-oriented
B.
Stateful
C.
Stateless
D.
Reliable
Show solution
Solution
HTTP is a stateless protocol, meaning each request from a client to a server is treated as an independent transaction.
Correct Answer:
C
— Stateless
Learn More →
Q. Which of the following is a characteristic of the Merge Sort algorithm?
A.
In-place sorting
B.
Not stable
C.
Divides the array into halves
D.
Uses a single loop
Show solution
Solution
Merge Sort divides the array into halves recursively until it reaches individual elements, then merges them back together.
Correct Answer:
C
— Divides the array into halves
Learn More →
Q. Which of the following is a characteristic of the OSI model?
A.
It is a protocol suite.
B.
It has 5 layers.
C.
It is a theoretical framework.
D.
It defines hardware specifications.
Show solution
Solution
The OSI model is a theoretical framework that standardizes the functions of a telecommunication or computing system into seven abstraction layers.
Correct Answer:
C
— It is a theoretical framework.
Learn More →
Q. Which of the following is a characteristic of the Quick Sort algorithm?
A.
It uses a pivot element
B.
It is always stable
C.
It requires O(n^2) space
D.
It is a non-recursive algorithm
Show solution
Solution
Quick Sort uses a pivot element to partition the array into subarrays.
Correct Answer:
A
— It uses a pivot element
Learn More →
Q. Which of the following is a characteristic of the TCP protocol?
A.
Connectionless
B.
Unreliable
C.
Ordered delivery
D.
No error checking
Show solution
Solution
TCP (Transmission Control Protocol) is a connection-oriented protocol that ensures ordered delivery of packets.
Correct Answer:
C
— Ordered delivery
Learn More →
Q. Which of the following is a characteristic of unsupervised learning in neural networks?
A.
Requires labeled data
B.
Focuses on classification tasks
C.
Identifies patterns without labels
D.
Optimizes for accuracy
Show solution
Solution
Unsupervised learning aims to find hidden patterns or intrinsic structures in input data without the need for labeled outputs.
Correct Answer:
C
— Identifies patterns without labels
Learn More →
Q. Which of the following is a Class C IP address?
A.
192.168.1.1
B.
10.0.0.1
C.
172.16.0.1
D.
255.255.255.0
Show solution
Solution
192.168.1.1 is a Class C IP address, which ranges from 192.0.0.0 to 223.255.255.255.
Correct Answer:
A
— 192.168.1.1
Learn More →
Q. Which of the following is a classification problem in supervised learning?
A.
Predicting house prices
B.
Classifying emails as spam or not spam
C.
Forecasting sales revenue
D.
Estimating customer lifetime value
Show solution
Solution
Classifying emails as spam or not spam is a classification problem, as it involves categorizing data into discrete classes.
Correct Answer:
B
— Classifying emails as spam or not spam
Learn More →
Q. Which of the following is a common activation function used in CNNs?
A.
Sigmoid
B.
ReLU
C.
Tanh
D.
Softmax
Show solution
Solution
ReLU (Rectified Linear Unit) is a common activation function used in CNNs due to its simplicity and effectiveness in training deep networks.
Correct Answer:
B
— ReLU
Learn More →
Showing 2521 to 2550 of 3237 (108 Pages)