Q. Which technique can help prevent overfitting in supervised learning?
A.
Increasing the number of features
B.
Using a more complex model
C.
Applying regularization
D.
Reducing the size of the training dataset
Show solution
Solution
Applying regularization techniques can help prevent overfitting by penalizing overly complex models.
Correct Answer:
C
— Applying regularization
Learn More →
Q. Which technique can help prevent overfitting?
A.
Increasing the number of features
B.
Using a more complex model
C.
Cross-validation
D.
Ignoring validation data
Show solution
Solution
Cross-validation helps assess model performance on unseen data, reducing the risk of overfitting.
Correct Answer:
C
— Cross-validation
Learn More →
Q. Which technique is commonly used to prevent overfitting in neural networks?
A.
Increasing the learning rate
B.
Using dropout
C.
Reducing the number of layers
D.
Applying batch normalization
Show solution
Solution
Dropout is a regularization technique that randomly sets a fraction of the neurons to zero during training to prevent overfitting.
Correct Answer:
B
— Using dropout
Learn More →
Q. Which technique is used to handle missing values in a dataset?
A.
Feature scaling
B.
Imputation
C.
Normalization
D.
Regularization
Show solution
Solution
Imputation is the technique used to fill in missing values in a dataset.
Correct Answer:
B
— Imputation
Learn More →
Q. Which tool is commonly used for deploying machine learning models as APIs?
A.
TensorFlow Serving
B.
Pandas
C.
NumPy
D.
Matplotlib
Show solution
Solution
TensorFlow Serving is a popular tool for deploying machine learning models as APIs, allowing for easy integration into applications.
Correct Answer:
A
— TensorFlow Serving
Learn More →
Q. Which tool is commonly used for model deployment in MLOps?
A.
TensorFlow Serving
B.
Pandas
C.
NumPy
D.
Matplotlib
Show solution
Solution
TensorFlow Serving is a popular tool used for deploying machine learning models in production environments.
Correct Answer:
A
— TensorFlow Serving
Learn More →
Q. Which tool is commonly used for version control in MLOps?
A.
Git
B.
Jupyter Notebook
C.
TensorFlow
D.
Pandas
Show solution
Solution
Git is widely used for version control in MLOps to track changes in code and model versions.
Correct Answer:
A
— Git
Learn More →
Q. Which transmission media is most commonly used for high-speed internet connections?
A.
Coaxial cable
B.
Fiber optic cable
C.
Twisted pair cable
D.
Wireless
Show solution
Solution
Fiber optic cable is commonly used for high-speed internet connections due to its high bandwidth and low attenuation.
Correct Answer:
B
— Fiber optic cable
Learn More →
Q. Which transmission medium is least susceptible to electromagnetic interference?
A.
Twisted Pair Cable
B.
Coaxial Cable
C.
Fiber Optic Cable
D.
Wireless Transmission
Show solution
Solution
Fiber Optic Cable is least susceptible to electromagnetic interference as it transmits data as light signals.
Correct Answer:
C
— Fiber Optic Cable
Learn More →
Q. Which traversal method can be implemented using recursion?
A.
BFS
B.
DFS
C.
Both BFS and DFS
D.
Neither BFS nor DFS
Show solution
Solution
DFS can be easily implemented using recursion, while BFS typically requires an iterative approach.
Correct Answer:
B
— DFS
Learn More →
Q. Which traversal method can be more memory efficient in sparse graphs?
A.
BFS
B.
DFS
C.
Both are equal
D.
Neither is efficient
Show solution
Solution
DFS can be more memory efficient in sparse graphs because it does not need to store all the nodes at the current level, unlike BFS.
Correct Answer:
B
— DFS
Learn More →
Q. Which traversal method can be used to find the shortest path in an unweighted graph?
A.
DFS
B.
BFS
C.
Dijkstra's Algorithm
D.
A* Search
Show solution
Solution
BFS can be used to find the shortest path in an unweighted graph because it explores all neighbors at the present depth prior to moving on to nodes at the next depth level.
Correct Answer:
B
— BFS
Learn More →
Q. Which traversal method can be used to obtain a sorted order of elements in a binary search tree?
A.
Pre-order
B.
In-order
C.
Post-order
D.
Level-order
Show solution
Solution
In-order traversal of a binary search tree yields the elements in sorted order.
Correct Answer:
B
— In-order
Learn More →
Q. Which traversal method can be used to obtain a sorted order of elements in a Red-Black tree?
A.
Pre-order
B.
Post-order
C.
In-order
D.
Level-order
Show solution
Solution
In-order traversal of a Red-Black tree will yield the elements in sorted order.
Correct Answer:
C
— In-order
Learn More →
Q. Which traversal method can be used to obtain a sorted order of elements in an AVL tree?
A.
In-order traversal
B.
Pre-order traversal
C.
Post-order traversal
D.
Level-order traversal
Show solution
Solution
In-order traversal of an AVL tree will yield the elements in sorted order.
Correct Answer:
A
— In-order traversal
Learn More →
Q. Which traversal method explores all neighbors of a node before moving to the next level?
A.
Depth-First Search
B.
Breadth-First Search
C.
Dijkstra's Algorithm
D.
A* Search
Show solution
Solution
Breadth-First Search (BFS) explores all neighbors of a node before moving deeper into the graph.
Correct Answer:
B
— Breadth-First Search
Learn More →
Q. Which traversal method is best for copying a binary tree?
A.
Pre-order
B.
In-order
C.
Post-order
D.
Level-order
Show solution
Solution
Pre-order traversal is best for copying a binary tree as it visits the root before its children.
Correct Answer:
A
— Pre-order
Learn More →
Q. Which traversal method is best for creating a mirror image of a binary tree?
A.
In-order
B.
Post-order
C.
Pre-order
D.
Level-order
Show solution
Solution
Post-order traversal is best for creating a mirror image of a binary tree, as it processes children before the parent.
Correct Answer:
C
— Pre-order
Learn More →
Q. Which traversal method is best for obtaining a sorted list from a binary search tree?
A.
Pre-order
B.
In-order
C.
Post-order
D.
Level-order
Show solution
Solution
In-order traversal of a binary search tree yields the nodes in sorted order.
Correct Answer:
B
— In-order
Learn More →
Q. Which traversal method is best for printing the nodes of a binary tree level by level?
A.
In-order
B.
Pre-order
C.
Post-order
D.
Level-order
Show solution
Solution
Level-order traversal is used to print the nodes of a binary tree level by level.
Correct Answer:
D
— Level-order
Learn More →
Q. Which traversal method is best suited for copying a binary tree?
A.
In-order
B.
Pre-order
C.
Post-order
D.
Level-order
Show solution
Solution
Pre-order traversal is best suited for copying a binary tree because it processes the root node before its children, allowing for a straightforward reconstruction.
Correct Answer:
B
— Pre-order
Learn More →
Q. Which traversal method is best suited for printing the nodes of a binary tree level by level?
A.
Pre-order
B.
In-order
C.
Post-order
D.
Level-order
Show solution
Solution
Level-order traversal is best suited for printing the nodes of a binary tree level by level.
Correct Answer:
D
— Level-order
Learn More →
Q. Which traversal method is best suited for retrieving data in sorted order from a binary search tree?
A.
Pre-order traversal
B.
In-order traversal
C.
Post-order traversal
D.
Level-order traversal
Show solution
Solution
In-order traversal of a binary search tree visits nodes in ascending order, making it ideal for retrieving sorted data.
Correct Answer:
B
— In-order traversal
Learn More →
Q. Which traversal method is better for finding all paths between two nodes in a graph?
A.
BFS
B.
DFS
C.
Both are equally good
D.
Neither can find all paths
Show solution
Solution
DFS is better for finding all paths between two nodes because it explores all possible paths until it reaches the destination.
Correct Answer:
B
— DFS
Learn More →
Q. Which traversal method is commonly used to print the elements of a binary search tree in sorted order?
A.
Pre-order
B.
Post-order
C.
In-order
D.
Level-order
Show solution
Solution
In-order traversal of a binary search tree visits nodes in sorted order.
Correct Answer:
C
— In-order
Learn More →
Q. Which traversal method is commonly used to print the nodes of a binary search tree in sorted order?
A.
Pre-order
B.
In-order
C.
Post-order
D.
Level-order
Show solution
Solution
In-order traversal of a binary search tree visits nodes in sorted order.
Correct Answer:
B
— In-order
Learn More →
Q. Which traversal method is commonly used to retrieve data from a Red-Black tree in sorted order?
A.
Pre-order traversal
B.
In-order traversal
C.
Post-order traversal
D.
Level-order traversal
Show solution
Solution
In-order traversal of a Red-Black tree retrieves the data in sorted order due to its properties as a binary search tree.
Correct Answer:
B
— In-order traversal
Learn More →
Q. Which traversal method is commonly used to retrieve elements in sorted order from a binary search tree?
A.
Pre-order
B.
Post-order
C.
In-order
D.
Level-order
Show solution
Solution
In-order traversal of a binary search tree retrieves elements in sorted order.
Correct Answer:
C
— In-order
Learn More →
Q. Which traversal method is generally faster for large graphs?
A.
BFS
B.
DFS
C.
Both are equal
D.
Depends on the graph structure
Show solution
Solution
The speed of BFS or DFS can depend on the graph structure; for some graphs, one may be faster than the other.
Correct Answer:
D
— Depends on the graph structure
Learn More →
Q. Which traversal method is guaranteed to find the shortest path in a weighted graph?
A.
BFS
B.
DFS
C.
Dijkstra's Algorithm
D.
A* Search
Show solution
Solution
Dijkstra's Algorithm is specifically designed to find the shortest path in weighted graphs, unlike BFS and DFS.
Correct Answer:
C
— Dijkstra's Algorithm
Learn More →
Showing 3151 to 3180 of 3237 (108 Pages)