Q. What is the main difference between dynamic programming and divide and conquer?
A.
Dynamic programming solves problems by breaking them into independent subproblems
B.
Divide and conquer uses memoization
C.
Dynamic programming solves problems with overlapping subproblems
D.
There is no difference
Show solution
Solution
The main difference is that dynamic programming is used for problems with overlapping subproblems, while divide and conquer is used for problems that can be broken into independent subproblems.
Correct Answer:
C
— Dynamic programming solves problems with overlapping subproblems
Learn More →
Q. What is the main difference between hard and soft clustering?
A.
Hard clustering assigns points to one cluster, soft clustering assigns probabilities
B.
Soft clustering is faster than hard clustering
C.
Hard clustering can handle noise, soft cannot
D.
There is no difference
Show solution
Solution
Hard clustering assigns each data point to a single cluster, while soft clustering assigns probabilities to each cluster.
Correct Answer:
A
— Hard clustering assigns points to one cluster, soft clustering assigns probabilities
Learn More →
Q. What is the main difference between hierarchical clustering and K-Means clustering?
A.
Hierarchical clustering requires labeled data
B.
K-Means clustering is faster
C.
Hierarchical clustering creates a tree structure
D.
K-Means clustering can only form circular clusters
Show solution
Solution
Hierarchical clustering creates a tree structure (dendrogram) to represent the data.
Correct Answer:
C
— Hierarchical clustering creates a tree structure
Learn More →
Q. What is the main difference between HTTP and HTTPS?
A.
HTTP is faster
B.
HTTPS is encrypted
C.
HTTP uses less bandwidth
D.
HTTPS is for local networks only
Show solution
Solution
The main difference is that HTTPS is encrypted, providing a secure communication channel over the internet.
Correct Answer:
B
— HTTPS is encrypted
Learn More →
Q. What is the main difference between K-Means and DBSCAN clustering algorithms?
A.
K-Means is faster than DBSCAN
B.
DBSCAN can find clusters of arbitrary shape
C.
K-Means requires labeled data
D.
DBSCAN is only for high-dimensional data
Show solution
Solution
DBSCAN can find clusters of arbitrary shape, while K-Means assumes spherical clusters.
Correct Answer:
B
— DBSCAN can find clusters of arbitrary shape
Learn More →
Q. What is the main difference between K-means and hierarchical clustering?
A.
K-means is a partitional method, while hierarchical is a divisive method
B.
K-means requires the number of clusters to be defined, while hierarchical does not
C.
K-means can only be used for numerical data, while hierarchical can handle categorical data
D.
K-means is faster than hierarchical clustering for small datasets
Show solution
Solution
K-means is a partitional clustering method that divides data into a fixed number of clusters, while hierarchical clustering builds a tree of clusters without needing to specify the number of clusters in advance.
Correct Answer:
B
— K-means requires the number of clusters to be defined, while hierarchical does not
Learn More →
Q. What is the main difference between K-means and K-medoids clustering?
A.
K-means uses centroids, while K-medoids uses actual data points
B.
K-medoids is faster than K-means
C.
K-means can only handle numerical data, while K-medoids can handle categorical data
D.
K-medoids requires the number of clusters to be specified, while K-means does not
Show solution
Solution
K-means uses centroids to represent clusters, while K-medoids uses actual data points as the center of clusters, making it more robust to outliers.
Correct Answer:
A
— K-means uses centroids, while K-medoids uses actual data points
Learn More →
Q. What is the main difference between K-means and K-medoids?
A.
K-means uses centroids, while K-medoids uses actual data points
B.
K-medoids is faster than K-means
C.
K-means can handle categorical data, while K-medoids cannot
D.
There is no difference; they are the same algorithm
Show solution
Solution
K-means uses centroids to represent clusters, while K-medoids uses actual data points as cluster representatives.
Correct Answer:
A
— K-means uses centroids, while K-medoids uses actual data points
Learn More →
Q. What is the main difference between logistic regression and linear regression?
A.
Logistic regression predicts continuous values, while linear regression predicts categorical values.
B.
Logistic regression is used for classification, while linear regression is used for regression tasks.
C.
Logistic regression requires more data than linear regression.
D.
There is no difference; they are the same.
Show solution
Solution
Logistic regression is used for binary classification tasks, while linear regression is used for predicting continuous values.
Correct Answer:
B
— Logistic regression is used for classification, while linear regression is used for regression tasks.
Learn More →
Q. What is the main difference between regression and classification in supervised learning?
A.
Regression predicts continuous values, classification predicts discrete labels
B.
Regression is unsupervised, classification is supervised
C.
Regression uses neural networks, classification does not
D.
There is no difference
Show solution
Solution
The main difference is that regression predicts continuous values, while classification predicts discrete labels.
Correct Answer:
A
— Regression predicts continuous values, classification predicts discrete labels
Learn More →
Q. What is the main difference between regression and classification?
A.
Regression predicts continuous values, while classification predicts discrete labels
B.
Regression is unsupervised, while classification is supervised
C.
Regression uses more features than classification
D.
There is no difference
Show solution
Solution
The main difference is that regression predicts continuous values, while classification predicts discrete labels.
Correct Answer:
A
— Regression predicts continuous values, while classification predicts discrete labels
Learn More →
Q. What is the main difference between supervised and unsupervised learning?
A.
Supervised learning uses labeled data, unsupervised does not
B.
Unsupervised learning is faster than supervised learning
C.
Supervised learning is only for classification tasks
D.
Unsupervised learning requires more data
Show solution
Solution
The main difference is that supervised learning uses labeled data for training, while unsupervised learning works with unlabeled data.
Correct Answer:
A
— Supervised learning uses labeled data, unsupervised does not
Learn More →
Q. What is the main difference between top-down and bottom-up approaches in dynamic programming?
A.
Top-down uses recursion, bottom-up uses iteration
B.
Top-down is faster than bottom-up
C.
Bottom-up is more space efficient than top-down
D.
There is no difference
Show solution
Solution
The main difference is that the top-down approach uses recursion and memoization, while the bottom-up approach builds the solution iteratively.
Correct Answer:
A
— Top-down uses recursion, bottom-up uses iteration
Learn More →
Q. What is the main difference between top-down and bottom-up dynamic programming?
A.
Top-down uses recursion, bottom-up uses iteration
B.
Top-down is faster
C.
Bottom-up is easier to implement
D.
There is no difference
Show solution
Solution
The main difference is that top-down uses recursion and memoization, while bottom-up builds the solution iteratively.
Correct Answer:
A
— Top-down uses recursion, bottom-up uses iteration
Learn More →
Q. What is the main difference in traversal order between BFS and DFS?
A.
BFS uses a stack, DFS uses a queue
B.
BFS uses a queue, DFS uses a stack
C.
BFS is depth-first, DFS is breadth-first
D.
There is no difference
Show solution
Solution
BFS uses a queue to explore nodes level by level, while DFS uses a stack (or recursion) to explore as far as possible along each branch before backtracking.
Correct Answer:
B
— BFS uses a queue, DFS uses a stack
Learn More →
Q. What is the main disadvantage of AVL trees compared to Red-Black trees?
A.
AVL trees require more rotations during insertions and deletions.
B.
AVL trees are less memory efficient.
C.
AVL trees cannot store duplicate values.
D.
AVL trees are harder to implement.
Show solution
Solution
AVL trees require more rotations during insertions and deletions to maintain balance, making them less efficient in scenarios with frequent updates.
Correct Answer:
A
— AVL trees require more rotations during insertions and deletions.
Learn More →
Q. What is the main disadvantage of Decision Trees?
A.
They are computationally expensive
B.
They can easily overfit the training data
C.
They cannot handle missing values
D.
They require a large amount of data
Show solution
Solution
Decision Trees can easily overfit the training data, especially if they are deep and complex.
Correct Answer:
B
— They can easily overfit the training data
Learn More →
Q. What is the main disadvantage of DFS compared to BFS?
A.
Higher memory usage
B.
Can get stuck in deep paths
C.
Slower execution time
D.
Does not find all paths
Show solution
Solution
DFS can get stuck in deep paths, leading to inefficient exploration in some cases.
Correct Answer:
B
— Can get stuck in deep paths
Learn More →
Q. What is the main disadvantage of Dijkstra's algorithm compared to the A* algorithm?
A.
Dijkstra's algorithm is slower.
B.
Dijkstra's algorithm cannot handle graphs with cycles.
C.
Dijkstra's algorithm does not use heuristics.
D.
Dijkstra's algorithm is less accurate.
Show solution
Solution
The main disadvantage of Dijkstra's algorithm compared to the A* algorithm is that Dijkstra's does not use heuristics, which can lead to longer search times in certain scenarios.
Correct Answer:
C
— Dijkstra's algorithm does not use heuristics.
Learn More →
Q. What is the main disadvantage of Dijkstra's algorithm?
A.
It is not optimal
B.
It requires a lot of memory
C.
It cannot handle negative weights
D.
It is too slow for large graphs
Show solution
Solution
The main disadvantage of Dijkstra's algorithm is that it cannot handle graphs with negative weight edges, which can lead to incorrect results.
Correct Answer:
C
— It cannot handle negative weights
Learn More →
Q. What is the main disadvantage of K-means clustering?
A.
It requires labeled data
B.
It is sensitive to the initial placement of centroids
C.
It cannot handle large datasets
D.
It is computationally expensive
Show solution
Solution
K-means clustering is sensitive to the initial placement of centroids, which can affect the final clustering outcome.
Correct Answer:
B
— It is sensitive to the initial placement of centroids
Learn More →
Q. What is the main disadvantage of Quick Sort?
A.
It is not stable
B.
It is slow for small datasets
C.
It requires extra space
D.
It is complex to implement
Show solution
Solution
The main disadvantage of Quick Sort is that it is not a stable sorting algorithm.
Correct Answer:
A
— It is not stable
Learn More →
Q. What is the main disadvantage of using a Decision Tree?
A.
High bias
B.
High variance
C.
Requires a lot of data
D.
Difficult to interpret
Show solution
Solution
Decision Trees are prone to high variance, meaning they can overfit the training data and perform poorly on unseen data.
Correct Answer:
B
— High variance
Learn More →
Q. What is the main disadvantage of using a linked list to implement a stack?
A.
Higher memory usage per element
B.
Slower access time
C.
Complexity of implementation
D.
No disadvantages
Show solution
Solution
The main disadvantage of using a linked list to implement a stack is the higher memory usage per element due to the storage of pointers in addition to the data.
Correct Answer:
A
— Higher memory usage per element
Learn More →
Q. What is the main disadvantage of using a stack for function call management?
A.
Limited size
B.
Slow access
C.
Complex implementation
D.
No recursion support
Show solution
Solution
The main disadvantage of using a stack for function call management is its limited size, which can lead to stack overflow if too many function calls are made.
Correct Answer:
A
— Limited size
Learn More →
Q. What is the main disadvantage of using an array compared to a linked list?
A.
Arrays have a fixed size
B.
Linked lists are slower for access
C.
Arrays use more memory
D.
Linked lists cannot store data
Show solution
Solution
Arrays have a fixed size, which can be a limitation when the number of elements is not known in advance.
Correct Answer:
A
— Arrays have a fixed size
Learn More →
Q. What is the main disadvantage of using an array?
A.
Fixed size
B.
Slow access time
C.
High memory usage
D.
Complex implementation
Show solution
Solution
The main disadvantage of arrays is their fixed size, which limits their flexibility compared to linked lists.
Correct Answer:
A
— Fixed size
Learn More →
Q. What is the main disadvantage of using BFS compared to DFS?
A.
Higher memory usage
B.
Slower execution
C.
More complex implementation
D.
Less effective for deep graphs
Show solution
Solution
BFS typically requires more memory than DFS because it stores all nodes at the current level in a queue.
Correct Answer:
A
— Higher memory usage
Learn More →
Q. What is the main disadvantage of using BFS?
A.
It can be slower than DFS
B.
It requires more memory
C.
It cannot find paths
D.
It is not suitable for large graphs
Show solution
Solution
The main disadvantage of BFS is that it requires more memory, as it stores all nodes at the current level before moving deeper.
Correct Answer:
B
— It requires more memory
Learn More →
Q. What is the main disadvantage of using Heap Sort?
A.
It is not stable
B.
It is slower than Quick Sort
C.
It requires additional memory
D.
It is complex to implement
Show solution
Solution
The main disadvantage of Heap Sort is that it is not a stable sorting algorithm, which can be a drawback in certain applications.
Correct Answer:
A
— It is not stable
Learn More →
Showing 1171 to 1200 of 3237 (108 Pages)