Q. In which application would you likely use a Random Forest model?
A.
To classify images of handwritten digits
B.
To predict stock prices based on historical data
C.
To generate text summaries
D.
To recommend movies based on user preferences
Show solution
Solution
Random Forests are effective for regression tasks like predicting stock prices due to their ability to handle complex relationships.
Correct Answer:
B
— To predict stock prices based on historical data
Learn More →
Q. In which application would you prefer a Red-Black tree over an AVL tree?
A.
When frequent insertions and deletions are expected
B.
When memory usage is a critical factor
C.
When the dataset is static
D.
When the data is sorted
Show solution
Solution
Red-Black trees are preferred when frequent insertions and deletions are expected because they provide faster insertion and deletion times compared to AVL trees.
Correct Answer:
A
— When frequent insertions and deletions are expected
Learn More →
Q. In which application would you prefer using a Red-Black tree over an AVL tree?
A.
When frequent insertions and deletions are expected
B.
When memory usage is a critical factor
C.
When the data set is static
D.
When the data is mostly read-only
Show solution
Solution
Red-Black trees are preferred when frequent insertions and deletions are expected because they provide faster insertion and deletion times compared to AVL trees.
Correct Answer:
A
— When frequent insertions and deletions are expected
Learn More →
Q. In which application would you use a circular linked list?
A.
To implement a stack
B.
To manage a round-robin scheduling system
C.
To store a fixed number of elements
D.
To represent a binary tree
Show solution
Solution
Circular linked lists are used in round-robin scheduling systems as they allow for continuous traversal of the list.
Correct Answer:
B
— To manage a round-robin scheduling system
Learn More →
Q. In which application would you use a stack to evaluate expressions?
A.
Infix to postfix conversion
B.
Sorting a list of numbers
C.
Searching for an element
D.
Implementing a binary tree
Show solution
Solution
Stacks are used in infix to postfix conversion to hold operators and operands while evaluating expressions.
Correct Answer:
A
— Infix to postfix conversion
Learn More →
Q. In which application would you use Decision Trees for customer segmentation?
A.
Predicting customer churn
B.
Recommending products
C.
Analyzing website traffic
D.
Optimizing supply chain logistics
Show solution
Solution
Decision Trees can be used to predict customer churn by segmenting customers based on their behavior.
Correct Answer:
A
— Predicting customer churn
Learn More →
Q. In which application would you use Random Forests for fraud detection?
A.
To analyze customer feedback
B.
To predict stock prices
C.
To identify unusual transaction patterns
D.
To optimize website performance
Show solution
Solution
Random Forests can identify unusual transaction patterns that may indicate fraudulent activity.
Correct Answer:
C
— To identify unusual transaction patterns
Learn More →
Q. In which data structure is the 'Last In First Out' (LIFO) principle applied?
A.
Queue
B.
Array
C.
Stack
D.
Linked List
Show solution
Solution
A stack follows the LIFO principle, meaning the last element added is the first one to be removed.
Correct Answer:
C
— Stack
Learn More →
Q. In which data structure is the breadth-first search (BFS) algorithm typically implemented?
A.
Stack
B.
Queue
C.
Array
D.
Linked List
Show solution
Solution
BFS is typically implemented using a queue data structure.
Correct Answer:
B
— Queue
Learn More →
Q. In which field are Support Vector Machines frequently applied?
A.
Finance for credit scoring
B.
Manufacturing for process optimization
C.
Healthcare for disease diagnosis
D.
All of the above
Show solution
Solution
Support Vector Machines are versatile and are applied in various fields, including finance, manufacturing, and healthcare.
Correct Answer:
D
— All of the above
Learn More →
Q. In which field is clustering used for image segmentation?
A.
Finance
B.
Healthcare
C.
Computer Vision
D.
Natural Language Processing
Show solution
Solution
Clustering is widely used in computer vision for image segmentation, helping to identify and separate different objects within an image.
Correct Answer:
C
— Computer Vision
Learn More →
Q. In which industry are Random Forests commonly used for fraud detection?
A.
Healthcare
B.
Finance
C.
Retail
D.
Manufacturing
Show solution
Solution
Random Forests are widely used in the finance industry for detecting fraudulent transactions.
Correct Answer:
B
— Finance
Learn More →
Q. In which layer of the OSI model does switching occur?
A.
Network Layer
B.
Data Link Layer
C.
Transport Layer
D.
Session Layer
Show solution
Solution
Switching occurs at the Data Link Layer (Layer 2) of the OSI model, where MAC addresses are used to forward frames.
Correct Answer:
B
— Data Link Layer
Learn More →
Q. In which of the following applications is binary search commonly used?
A.
Finding the maximum element in an array
B.
Searching for a word in a dictionary
C.
Sorting an array
D.
Finding the minimum element in a tree
Show solution
Solution
Binary search is commonly used for searching for a word in a dictionary, as dictionaries are typically sorted.
Correct Answer:
B
— Searching for a word in a dictionary
Learn More →
Q. In which of the following scenarios is binary search most beneficial?
A.
Finding an element in a large sorted array
B.
Finding the maximum element in an unsorted array
C.
Inserting an element in a linked list
D.
Sorting an array
Show solution
Solution
Binary search is most beneficial for finding an element in a large sorted array due to its O(log n) time complexity.
Correct Answer:
A
— Finding an element in a large sorted array
Learn More →
Q. In which order does BFS visit nodes in a graph?
A.
Pre-order
B.
In-order
C.
Post-order
D.
Level-order
Show solution
Solution
BFS visits nodes in level-order, exploring all neighbors at the present depth prior to moving on to nodes at the next depth level.
Correct Answer:
D
— Level-order
Learn More →
Q. In which OSI layer does error detection and correction primarily occur?
A.
Physical Layer
B.
Data Link Layer
C.
Network Layer
D.
Transport Layer
Show solution
Solution
Error detection and correction primarily occur at the Data Link Layer (Layer 2) through mechanisms like checksums and CRC.
Correct Answer:
B
— Data Link Layer
Learn More →
Q. In which OSI layer does the process of segmentation occur?
A.
Application Layer
B.
Transport Layer
C.
Network Layer
D.
Data Link Layer
Show solution
Solution
Segmentation occurs at the Transport Layer (Layer 4), where data is divided into smaller segments for transmission.
Correct Answer:
B
— Transport Layer
Learn More →
Q. In which real-world application is Dijkstra's algorithm commonly used?
A.
Finding the shortest route in GPS navigation
B.
Sorting a list of names
C.
Searching for a book in a library
D.
Managing a queue of customers
Show solution
Solution
Dijkstra's algorithm is widely used in GPS navigation systems to calculate the shortest route between locations.
Correct Answer:
A
— Finding the shortest route in GPS navigation
Learn More →
Q. In which real-world application is K-means clustering often used?
A.
Spam detection in emails
B.
Customer segmentation in marketing
C.
Image recognition
D.
Natural language processing
Show solution
Solution
K-means clustering is often used for customer segmentation in marketing to identify distinct customer groups.
Correct Answer:
B
— Customer segmentation in marketing
Learn More →
Q. In which real-world application is reinforcement learning commonly used?
A.
Image classification
B.
Natural language processing
C.
Game playing
D.
Data clustering
Show solution
Solution
Reinforcement learning is widely used in game playing, such as training agents to play chess or video games, where they learn optimal strategies through trial and error.
Correct Answer:
C
— Game playing
Learn More →
Q. In which real-world application is SVM commonly used?
A.
Image recognition
B.
Time series forecasting
C.
Natural language processing
D.
Reinforcement learning
Show solution
Solution
SVM is widely used in image recognition tasks, where it effectively classifies images based on their features.
Correct Answer:
A
— Image recognition
Learn More →
Q. In which real-world application is SVM particularly effective?
A.
Image recognition
B.
Time series forecasting
C.
Natural language processing
D.
Reinforcement learning
Show solution
Solution
SVM is particularly effective in image recognition tasks due to its ability to handle high-dimensional data and create complex decision boundaries.
Correct Answer:
A
— Image recognition
Learn More →
Q. In which real-world application would you use a queue?
A.
Undo functionality in text editors
B.
Browser history management
C.
Task scheduling in operating systems
D.
Expression evaluation
Show solution
Solution
Queues are used in task scheduling in operating systems where processes are managed in a first-come, first-served manner.
Correct Answer:
C
— Task scheduling in operating systems
Learn More →
Q. In which scenario can binary search be applied?
A.
Unsorted array
B.
Sorted array
C.
Linked list
D.
Stack
Show solution
Solution
Binary search can only be applied to a sorted array, as it relies on the order of elements to eliminate half of the search space.
Correct Answer:
B
— Sorted array
Learn More →
Q. In which scenario does binary search fail to work?
A.
When the array is sorted
B.
When the array is unsorted
C.
When the array contains duplicates
D.
When the array is empty
Show solution
Solution
Binary search requires the array to be sorted; it does not work on unsorted arrays.
Correct Answer:
B
— When the array is unsorted
Learn More →
Q. In which scenario does Heap Sort perform better than Quick Sort?
A.
When the array is nearly sorted
B.
When the array is large
C.
When memory usage is a concern
D.
When the array is small
Show solution
Solution
Heap Sort performs better than Quick Sort when memory usage is a concern, as it is an in-place sorting algorithm.
Correct Answer:
C
— When memory usage is a concern
Learn More →
Q. In which scenario does Quick Sort perform poorly?
A.
When the array is already sorted
B.
When the array is in reverse order
C.
When the array has many duplicate elements
D.
When the array is small
Show solution
Solution
Quick Sort performs poorly with a time complexity of O(n^2) when the array is already sorted, especially if the pivot is chosen poorly.
Correct Answer:
A
— When the array is already sorted
Learn More →
Q. In which scenario is BFS preferred over DFS?
A.
When the graph is very deep and solutions are rare.
B.
When you need to find the shortest path in an unweighted graph.
C.
When memory usage is a concern.
D.
When the graph is sparse.
Show solution
Solution
BFS is preferred when you need to find the shortest path in an unweighted graph.
Correct Answer:
B
— When you need to find the shortest path in an unweighted graph.
Learn More →
Q. In which scenario is binary search applicable?
A.
Unsorted array
B.
Sorted array
C.
Linked list
D.
Stack
Show solution
Solution
Binary search can only be applied to a sorted array.
Correct Answer:
B
— Sorted array
Learn More →
Showing 571 to 600 of 3237 (108 Pages)