Q. What is the main disadvantage of using Quick Sort?
A.
It is not stable
B.
It is slower than Merge Sort
C.
It requires more memory
D.
It is difficult to implement
Show solution
Solution
The main disadvantage of Quick Sort is that it is not a stable sorting algorithm.
Correct Answer:
A
— It is not stable
Learn More →
Q. What is the main drawback of greedy algorithms?
A.
They are too slow
B.
They may not produce the optimal solution
C.
They require more memory
D.
They are difficult to implement
Show solution
Solution
The main drawback of greedy algorithms is that they may not produce the optimal solution for all problems.
Correct Answer:
B
— They may not produce the optimal solution
Learn More →
Q. What is the main drawback of using accuracy as a performance metric?
A.
It does not consider false positives and false negatives
B.
It is difficult to calculate
C.
It is only applicable to binary classification
D.
It requires a large dataset
Show solution
Solution
Accuracy can be misleading, especially in imbalanced datasets, as it does not account for the distribution of classes.
Correct Answer:
A
— It does not consider false positives and false negatives
Learn More →
Q. What is the main drawback of using accuracy as an evaluation metric?
A.
It does not account for class imbalance
B.
It is difficult to calculate
C.
It only applies to binary classification
D.
It does not provide insights into model performance
Show solution
Solution
Accuracy can be misleading in imbalanced datasets, as it may not reflect the true performance of the model.
Correct Answer:
A
— It does not account for class imbalance
Learn More →
Q. What is the main function of a switch in a network?
A.
To connect different networks
B.
To filter and forward data to specific devices within the same network
C.
To provide internet access
D.
To manage network security
Show solution
Solution
A switch filters and forwards data to specific devices within the same network, improving network efficiency.
Correct Answer:
B
— To filter and forward data to specific devices within the same network
Learn More →
Q. What is the main function of a web browser in relation to HTTP?
A.
To store data
B.
To interpret HTML
C.
To manage network connections
D.
To encrypt data
Show solution
Solution
The main function of a web browser in relation to HTTP is to interpret HTML and render web pages for users.
Correct Answer:
B
— To interpret HTML
Learn More →
Q. What is the main function of an activation function in a neural network?
A.
To initialize weights
B.
To introduce non-linearity into the model
C.
To optimize the learning rate
D.
To reduce the number of layers
Show solution
Solution
Activation functions introduce non-linearity into neural networks, allowing them to learn complex patterns.
Correct Answer:
B
— To introduce non-linearity into the model
Learn More →
Q. What is the main function of cookies in HTTP?
A.
Data encryption
B.
Session management
C.
File storage
D.
Network routing
Show solution
Solution
Cookies are used for session management, allowing servers to remember user sessions and preferences.
Correct Answer:
B
— Session management
Learn More →
Q. What is the main function of the 'Cache-Control' header in HTTP?
A.
To control the server load
B.
To manage client-side caching
C.
To specify the content type
D.
To authenticate users
Show solution
Solution
The 'Cache-Control' header is used to specify directives for caching mechanisms in both requests and responses, controlling how resources are cached.
Correct Answer:
B
— To manage client-side caching
Learn More →
Q. What is the main function of the 'POST' method in HTTP?
A.
To retrieve data
B.
To send data to the server
C.
To update data
D.
To delete data
Show solution
Solution
The 'POST' method in HTTP is used to send data to the server, often resulting in a change in state or side effects on the server.
Correct Answer:
B
— To send data to the server
Learn More →
Q. What is the main function of the Data Link Layer in the OSI model?
A.
To provide error detection and correction
B.
To establish, maintain, and terminate connections
C.
To route packets between networks
D.
To encrypt data
Show solution
Solution
The Data Link Layer (Layer 2) provides error detection and correction, ensuring reliable data transfer over physical media.
Correct Answer:
A
— To provide error detection and correction
Learn More →
Q. What is the main function of the HTTP header?
A.
To encrypt data
B.
To provide metadata about the request or response
C.
To establish a connection
D.
To route packets
Show solution
Solution
The HTTP header provides metadata about the request or response, such as content type and length.
Correct Answer:
B
— To provide metadata about the request or response
Learn More →
Q. What is the main function of the Network Layer in the OSI model?
A.
Data formatting
B.
Path determination and logical addressing
C.
Session management
D.
Error control
Show solution
Solution
The main function of the Network Layer is path determination and logical addressing for data packets.
Correct Answer:
B
— Path determination and logical addressing
Learn More →
Q. What is the main function of the runtime environment in a programming language?
A.
To compile the source code
B.
To manage memory and resources during execution
C.
To perform lexical analysis
D.
To generate intermediate code
Show solution
Solution
The runtime environment manages memory, handles input/output, and provides other services needed during the execution of a program.
Correct Answer:
B
— To manage memory and resources during execution
Learn More →
Q. What is the main function of the Spanning Tree Protocol (STP)?
A.
To prevent routing loops
B.
To manage IP address allocation
C.
To prevent switching loops
D.
To enhance data encryption
Show solution
Solution
The Spanning Tree Protocol (STP) is used to prevent switching loops in a network by creating a loop-free logical topology.
Correct Answer:
C
— To prevent switching loops
Learn More →
Q. What is the main function of the TCP protocol in relation to HTTP?
A.
Data encryption
B.
Error detection
C.
Reliable data transfer
D.
Data compression
Show solution
Solution
TCP (Transmission Control Protocol) provides reliable data transfer for HTTP by ensuring that data packets are delivered in order and without errors.
Correct Answer:
C
— Reliable data transfer
Learn More →
Q. What is the main function of the TCP protocol in the TCP/IP model?
A.
Routing
B.
Error detection
C.
Data segmentation
D.
Addressing
Show solution
Solution
The main function of the TCP protocol is data segmentation, which breaks down messages into smaller packets for transmission.
Correct Answer:
C
— Data segmentation
Learn More →
Q. What is the main goal of code generation in a compiler?
A.
To analyze the syntax of the source code
B.
To produce machine code from intermediate code
C.
To optimize the source code
D.
To perform lexical analysis
Show solution
Solution
The main goal of code generation is to produce machine code from the intermediate code generated during compilation.
Correct Answer:
B
— To produce machine code from intermediate code
Learn More →
Q. What is the main goal of dimensionality reduction techniques like PCA?
A.
To increase the number of features
B.
To improve model accuracy
C.
To reduce the number of features while preserving variance
D.
To create new features from existing ones
Show solution
Solution
PCA aims to reduce the number of features while preserving as much variance as possible in the data.
Correct Answer:
C
— To reduce the number of features while preserving variance
Learn More →
Q. What is the main goal of dimensionality reduction?
A.
To increase the number of features
B.
To reduce the complexity of the model
C.
To improve model interpretability and reduce overfitting
D.
To enhance the training speed
Show solution
Solution
Dimensionality reduction aims to simplify the model while maintaining its performance.
Correct Answer:
C
— To improve model interpretability and reduce overfitting
Learn More →
Q. What is the main goal of feature scaling?
A.
To reduce the number of features
B.
To ensure all features contribute equally to the distance calculations
C.
To improve the interpretability of the model
D.
To increase the complexity of the model
Show solution
Solution
Feature scaling ensures that all features are on a similar scale, which is important for distance-based algorithms.
Correct Answer:
B
— To ensure all features contribute equally to the distance calculations
Learn More →
Q. What is the main goal of feature selection?
A.
To increase the number of features
B.
To improve model performance by reducing overfitting
C.
To create new features from existing ones
D.
To visualize the data
Show solution
Solution
The main goal of feature selection is to improve model performance by reducing overfitting and enhancing the model's ability to generalize to unseen data.
Correct Answer:
B
— To improve model performance by reducing overfitting
Learn More →
Q. What is the main goal of model selection?
A.
To find the most complex model
B.
To choose the model with the highest accuracy on the training set
C.
To identify the model that generalizes best to unseen data
D.
To minimize the number of features used
Show solution
Solution
The main goal of model selection is to identify the model that generalizes best to unseen data.
Correct Answer:
C
— To identify the model that generalizes best to unseen data
Learn More →
Q. What is the main goal of using cross-validation in model selection?
A.
To increase the size of the training set
B.
To reduce overfitting and assess model performance
C.
To improve feature engineering
D.
To select hyperparameters
Show solution
Solution
Cross-validation helps reduce overfitting and provides a better assessment of model performance.
Correct Answer:
B
— To reduce overfitting and assess model performance
Learn More →
Q. What is the main idea behind dynamic programming?
A.
To solve problems recursively without storing results
B.
To break problems into smaller subproblems and store their solutions
C.
To use brute force to find the optimal solution
D.
To avoid using any form of recursion
Show solution
Solution
Dynamic programming involves breaking a problem into smaller subproblems, solving each subproblem just once, and storing their solutions to avoid redundant computations.
Correct Answer:
B
— To break problems into smaller subproblems and store their solutions
Learn More →
Q. What is the main idea behind the Bellman-Ford algorithm in dynamic programming?
A.
To find the shortest path in a graph
B.
To sort a list of numbers
C.
To find the maximum flow in a network
D.
To compute the Fibonacci sequence
Show solution
Solution
The Bellman-Ford algorithm is used to find the shortest path from a single source vertex to all other vertices in a weighted graph.
Correct Answer:
A
— To find the shortest path in a graph
Learn More →
Q. What is the main idea behind the dynamic programming approach to the Coin Change Problem?
A.
Using a greedy algorithm
B.
Finding the maximum number of coins
C.
Minimizing the number of coins needed to make a certain amount
D.
Sorting the coins
Show solution
Solution
The dynamic programming approach to the Coin Change Problem focuses on minimizing the number of coins needed to make a specific amount.
Correct Answer:
C
— Minimizing the number of coins needed to make a certain amount
Learn More →
Q. What is the main idea behind the dynamic programming solution for the coin change problem?
A.
Using a greedy algorithm to minimize coins
B.
Finding the maximum number of coins
C.
Calculating the minimum number of coins needed for each amount
D.
Sorting the coins in descending order
Show solution
Solution
The dynamic programming solution for the coin change problem calculates the minimum number of coins needed for each amount up to the target.
Correct Answer:
C
— Calculating the minimum number of coins needed for each amount
Learn More →
Q. What is the main limitation of Dijkstra's algorithm?
A.
It cannot find paths in directed graphs.
B.
It cannot handle graphs with cycles.
C.
It cannot handle negative weight edges.
D.
It is not efficient for large graphs.
Show solution
Solution
The main limitation of Dijkstra's algorithm is that it cannot handle graphs with negative weight edges, as it may lead to incorrect path calculations.
Correct Answer:
C
— It cannot handle negative weight edges.
Learn More →
Q. What is the main limitation of K-Means clustering?
A.
It is computationally expensive
B.
It requires a predefined number of clusters
C.
It can only handle numerical data
D.
It is sensitive to outliers
Show solution
Solution
K-Means requires the user to specify the number of clusters in advance, which can be a limitation.
Correct Answer:
B
— It requires a predefined number of clusters
Learn More →
Showing 1201 to 1230 of 3237 (108 Pages)