Q. Which algorithm is typically used for topological sorting of a directed acyclic graph?
-
A.
BFS
-
B.
DFS
-
C.
Dijkstra's algorithm
-
D.
Prim's algorithm
Solution
DFS is typically used for topological sorting of a directed acyclic graph (DAG) because it can explore all paths and backtrack effectively.
Correct Answer:
B
— DFS
Learn More →
Q. Which algorithm is typically used for topological sorting?
-
A.
BFS
-
B.
DFS
-
C.
Both
-
D.
None
Solution
DFS is typically used for topological sorting in directed acyclic graphs (DAGs) because it can explore all paths and backtrack effectively.
Correct Answer:
B
— DFS
Learn More →
Q. Which algorithm is typically used to find the shortest path in a weighted graph?
-
A.
BFS
-
B.
DFS
-
C.
Dijkstra's Algorithm
-
D.
Prim's Algorithm
Solution
Dijkstra's Algorithm is used to find the shortest path in a weighted graph.
Correct Answer:
C
— Dijkstra's Algorithm
Learn More →
Q. Which algorithm is used for finding the shortest path in a weighted graph?
-
A.
Depth First Search
-
B.
Breadth First Search
-
C.
Dijkstra's Algorithm
-
D.
Merge Sort
Solution
Dijkstra's Algorithm is specifically designed to find the shortest path in a weighted graph.
Correct Answer:
C
— Dijkstra's Algorithm
Learn More →
Q. Which algorithm is used to detect a cycle in a linked list?
-
A.
Depth First Search
-
B.
Breadth First Search
-
C.
Floyd's Cycle Detection
-
D.
Dijkstra's Algorithm
Solution
Floyd's Cycle Detection algorithm, also known as the tortoise and hare algorithm, is used to detect cycles in a linked list.
Correct Answer:
C
— Floyd's Cycle Detection
Learn More →
Q. Which algorithm is used to find the height of a binary tree?
-
A.
Depth-first search
-
B.
Breadth-first search
-
C.
Dynamic programming
-
D.
Greedy algorithm
Solution
Depth-first search (DFS) is commonly used to calculate the height of a binary tree by recursively exploring each branch.
Correct Answer:
A
— Depth-first search
Learn More →
Q. Which algorithm is used to find the shortest path in a weighted graph?
-
A.
Depth First Search
-
B.
Breadth First Search
-
C.
Dijkstra's Algorithm
-
D.
Merge Sort
Solution
Dijkstra's Algorithm is commonly used to find the shortest path in a weighted graph.
Correct Answer:
C
— Dijkstra's Algorithm
Learn More →
Q. Which algorithm uses dynamic programming to solve the longest common subsequence problem?
-
A.
Dijkstra's Algorithm
-
B.
Floyd-Warshall Algorithm
-
C.
LCS Algorithm
-
D.
Merge Sort
Solution
The Longest Common Subsequence (LCS) problem is solved using a dynamic programming approach.
Correct Answer:
C
— LCS Algorithm
Learn More →
Q. Which algorithm would you use to find the shortest path in a weighted graph?
-
A.
BFS
-
B.
DFS
-
C.
Dijkstra's Algorithm
-
D.
Prim's Algorithm
Solution
Dijkstra's Algorithm is used to find the shortest path in a weighted graph, while BFS is used for unweighted graphs.
Correct Answer:
C
— Dijkstra's Algorithm
Learn More →
Q. Which algorithm would you use to find the shortest path in an unweighted graph?
-
A.
Dijkstra's Algorithm
-
B.
Depth-First Search
-
C.
Breadth-First Search
-
D.
A* Search
Solution
Breadth-First Search (BFS) is used to find the shortest path in an unweighted graph.
Correct Answer:
C
— Breadth-First Search
Learn More →
Q. Which application is NOT typically associated with Random Forests?
-
A.
Credit scoring
-
B.
Spam detection
-
C.
Image classification
-
D.
Linear regression
Solution
Random Forests are primarily used for classification and regression tasks, not linear regression.
Correct Answer:
D
— Linear regression
Learn More →
Q. Which application of neural networks involves generating new content?
-
A.
Image recognition
-
B.
Generative art
-
C.
Data clustering
-
D.
Anomaly detection
Solution
Generative art is an application where neural networks can create new images or designs based on learned patterns.
Correct Answer:
B
— Generative art
Learn More →
Q. Which application of neural networks is used for fraud detection?
-
A.
Customer segmentation
-
B.
Anomaly detection
-
C.
Market analysis
-
D.
Product recommendation
Solution
Neural networks are effective in anomaly detection, helping to identify unusual patterns that may indicate fraudulent activity.
Correct Answer:
B
— Anomaly detection
Learn More →
Q. Which application of neural networks is used for generating realistic images?
-
A.
Generative Adversarial Networks (GANs)
-
B.
Reinforcement Learning
-
C.
Support Vector Machines
-
D.
Decision Trees
Solution
Generative Adversarial Networks (GANs) are a type of neural network architecture specifically designed for generating realistic images.
Correct Answer:
A
— Generative Adversarial Networks (GANs)
Learn More →
Q. Which application of neural networks is used in autonomous vehicles?
-
A.
Route optimization
-
B.
Object detection
-
C.
Data storage
-
D.
User interface design
Solution
Neural networks are employed in object detection to identify and classify objects in the vehicle's environment.
Correct Answer:
B
— Object detection
Learn More →
Q. Which application of supervised learning can help in diagnosing diseases?
-
A.
Predicting patient outcomes based on historical data
-
B.
Clustering patients with similar symptoms
-
C.
Generating synthetic medical images
-
D.
Analyzing patient demographics
Solution
Predicting patient outcomes based on historical data is a direct application of supervised learning in diagnosing diseases.
Correct Answer:
A
— Predicting patient outcomes based on historical data
Learn More →
Q. Which application uses a stack to reverse a string?
-
A.
Queue
-
B.
Stack
-
C.
Graph
-
D.
Tree
Solution
A stack can be used to reverse a string by pushing each character onto the stack and then popping them off.
Correct Answer:
B
— Stack
Learn More →
Q. Which application uses both stacks and queues?
-
A.
Depth-first search
-
B.
Breadth-first search
-
C.
Expression evaluation
-
D.
Memory allocation
Solution
Expression evaluation often uses stacks for operators and operands, while queues can be used for managing the order of operations.
Correct Answer:
C
— Expression evaluation
Learn More →
Q. Which assumption is NOT required for linear regression?
-
A.
Linearity
-
B.
Homoscedasticity
-
C.
Independence of errors
-
D.
Normality of predictors
Solution
Linear regression does not require the predictors to be normally distributed; it only requires the residuals to be normally distributed.
Correct Answer:
D
— Normality of predictors
Learn More →
Q. Which balancing operation is performed when an AVL tree becomes unbalanced after an insertion?
-
A.
Left Rotation
-
B.
Right Rotation
-
C.
Left-Right Rotation
-
D.
Right-Left Rotation
Solution
Depending on the case, AVL trees may perform Left Rotation, Right Rotation, Left-Right Rotation, or Right-Left Rotation to rebalance.
Correct Answer:
A
— Left Rotation
Learn More →
Q. Which binary tree traversal is best for evaluating expressions in compilers?
-
A.
Pre-order traversal
-
B.
In-order traversal
-
C.
Post-order traversal
-
D.
Level-order traversal
Solution
Post-order traversal is used in evaluating expressions in compilers, as it processes operators after their operands.
Correct Answer:
C
— Post-order traversal
Learn More →
Q. Which binary tree traversal is best suited for generating a sorted list of elements?
-
A.
In-order traversal
-
B.
Pre-order traversal
-
C.
Post-order traversal
-
D.
Level-order traversal
Solution
In-order traversal of a binary search tree yields the elements in sorted order.
Correct Answer:
A
— In-order traversal
Learn More →
Q. Which cloud ML service feature allows for easy deployment of models?
-
A.
Model versioning
-
B.
Data cleaning
-
C.
Manual coding
-
D.
Local execution
Solution
Model versioning is a feature that facilitates easy deployment and management of different model versions in cloud ML services.
Correct Answer:
A
— Model versioning
Learn More →
Q. Which cloud ML service is known for its AutoML capabilities?
-
A.
Amazon SageMaker
-
B.
Microsoft Azure ML
-
C.
IBM Watson
-
D.
All of the above
Solution
All of the mentioned services, including Amazon SageMaker, Microsoft Azure ML, and IBM Watson, offer AutoML capabilities.
Correct Answer:
D
— All of the above
Learn More →
Q. Which cloud ML service is specifically designed for building and deploying machine learning models?
-
A.
Google BigQuery
-
B.
AWS SageMaker
-
C.
Microsoft Excel
-
D.
Dropbox
Solution
AWS SageMaker is a cloud ML service designed for building, training, and deploying machine learning models at scale.
Correct Answer:
B
— AWS SageMaker
Learn More →
Q. Which cloud service is commonly used for deploying machine learning models?
-
A.
Google Cloud ML Engine
-
B.
Microsoft Excel
-
C.
Apache Hadoop
-
D.
Jupyter Notebook
Solution
Google Cloud ML Engine is a cloud service specifically designed for deploying machine learning models at scale.
Correct Answer:
A
— Google Cloud ML Engine
Learn More →
Q. Which cloud service is often used for deploying machine learning models?
-
A.
Google Cloud Storage
-
B.
Amazon S3
-
C.
Microsoft Azure Machine Learning
-
D.
All of the above
Solution
Microsoft Azure Machine Learning is specifically designed for deploying machine learning models.
Correct Answer:
C
— Microsoft Azure Machine Learning
Learn More →
Q. Which clustering algorithm is based on density?
-
A.
K-Means
-
B.
Hierarchical Clustering
-
C.
DBSCAN
-
D.
Gaussian Mixture Model
Solution
DBSCAN (Density-Based Spatial Clustering of Applications with Noise) identifies clusters based on the density of data points.
Correct Answer:
C
— DBSCAN
Learn More →
Q. Which clustering algorithm is based on the concept of density?
-
A.
K-Means
-
B.
Hierarchical Clustering
-
C.
DBSCAN
-
D.
Gaussian Mixture Model
Solution
DBSCAN (Density-Based Spatial Clustering of Applications with Noise) identifies clusters based on the density of data points.
Correct Answer:
C
— DBSCAN
Learn More →
Q. Which clustering algorithm is best for identifying clusters of varying shapes and sizes?
-
A.
K-Means
-
B.
DBSCAN
-
C.
Agglomerative Clustering
-
D.
Gaussian Mixture Model
Solution
DBSCAN is effective for identifying clusters of varying shapes and sizes, as it groups points based on density.
Correct Answer:
B
— DBSCAN
Learn More →
Showing 2131 to 2160 of 3237 (108 Pages)