Q. What is the primary purpose of a decision tree in machine learning?
A.
To visualize data distributions
B.
To classify or predict outcomes based on input features
C.
To reduce dimensionality of data
D.
To cluster similar data points
Show solution
Solution
A decision tree is primarily used for classification or regression tasks, where it predicts outcomes based on input features.
Correct Answer:
B
— To classify or predict outcomes based on input features
Learn More →
Q. What is the primary purpose of a hash table?
A.
Sorting data
B.
Storing data in a sorted manner
C.
Fast data retrieval
D.
Data compression
Show solution
Solution
The primary purpose of a hash table is to provide fast data retrieval using a hash function.
Correct Answer:
C
— Fast data retrieval
Learn More →
Q. What is the primary purpose of a neural network in case studies?
A.
Data storage
B.
Pattern recognition
C.
Data encryption
D.
Data visualization
Show solution
Solution
Neural networks are primarily used for pattern recognition in various case studies, allowing them to identify complex relationships in data.
Correct Answer:
B
— Pattern recognition
Learn More →
Q. What is the primary purpose of a parsing table in LR parsing?
A.
To store the grammar rules.
B.
To determine the next action based on the current state and input symbol.
C.
To keep track of the parse tree.
D.
To optimize the parsing process.
Show solution
Solution
The parsing table in LR parsing is used to determine the next action based on the current state and input symbol.
Correct Answer:
B
— To determine the next action based on the current state and input symbol.
Learn More →
Q. What is the primary purpose of a queue in the context of binary tree traversal?
A.
To store nodes for post-order traversal
B.
To store nodes for in-order traversal
C.
To store nodes for level-order traversal
D.
To store nodes for pre-order traversal
Show solution
Solution
A queue is primarily used for level-order traversal of a binary tree, allowing nodes to be processed in the order they are encountered.
Correct Answer:
C
— To store nodes for level-order traversal
Learn More →
Q. What is the primary purpose of a router in a network?
A.
To connect devices within the same network
B.
To filter traffic based on MAC addresses
C.
To route packets between different networks
D.
To provide a user interface for network management
Show solution
Solution
The primary purpose of a router is to route packets between different networks, making decisions based on IP addresses.
Correct Answer:
C
— To route packets between different networks
Learn More →
Q. What is the primary purpose of a stack in the context of binary tree traversal?
A.
To store tree nodes
B.
To reverse the order of traversal
C.
To keep track of visited nodes
D.
To implement recursion
Show solution
Solution
A stack is used to implement recursion iteratively, allowing for depth-first traversal of the binary tree.
Correct Answer:
D
— To implement recursion
Learn More →
Q. What is the primary purpose of a Support Vector Machine (SVM)?
A.
To perform regression analysis
B.
To classify data into different categories
C.
To reduce dimensionality of data
D.
To cluster similar data points
Show solution
Solution
SVM is primarily used for classification tasks, where it separates data into different categories using hyperplanes.
Correct Answer:
B
— To classify data into different categories
Learn More →
Q. What is the primary purpose of a switch in a network?
A.
To route packets between different networks
B.
To connect devices within the same network
C.
To provide internet access
D.
To encrypt data
Show solution
Solution
A switch connects devices within the same network, using MAC addresses to forward data to the correct destination.
Correct Answer:
B
— To connect devices within the same network
Learn More →
Q. What is the primary purpose of an AVL tree?
A.
To store data in a sorted manner
B.
To maintain balance for efficient searching
C.
To allow duplicate values
D.
To implement a stack
Show solution
Solution
An AVL tree is a self-balancing binary search tree where the difference in heights between the left and right subtrees cannot be more than one, ensuring efficient searching.
Correct Answer:
B
— To maintain balance for efficient searching
Learn More →
Q. What is the primary purpose of balancing in AVL and Red-Black trees?
A.
To reduce memory usage
B.
To ensure O(log n) time complexity for operations
C.
To simplify the tree structure
D.
To allow duplicate values
Show solution
Solution
The primary purpose of balancing in AVL and Red-Black trees is to ensure O(log n) time complexity for operations.
Correct Answer:
B
— To ensure O(log n) time complexity for operations
Learn More →
Q. What is the primary purpose of Breadth-First Search (BFS) in graph traversal?
A.
To find the shortest path in a weighted graph
B.
To explore all vertices at the present depth before moving on to vertices at the next depth level
C.
To sort the vertices of the graph
D.
To find a cycle in the graph
Show solution
Solution
BFS explores all vertices at the present depth level before moving on to the next level, making it suitable for finding the shortest path in unweighted graphs.
Correct Answer:
B
— To explore all vertices at the present depth before moving on to vertices at the next depth level
Learn More →
Q. What is the primary purpose of Dijkstra's algorithm?
A.
To find the shortest path in a weighted graph
B.
To sort an array
C.
To search for an element in a list
D.
To traverse a binary tree
Show solution
Solution
Dijkstra's algorithm is designed to find the shortest path from a source node to all other nodes in a weighted graph.
Correct Answer:
A
— To find the shortest path in a weighted graph
Learn More →
Q. What is the primary purpose of dynamic programming?
A.
To solve problems in linear time
B.
To optimize recursive algorithms
C.
To sort data efficiently
D.
To traverse data structures
Show solution
Solution
The primary purpose of dynamic programming is to optimize recursive algorithms by storing results of subproblems.
Correct Answer:
B
— To optimize recursive algorithms
Learn More →
Q. What is the primary purpose of error control in data transmission?
A.
To increase bandwidth
B.
To ensure data integrity
C.
To reduce latency
D.
To enhance security
Show solution
Solution
Error control is primarily used to ensure data integrity by detecting and correcting errors in transmitted data.
Correct Answer:
B
— To ensure data integrity
Learn More →
Q. What is the primary purpose of evaluation metrics in machine learning?
A.
To improve model training speed
B.
To assess model performance
C.
To increase data size
D.
To reduce overfitting
Show solution
Solution
Evaluation metrics are used to assess how well a machine learning model performs on a given task.
Correct Answer:
B
— To assess model performance
Learn More →
Q. What is the primary purpose of feature engineering in machine learning?
A.
To increase the size of the dataset
B.
To improve model performance by transforming raw data into meaningful features
C.
To select the best model for the data
D.
To reduce the complexity of the model
Show solution
Solution
Feature engineering transforms raw data into features that better represent the underlying problem, improving model performance.
Correct Answer:
B
— To improve model performance by transforming raw data into meaningful features
Learn More →
Q. What is the primary purpose of HTTP methods like GET and POST?
A.
Data encryption
B.
Data retrieval and submission
C.
Session management
D.
Error handling
Show solution
Solution
HTTP methods like GET and POST are used for data retrieval and submission between clients and servers.
Correct Answer:
B
— Data retrieval and submission
Learn More →
Q. What is the primary purpose of intermediate code generation in a compiler?
A.
To optimize the source code
B.
To translate high-level code to machine code
C.
To provide a platform-independent representation of the source code
D.
To perform lexical analysis
Show solution
Solution
Intermediate code generation creates a representation of the source code that is independent of the target machine, allowing for easier optimization and code generation.
Correct Answer:
C
— To provide a platform-independent representation of the source code
Learn More →
Q. What is the primary purpose of lexical analysis in a compiler?
A.
To generate intermediate code
B.
To convert source code into tokens
C.
To optimize the code
D.
To perform syntax checking
Show solution
Solution
Lexical analysis converts the source code into tokens, which are the basic building blocks for further processing in the compiler.
Correct Answer:
B
— To convert source code into tokens
Learn More →
Q. What is the primary purpose of linear regression in machine learning?
A.
To classify data into categories
B.
To predict a continuous outcome variable
C.
To cluster similar data points
D.
To reduce dimensionality of data
Show solution
Solution
Linear regression is used to predict a continuous outcome variable based on one or more predictor variables.
Correct Answer:
B
— To predict a continuous outcome variable
Learn More →
Q. What is the primary purpose of linear regression in real-world applications?
A.
To classify data into categories
B.
To predict a continuous outcome based on input features
C.
To cluster similar data points
D.
To reduce the dimensionality of data
Show solution
Solution
Linear regression is used to predict a continuous outcome based on one or more input features.
Correct Answer:
B
— To predict a continuous outcome based on input features
Learn More →
Q. What is the primary purpose of linear regression?
A.
To classify data into categories
B.
To predict a continuous outcome variable
C.
To cluster similar data points
D.
To reduce dimensionality of data
Show solution
Solution
Linear regression is used to predict a continuous outcome variable based on one or more predictor variables.
Correct Answer:
B
— To predict a continuous outcome variable
Learn More →
Q. What is the primary purpose of model deployment in machine learning?
A.
To train the model on new data
B.
To make the model available for use in production
C.
To evaluate the model's performance
D.
To visualize the model's architecture
Show solution
Solution
Model deployment makes the trained model available for use in real-world applications, allowing it to make predictions on new data.
Correct Answer:
B
— To make the model available for use in production
Learn More →
Q. What is the primary purpose of routing in a network?
A.
To switch data frames
B.
To determine the best path for data packets
C.
To encrypt data
D.
To manage user sessions
Show solution
Solution
Routing is primarily used to determine the best path for data packets to travel across networks, ensuring efficient data delivery.
Correct Answer:
B
— To determine the best path for data packets
Learn More →
Q. What is the primary purpose of subnetting?
A.
To increase the number of available IP addresses
B.
To improve network performance and security
C.
To simplify network management
D.
To connect different networks
Show solution
Solution
Subnetting is primarily used to improve network performance and security by dividing a larger network into smaller, manageable segments.
Correct Answer:
B
— To improve network performance and security
Learn More →
Q. What is the primary purpose of Support Vector Machines (SVM)?
A.
To perform clustering on unlabeled data
B.
To classify data into distinct categories
C.
To reduce dimensionality of data
D.
To generate synthetic data
Show solution
Solution
Support Vector Machines are primarily used for classification tasks, where they aim to find the optimal hyperplane that separates different classes in the feature space.
Correct Answer:
B
— To classify data into distinct categories
Learn More →
Q. What is the primary purpose of syntax-directed translation?
A.
To generate machine code directly from source code
B.
To produce an intermediate representation from the parse tree
C.
To optimize the code for better performance
D.
To perform lexical analysis on the source code
Show solution
Solution
Syntax-directed translation is primarily used to produce an intermediate representation from the parse tree.
Correct Answer:
B
— To produce an intermediate representation from the parse tree
Learn More →
Q. What is the primary purpose of the 'table' in a dynamic programming solution?
A.
To store intermediate results
B.
To sort data
C.
To track function calls
D.
To manage memory
Show solution
Solution
The primary purpose of the 'table' in dynamic programming is to store intermediate results to avoid redundant calculations.
Correct Answer:
A
— To store intermediate results
Learn More →
Q. What is the primary purpose of the 'visited' array in Dijkstra's algorithm?
A.
To store the shortest path from the source to each vertex.
B.
To keep track of which vertices have been processed.
C.
To hold the distances from the source to each vertex.
D.
To maintain the priority queue.
Show solution
Solution
The 'visited' array in Dijkstra's algorithm is used to keep track of which vertices have been processed to avoid reprocessing them.
Correct Answer:
B
— To keep track of which vertices have been processed.
Learn More →
Showing 1441 to 1470 of 3237 (108 Pages)