Q. What is the main advantage of using K-means clustering?
A.
It can find non-linear relationships
B.
It is easy to implement and computationally efficient
C.
It does not require any assumptions about the data distribution
D.
It can handle large datasets without any limitations
Show solution
Solution
The main advantage of K-means clustering is its simplicity and computational efficiency, making it easy to implement for large datasets.
Correct Answer:
B
— It is easy to implement and computationally efficient
Learn More →
Q. What is the main advantage of using neural networks?
A.
They require less data than traditional algorithms
B.
They can model complex relationships in data
C.
They are easier to interpret
D.
They are faster to train
Show solution
Solution
Neural networks can model complex relationships in data due to their multiple layers and non-linear activation functions.
Correct Answer:
B
— They can model complex relationships in data
Learn More →
Q. What is the main advantage of using pre-trained embeddings?
A.
They require no training
B.
They are always more accurate
C.
They save computational resources and time
D.
They can only be used for specific tasks
Show solution
Solution
Pre-trained embeddings save computational resources and time as they leverage knowledge from large datasets.
Correct Answer:
C
— They save computational resources and time
Learn More →
Q. What is the main advantage of using Red-Black trees in applications?
A.
They are easier to implement than AVL trees
B.
They guarantee faster search times
C.
They provide a good balance between insertion and deletion times
D.
They require less memory
Show solution
Solution
The main advantage of using Red-Black trees is that they provide a good balance between insertion and deletion times, making them efficient for dynamic datasets.
Correct Answer:
C
— They provide a good balance between insertion and deletion times
Learn More →
Q. What is the main advantage of using Red-Black trees over AVL trees?
A.
Faster search times.
B.
Less strict balancing, leading to faster insertions and deletions.
C.
Easier implementation.
D.
More memory usage.
Show solution
Solution
Red-Black trees allow for less strict balancing compared to AVL trees, which can lead to faster insertions and deletions.
Correct Answer:
B
— Less strict balancing, leading to faster insertions and deletions.
Learn More →
Q. What is the main advantage of using SVM for classification tasks?
A.
It is computationally inexpensive
B.
It can handle non-linear relationships
C.
It requires less data for training
D.
It is easy to interpret
Show solution
Solution
SVM can effectively handle non-linear relationships through the use of kernel functions, making it versatile for various datasets.
Correct Answer:
B
— It can handle non-linear relationships
Learn More →
Q. What is the main advantage of using SVM over other classification algorithms?
A.
Simplicity in implementation
B.
Ability to handle large datasets
C.
Robustness to overfitting in high-dimensional spaces
D.
Faster training times
Show solution
Solution
SVM is particularly robust to overfitting in high-dimensional spaces due to its margin maximization approach.
Correct Answer:
C
— Robustness to overfitting in high-dimensional spaces
Learn More →
Q. What is the main advantage of using syntax-directed translation?
A.
It simplifies the parsing process
B.
It allows for easy integration of semantic analysis
C.
It eliminates the need for an intermediate representation
D.
It speeds up the lexical analysis phase
Show solution
Solution
The main advantage of using syntax-directed translation is that it allows for easy integration of semantic analysis.
Correct Answer:
B
— It allows for easy integration of semantic analysis
Learn More →
Q. What is the main advantage of using the F1 Score over accuracy?
A.
It considers both precision and recall
B.
It is easier to interpret
C.
It is always higher than accuracy
D.
It is less sensitive to class imbalance
Show solution
Solution
The F1 Score balances precision and recall, making it a better metric than accuracy in cases where class distribution is uneven.
Correct Answer:
A
— It considers both precision and recall
Learn More →
Q. What is the main application of AVL trees in computer science?
A.
Database indexing
B.
Memory management
C.
Network routing
D.
File compression
Show solution
Solution
AVL trees are commonly used in database indexing due to their efficient search, insert, and delete operations.
Correct Answer:
A
— Database indexing
Learn More →
Q. What is the main application of Dijkstra's algorithm in real-world scenarios?
A.
Finding the maximum flow in a network
B.
Routing in GPS systems
C.
Sorting data
D.
Searching for an item in a database
Show solution
Solution
Dijkstra's algorithm is widely used in GPS systems for routing to find the shortest path between locations.
Correct Answer:
B
— Routing in GPS systems
Learn More →
Q. What is the main assumption of linear regression regarding the relationship between the independent and dependent variables?
A.
The relationship is non-linear
B.
The relationship is linear
C.
The relationship is exponential
D.
The relationship is logarithmic
Show solution
Solution
Linear regression assumes that there is a linear relationship between the independent and dependent variables.
Correct Answer:
B
— The relationship is linear
Learn More →
Q. What is the main benefit of using a model registry in deployment?
A.
To store raw data
B.
To manage model versions and metadata
C.
To visualize model performance
D.
To automate data collection
Show solution
Solution
A model registry helps manage model versions and associated metadata, facilitating better tracking and governance of deployed models.
Correct Answer:
B
— To manage model versions and metadata
Learn More →
Q. What is the main benefit of using Variable Length Subnet Masking (VLSM)?
A.
Reduces the number of subnets
B.
Allows for more efficient use of IP addresses
C.
Simplifies routing tables
D.
Increases broadcast domains
Show solution
Solution
VLSM allows for subnets of different sizes, enabling more efficient use of IP addresses based on the needs of each subnet.
Correct Answer:
B
— Allows for more efficient use of IP addresses
Learn More →
Q. What is the main challenge of optimizing code for different architectures?
A.
Different programming languages
B.
Varying instruction sets and performance characteristics
C.
Inconsistent coding standards
D.
Lack of documentation
Show solution
Solution
The main challenge of optimizing code for different architectures is the varying instruction sets and performance characteristics.
Correct Answer:
B
— Varying instruction sets and performance characteristics
Learn More →
Q. What is the main challenge when using K-means clustering on high-dimensional data?
A.
Curse of dimensionality
B.
Inability to handle categorical data
C.
Difficulty in initializing centroids
D.
Slow convergence
Show solution
Solution
The curse of dimensionality makes it difficult for K-means to find meaningful clusters as the distance between points becomes less informative in high dimensions.
Correct Answer:
A
— Curse of dimensionality
Learn More →
Q. What is the main characteristic of a binary tree?
A.
Each node has at most two children.
B.
Each node can have any number of children.
C.
All nodes must have two children.
D.
It must be balanced.
Show solution
Solution
The main characteristic of a binary tree is that each node has at most two children.
Correct Answer:
A
— Each node has at most two children.
Learn More →
Q. What is the main characteristic of a problem that can be solved using dynamic programming?
A.
It can be solved in linear time
B.
It has optimal substructure
C.
It requires sorting
D.
It can be solved using a greedy approach
Show solution
Solution
A problem that can be solved using dynamic programming must have optimal substructure, meaning the optimal solution can be constructed from optimal solutions of its subproblems.
Correct Answer:
B
— It has optimal substructure
Learn More →
Q. What is the main characteristic of LL parsing?
A.
It uses a top-down approach.
B.
It uses a bottom-up approach.
C.
It requires left recursion.
D.
It is non-deterministic.
Show solution
Solution
LL parsing is a top-down parsing technique that processes the input from left to right and constructs a leftmost derivation of the sentence.
Correct Answer:
A
— It uses a top-down approach.
Learn More →
Q. What is the main characteristic of problems suitable for dynamic programming?
A.
They can be solved in linear time
B.
They can be divided into smaller subproblems
C.
They require sorting of data
D.
They have unique solutions
Show solution
Solution
Problems suitable for dynamic programming can be divided into smaller subproblems that can be solved independently and combined to form a solution.
Correct Answer:
B
— They can be divided into smaller subproblems
Learn More →
Q. What is the main characteristic of problems that can be solved using dynamic programming?
A.
Optimal substructure
B.
Greedy choice property
C.
Linear time complexity
D.
Constant space complexity
Show solution
Solution
The main characteristic of problems that can be solved using dynamic programming is the optimal substructure, meaning that the optimal solution can be constructed from optimal solutions of its subproblems.
Correct Answer:
A
— Optimal substructure
Learn More →
Q. What is the main criterion for determining the optimal number of clusters in K-means?
A.
Silhouette score
B.
Elbow method
C.
Both A and B
D.
None of the above
Show solution
Solution
Both the Silhouette score and the Elbow method are commonly used criteria for determining the optimal number of clusters in K-means clustering.
Correct Answer:
C
— Both A and B
Learn More →
Q. What is the main criterion used to split nodes in a decision tree?
A.
Mean Squared Error
B.
Entropy or Gini Impurity
C.
Cross-Entropy Loss
D.
R-squared Value
Show solution
Solution
Decision trees commonly use criteria like Entropy or Gini Impurity to determine the best feature for splitting nodes.
Correct Answer:
B
— Entropy or Gini Impurity
Learn More →
Q. What is the main difference between a binary tree and a binary search tree?
A.
Binary trees can have duplicate values, binary search trees cannot
B.
Binary search trees are always balanced, binary trees are not
C.
Binary search trees have a specific ordering property, binary trees do not
D.
There is no difference
Show solution
Solution
A binary search tree has the property that for any node, all values in the left subtree are less and all values in the right subtree are greater.
Correct Answer:
C
— Binary search trees have a specific ordering property, binary trees do not
Learn More →
Q. What is the main difference between a stack and a queue?
A.
Stack is LIFO, Queue is FIFO
B.
Stack is FIFO, Queue is LIFO
C.
Both are LIFO
D.
Both are FIFO
Show solution
Solution
The main difference is that a stack operates in a Last In First Out (LIFO) manner, while a queue operates in a First In First Out (FIFO) manner.
Correct Answer:
A
— Stack is LIFO, Queue is FIFO
Learn More →
Q. What is the main difference between agglomerative and divisive hierarchical clustering?
A.
Agglomerative starts with individual points, while divisive starts with one cluster
B.
Agglomerative is faster than divisive
C.
Divisive clustering is more commonly used than agglomerative
D.
There is no difference; they are the same
Show solution
Solution
Agglomerative clustering begins with individual data points and merges them into clusters, while divisive clustering starts with one cluster and splits it into smaller clusters.
Correct Answer:
A
— Agglomerative starts with individual points, while divisive starts with one cluster
Learn More →
Q. What is the main difference between BFS and DFS?
A.
BFS uses a stack, DFS uses a queue
B.
BFS explores neighbors level by level, DFS explores as far as possible along a branch
C.
BFS is faster than DFS
D.
DFS is used for unweighted graphs only
Show solution
Solution
The main difference is that BFS explores neighbors level by level, while DFS explores as far as possible along a branch before backtracking.
Correct Answer:
B
— BFS explores neighbors level by level, DFS explores as far as possible along a branch
Learn More →
Q. What is the main difference between depth-first and breadth-first traversal?
A.
Order of node visits
B.
Data structure used
C.
Time complexity
D.
Space complexity
Show solution
Solution
Depth-first traversal visits nodes by going deep into the tree, while breadth-first visits level by level.
Correct Answer:
A
— Order of node visits
Learn More →
Q. What is the main difference between Dijkstra's algorithm and A* search algorithm?
A.
A* uses heuristics to improve efficiency
B.
Dijkstra's algorithm is faster
C.
A* can only be used on trees
D.
Dijkstra's algorithm is for unweighted graphs
Show solution
Solution
The main difference is that A* uses heuristics to guide its search, making it more efficient in many cases compared to Dijkstra's algorithm.
Correct Answer:
A
— A* uses heuristics to improve efficiency
Learn More →
Q. What is the main difference between Dijkstra's algorithm and the Bellman-Ford algorithm?
A.
Dijkstra's algorithm is faster for all graphs
B.
Bellman-Ford can handle negative weights, Dijkstra's cannot
C.
Dijkstra's algorithm is only for directed graphs
D.
Bellman-Ford is more complex to implement
Show solution
Solution
The main difference is that the Bellman-Ford algorithm can handle graphs with negative weight edges, while Dijkstra's algorithm cannot.
Correct Answer:
B
— Bellman-Ford can handle negative weights, Dijkstra's cannot
Learn More →
Showing 1141 to 1170 of 3237 (108 Pages)