Q. What type of learning does a Decision Tree primarily use?
A.
Unsupervised Learning
B.
Reinforcement Learning
C.
Supervised Learning
D.
Semi-supervised Learning
Show solution
Solution
Decision Trees primarily use Supervised Learning, where the model is trained on labeled data.
Correct Answer:
C
— Supervised Learning
Learn More →
Q. What type of learning does Support Vector Machines primarily utilize?
A.
Unsupervised learning
B.
Reinforcement learning
C.
Supervised learning
D.
Semi-supervised learning
Show solution
Solution
Support Vector Machines are a supervised learning algorithm, as they require labeled training data to learn the decision boundary.
Correct Answer:
C
— Supervised learning
Learn More →
Q. What type of learning does SVM primarily fall under?
A.
Supervised learning
B.
Unsupervised learning
C.
Reinforcement learning
D.
Semi-supervised learning
Show solution
Solution
SVM is a supervised learning algorithm, as it requires labeled data for training.
Correct Answer:
A
— Supervised learning
Learn More →
Q. What type of learning does SVM primarily utilize?
A.
Supervised learning
B.
Unsupervised learning
C.
Reinforcement learning
D.
Semi-supervised learning
Show solution
Solution
SVM is a supervised learning algorithm used for classification and regression tasks.
Correct Answer:
A
— Supervised learning
Learn More →
Q. What type of learning is primarily supported by cloud ML services for predictive analytics?
A.
Unsupervised learning
B.
Reinforcement learning
C.
Supervised learning
D.
Semi-supervised learning
Show solution
Solution
Cloud ML services typically support supervised learning for predictive analytics, where models are trained on labeled data.
Correct Answer:
C
— Supervised learning
Learn More →
Q. What type of learning is typically used in cloud ML services for predictive analytics?
A.
Unsupervised learning
B.
Reinforcement learning
C.
Supervised learning
D.
Semi-supervised learning
Show solution
Solution
Supervised learning is commonly used in cloud ML services for tasks like predictive analytics, where labeled data is available.
Correct Answer:
C
— Supervised learning
Learn More →
Q. What type of problem is predicting house prices based on features like size and location?
A.
Classification
B.
Regression
C.
Clustering
D.
Dimensionality Reduction
Show solution
Solution
Predicting house prices is a regression problem, as it involves predicting a continuous numerical value based on input features.
Correct Answer:
B
— Regression
Learn More →
Q. What type of supervised learning problem is predicting house prices?
A.
Classification
B.
Regression
C.
Clustering
D.
Dimensionality Reduction
Show solution
Solution
Predicting house prices is a regression problem because it involves predicting a continuous numerical value.
Correct Answer:
B
— Regression
Learn More →
Q. What type of supervised learning task is predicting house prices?
A.
Classification
B.
Clustering
C.
Regression
D.
Dimensionality Reduction
Show solution
Solution
Predicting house prices is a regression task, as it involves predicting a continuous numerical value.
Correct Answer:
C
— Regression
Learn More →
Q. What type of supervised learning task is used to predict categorical outcomes?
A.
Regression
B.
Classification
C.
Clustering
D.
Dimensionality Reduction
Show solution
Solution
Classification is the type of supervised learning task used to predict categorical outcomes.
Correct Answer:
B
— Classification
Learn More →
Q. What type of supervised learning would you use to predict whether a patient has a disease based on their symptoms?
A.
Regression
B.
Clustering
C.
Classification
D.
Dimensionality Reduction
Show solution
Solution
Classification is used to predict whether a patient has a disease based on their symptoms, as it involves categorizing outcomes.
Correct Answer:
C
— Classification
Learn More →
Q. What type of transmission media uses light to transmit data?
A.
Coaxial Cable
B.
Twisted Pair Cable
C.
Fiber Optic Cable
D.
Wireless
Show solution
Solution
Fiber Optic Cable uses light to transmit data, allowing for high-speed and long-distance communication.
Correct Answer:
C
— Fiber Optic Cable
Learn More →
Q. What will be the output of binary search if the target element is not present in the array?
A.
Index of the closest element
B.
-1
C.
0
D.
Length of the array
Show solution
Solution
If the target element is not found, binary search typically returns -1 to indicate absence.
Correct Answer:
B
— -1
Learn More →
Q. What will be the output of binary search if the target value is not present in the array?
A.
The index of the closest value
B.
The index of the first element
C.
The index of the last element
D.
-1
Show solution
Solution
If the target value is not found, binary search typically returns -1 to indicate absence.
Correct Answer:
D
— -1
Learn More →
Q. What will be the output of the binary search function if the target is not found?
A.
The index of the closest element
B.
The index of the target
C.
-1
D.
0
Show solution
Solution
Typically, binary search returns -1 if the target value is not found in the array.
Correct Answer:
C
— -1
Learn More →
Q. What will be the output of the following code: 'for i in range(3): print(i)'?
A.
0 1 2
B.
1 2 3
C.
0 1 2 3
D.
3
Show solution
Solution
The loop iterates from 0 to 2, so the output will be '0 1 2'.
Correct Answer:
A
— 0 1 2
Learn More →
Q. What will be the output of the following Python code: arr = [1, 2, 3, 4, 5]; binary_search(arr, 3)?
Show solution
Solution
The binary search will return the index of the element '3', which is 2.
Correct Answer:
C
— 2
Learn More →
Q. What will be the result of a binary search for the value 10 in the array [1, 2, 3, 4, 5, 6, 7, 8, 9]?
A.
Found
B.
Not Found
C.
Error
D.
Undefined
Show solution
Solution
The value 10 is not present in the array, so the result will be 'Not Found'.
Correct Answer:
B
— Not Found
Learn More →
Q. What will be the result of a binary search if the target element is not present in the array?
A.
Returns the index of the closest element
B.
Returns -1
C.
Returns the index of the last element
D.
Returns the index of the first element
Show solution
Solution
If the target element is not found, binary search typically returns -1 to indicate absence.
Correct Answer:
B
— Returns -1
Learn More →
Q. What will be the result of a binary search if the target value is not present in the array?
A.
The index of the closest value
B.
The index of the target value
C.
A negative value or -1
D.
An error message
Show solution
Solution
If the target value is not found, binary search typically returns -1 to indicate absence.
Correct Answer:
C
— A negative value or -1
Learn More →
Q. What will be the result of binary search if the target element is not present in the array?
A.
Returns the index of the closest element
B.
Returns -1
C.
Returns the size of the array
D.
Returns the first element
Show solution
Solution
If the target element is not found, binary search typically returns -1 to indicate absence.
Correct Answer:
B
— Returns -1
Learn More →
Q. What will be the result of binary search if the target value is not present in the array?
A.
Returns the index of the closest value
B.
Returns -1
C.
Returns the index of the last element
D.
Returns the index of the first element
Show solution
Solution
If the target value is not found, binary search typically returns -1 to indicate absence.
Correct Answer:
B
— Returns -1
Learn More →
Q. What will be the return value of binary search if the element is not found?
Show solution
Solution
Typically, binary search returns -1 to indicate that the element was not found in the array.
Correct Answer:
A
— -1
Learn More →
Q. What will happen if Dijkstra's algorithm is run on a graph with negative weight edges?
A.
It will still find the shortest path.
B.
It may produce incorrect results.
C.
It will terminate with an error.
D.
It will only work for the first negative edge.
Show solution
Solution
Dijkstra's algorithm may produce incorrect results if there are negative weight edges in the graph.
Correct Answer:
B
— It may produce incorrect results.
Learn More →
Q. When implementing a queue using two stacks, what is the average time complexity for enqueue operations?
A.
O(1)
B.
O(n)
C.
O(log n)
D.
O(n^2)
Show solution
Solution
The average time complexity for enqueue operations in a queue implemented using two stacks is O(1), as most operations do not require transferring elements.
Correct Answer:
A
— O(1)
Learn More →
Q. When inserting a node into an AVL tree, what must be checked after insertion?
A.
If the tree is a complete binary tree.
B.
If the tree remains balanced.
C.
If the node is a leaf.
D.
If the node is red or black.
Show solution
Solution
After inserting a node into an AVL tree, it is crucial to check if the tree remains balanced and perform rotations if necessary.
Correct Answer:
B
— If the tree remains balanced.
Learn More →
Q. When using a stack to reverse a string, what is the time complexity of the entire operation?
A.
O(1)
B.
O(n)
C.
O(log n)
D.
O(n^2)
Show solution
Solution
Reversing a string using a stack involves pushing each character onto the stack and then popping them off, resulting in a time complexity of O(n).
Correct Answer:
B
— O(n)
Learn More →
Q. Which activation function is commonly used in CNNs?
A.
Sigmoid
B.
Tanh
C.
ReLU
D.
Softmax
Show solution
Solution
ReLU (Rectified Linear Unit) is commonly used in CNNs due to its ability to introduce non-linearity while being computationally efficient.
Correct Answer:
C
— ReLU
Learn More →
Q. Which addressing scheme is used in the Internet Protocol (IP)?
A.
MAC Addressing
B.
Logical Addressing
C.
Physical Addressing
D.
Session Addressing
Show solution
Solution
Logical Addressing is used in the Internet Protocol (IP) to identify devices on a network uniquely.
Correct Answer:
B
— Logical Addressing
Learn More →
Q. Which addressing scheme is used in the Network Layer of the OSI model?
A.
MAC Addressing
B.
IP Addressing
C.
Port Addressing
D.
Session Addressing
Show solution
Solution
IP Addressing is used in the Network Layer (Layer 3) of the OSI model to identify devices on a network.
Correct Answer:
B
— IP Addressing
Learn More →
Showing 2071 to 2100 of 3237 (108 Pages)