Q. Which of the following is a real-world application of a queue?
A.
Undo functionality in text editors
B.
Task scheduling in operating systems
C.
Storing elements in a stack
D.
Representing hierarchical data
Show solution
Solution
Queues are commonly used in task scheduling in operating systems where processes are managed in a first-come, first-served manner.
Correct Answer:
B
— Task scheduling in operating systems
Learn More →
Q. Which of the following is a real-world application of a stack?
A.
Undo functionality in text editors
B.
Managing print jobs in a printer
C.
Handling requests in a web server
D.
Storing user sessions in a database
Show solution
Solution
Stacks are used in text editors to implement the undo functionality, allowing users to revert to previous states.
Correct Answer:
A
— Undo functionality in text editors
Learn More →
Q. Which of the following is a real-world application of AVL trees?
A.
Implementing a web crawler
B.
Managing a database index
C.
Sorting a list of numbers
D.
Storing user sessions
Show solution
Solution
AVL trees are often used in database indexing to maintain sorted data and allow for efficient search, insert, and delete operations.
Correct Answer:
B
— Managing a database index
Learn More →
Q. Which of the following is a real-world application of binary search?
A.
Finding a name in a phone book
B.
Sorting a list of numbers
C.
Traversing a tree
D.
Inserting an element in a queue
Show solution
Solution
Binary search is commonly used to find a name in a sorted phone book efficiently.
Correct Answer:
A
— Finding a name in a phone book
Learn More →
Q. Which of the following is a real-world application of binary trees in computer science?
A.
Database indexing
B.
Image processing
C.
Network routing
D.
All of the above
Show solution
Solution
Binary trees are used in various applications including database indexing (B-trees), image processing (quadtree), and network routing (routing tables).
Correct Answer:
D
— All of the above
Learn More →
Q. Which of the following is a real-world application of binary trees?
A.
File system organization
B.
Web page ranking
C.
Network routing
D.
Data compression
Show solution
Solution
Binary trees are commonly used to represent hierarchical data structures, such as file systems, where directories and files are organized in a tree format.
Correct Answer:
A
— File system organization
Learn More →
Q. Which of the following is a real-world application of clustering?
A.
Spam detection in emails
B.
Image classification
C.
Market segmentation
D.
Sentiment analysis
Show solution
Solution
Market segmentation is a common application of clustering, where customers are grouped based on purchasing behavior.
Correct Answer:
C
— Market segmentation
Learn More →
Q. Which of the following is a real-world application of Depth-First Search (DFS)?
A.
Web crawling
B.
Finding the shortest path in a road network
C.
Social network analysis
D.
Network broadcasting
Show solution
Solution
DFS is commonly used in web crawling to explore the links on a webpage deeply before backtracking to explore other links.
Correct Answer:
A
— Web crawling
Learn More →
Q. Which of the following is a real-world application of DFS?
A.
Finding the shortest path in a road network.
B.
Web crawling.
C.
Social network analysis.
D.
Network broadcasting.
Show solution
Solution
DFS is commonly used in web crawling to explore the links on a webpage.
Correct Answer:
B
— Web crawling.
Learn More →
Q. Which of the following is a real-world application of Dijkstra's algorithm?
A.
Finding the shortest path in a maze
B.
Calculating the minimum spanning tree
C.
Routing in computer networks
D.
Sorting a list of numbers
Show solution
Solution
Dijkstra's algorithm is commonly used for routing in computer networks to find the shortest path between nodes.
Correct Answer:
C
— Routing in computer networks
Learn More →
Q. Which of the following is a real-world application of dynamic programming?
A.
Image compression
B.
Network routing
C.
Resource allocation
D.
All of the above
Show solution
Solution
Dynamic programming can be applied in various real-world scenarios, including image compression, network routing, and resource allocation.
Correct Answer:
D
— All of the above
Learn More →
Q. Which of the following is a real-world application of feature engineering?
A.
Image recognition
B.
Natural language processing
C.
Fraud detection
D.
All of the above
Show solution
Solution
Feature engineering is applicable in various real-world scenarios, including image recognition, natural language processing, and fraud detection.
Correct Answer:
D
— All of the above
Learn More →
Q. Which of the following is a real-world application of Heap Sort?
A.
Database sorting
B.
Real-time systems
C.
Memory management
D.
All of the above
Show solution
Solution
Heap Sort is used in various real-world applications including database sorting, real-time systems, and memory management due to its efficiency.
Correct Answer:
D
— All of the above
Learn More →
Q. Which of the following is a real-world application of linear regression?
A.
Image classification
B.
Stock price prediction
C.
Customer segmentation
D.
Natural language processing
Show solution
Solution
Linear regression is commonly used in stock price prediction to model the relationship between stock prices and various influencing factors.
Correct Answer:
B
— Stock price prediction
Learn More →
Q. Which of the following is a real-world application of linked lists?
A.
Implementing a stack
B.
Storing a collection of items
C.
Maintaining a playlist of songs
D.
All of the above
Show solution
Solution
Linked lists can be used to implement stacks, store collections, and maintain playlists, making option 'All of the above' correct.
Correct Answer:
D
— All of the above
Learn More →
Q. Which of the following is a real-world application of neural networks in healthcare?
A.
Predicting stock prices
B.
Diagnosing diseases
C.
Weather forecasting
D.
Social media analysis
Show solution
Solution
Neural networks can analyze medical images and patient data to assist in diagnosing diseases.
Correct Answer:
B
— Diagnosing diseases
Learn More →
Q. Which of the following is a real-world application of Random Forests in agriculture?
A.
Predicting crop yields based on environmental factors
B.
Designing irrigation systems
C.
Creating pest control strategies
D.
Developing new crop varieties
Show solution
Solution
Random Forests can predict crop yields by analyzing various environmental factors affecting agriculture.
Correct Answer:
A
— Predicting crop yields based on environmental factors
Learn More →
Q. Which of the following is a real-world application of Red-Black trees?
A.
Memory management in operating systems
B.
Database indexing
C.
Network routing algorithms
D.
All of the above
Show solution
Solution
Red-Black trees are used in various applications including memory management, database indexing, and network routing due to their balanced nature.
Correct Answer:
D
— All of the above
Learn More →
Q. Which of the following is a real-world application of searching algorithms?
A.
Finding a specific file in a file system
B.
Sorting a list of names
C.
Managing a stack of books
D.
Creating a linked list
Show solution
Solution
Searching algorithms are used to find a specific file in a file system, allowing users to quickly locate their desired documents.
Correct Answer:
A
— Finding a specific file in a file system
Learn More →
Q. Which of the following is a real-world application of stacks?
A.
Undo functionality in text editors
B.
Storing user data in databases
C.
Managing network packets
D.
Sorting large datasets
Show solution
Solution
Stacks are used in undo functionality in text editors, allowing users to revert to previous states.
Correct Answer:
A
— Undo functionality in text editors
Learn More →
Q. Which of the following is a requirement for an LL(1) parser?
A.
The grammar must be left recursive.
B.
The grammar must be ambiguous.
C.
The grammar must be free of left recursion.
D.
The grammar must have multiple left factors.
Show solution
Solution
An LL(1) parser requires the grammar to be free of left recursion to ensure that it can make decisions based on a single lookahead token.
Correct Answer:
C
— The grammar must be free of left recursion.
Learn More →
Q. Which of the following is a requirement for binary search to work?
A.
The array must be sorted
B.
The array must be of even length
C.
The array must contain unique elements
D.
The array must be in ascending order
Show solution
Solution
The primary requirement for binary search is that the array must be sorted, regardless of whether it contains unique elements or its length.
Correct Answer:
A
— The array must be sorted
Learn More →
Q. Which of the following is a requirement for using binary search?
A.
The array must be sorted
B.
The array must be unsorted
C.
The array must contain unique elements
D.
The array must be of fixed size
Show solution
Solution
Binary search requires the array to be sorted to function correctly.
Correct Answer:
A
— The array must be sorted
Learn More →
Q. Which of the following is a secure version of HTTP?
A.
FTP
B.
HTTPS
C.
SMTP
D.
IMAP
Show solution
Solution
HTTPS (Hypertext Transfer Protocol Secure) is the secure version of HTTP, using encryption to protect data.
Correct Answer:
B
— HTTPS
Learn More →
Q. Which of the following is a stable sorting algorithm?
A.
Quick Sort
B.
Heap Sort
C.
Merge Sort
D.
Selection Sort
Show solution
Solution
Merge Sort is a stable sorting algorithm, meaning it maintains the relative order of equal elements.
Correct Answer:
C
— Merge Sort
Learn More →
Q. Which of the following is a technique for dimensionality reduction?
A.
Support Vector Machines
B.
K-Means Clustering
C.
Linear Discriminant Analysis
D.
Decision Trees
Show solution
Solution
Linear Discriminant Analysis (LDA) is a technique used for dimensionality reduction while preserving class separability.
Correct Answer:
C
— Linear Discriminant Analysis
Learn More →
Q. Which of the following is a type of malware?
A.
Antivirus
B.
Spyware
C.
Firewall
D.
Router
Show solution
Solution
Spyware is a type of malware.
Correct Answer:
B
— Spyware
Learn More →
Q. Which of the following is a typical application of Dijkstra's algorithm?
A.
Finding the minimum spanning tree of a graph
B.
Routing in computer networks
C.
Sorting a list of numbers
D.
Searching for an element in a database
Show solution
Solution
Dijkstra's algorithm is commonly used in routing algorithms for computer networks to find the shortest path.
Correct Answer:
B
— Routing in computer networks
Learn More →
Q. Which of the following is a typical use case for queues?
A.
Undo functionality in applications
B.
Task scheduling in operating systems
C.
Expression evaluation
D.
Backtracking algorithms
Show solution
Solution
Queues are commonly used in task scheduling in operating systems to manage processes in a first-come, first-served manner.
Correct Answer:
B
— Task scheduling in operating systems
Learn More →
Q. Which of the following is a valid application of a stack?
A.
Undo functionality in text editors
B.
Managing tasks in a queue
C.
Storing data in a database
D.
Sorting elements in an array
Show solution
Solution
Stacks are used for undo functionality in text editors because they allow the last action to be reversed easily.
Correct Answer:
A
— Undo functionality in text editors
Learn More →
Showing 2671 to 2700 of 3237 (108 Pages)