Q. Which of the following is a common optimization algorithm used in training neural networks?
A.
K-Means
B.
Gradient Descent
C.
Principal Component Analysis
D.
Support Vector Machine
Show solution
Solution
Gradient Descent is a widely used optimization algorithm for minimizing the loss function in neural networks.
Correct Answer:
B
— Gradient Descent
Learn More →
Q. Which of the following is a common programming language used in web development?
A.
Python
B.
HTML
C.
Java
D.
All of the above
Show solution
Solution
All of the above are common programming languages used in web development.
Correct Answer:
D
— All of the above
Learn More →
Q. Which of the following is a common real-world application of dynamic programming?
A.
Image compression
B.
Network routing
C.
Stock market prediction
D.
Resource allocation
Show solution
Solution
Dynamic programming is often used in resource allocation problems where optimal distribution of limited resources is required.
Correct Answer:
D
— Resource allocation
Learn More →
Q. Which of the following is a common technique for feature selection?
A.
Principal Component Analysis (PCA)
B.
K-Means Clustering
C.
Linear Regression
D.
Support Vector Machines
Show solution
Solution
Principal Component Analysis (PCA) is commonly used for feature selection by reducing dimensionality while retaining variance.
Correct Answer:
A
— Principal Component Analysis (PCA)
Learn More →
Q. Which of the following is a common technique for handling missing numerical data?
A.
One-hot encoding
B.
Mean imputation
C.
Label encoding
D.
Feature scaling
Show solution
Solution
Mean imputation is a common technique where missing values are replaced with the mean of the available data.
Correct Answer:
B
— Mean imputation
Learn More →
Q. Which of the following is a common technique in feature selection?
A.
Principal Component Analysis (PCA)
B.
K-means Clustering
C.
Support Vector Machines
D.
Random Forest Regression
Show solution
Solution
Principal Component Analysis (PCA) is used to reduce dimensionality and select important features.
Correct Answer:
A
— Principal Component Analysis (PCA)
Learn More →
Q. Which of the following is a common technique to prevent overfitting in CNNs?
A.
Increasing the learning rate
B.
Using dropout layers
C.
Reducing the number of layers
D.
Using a smaller batch size
Show solution
Solution
Using dropout layers is a common technique to prevent overfitting by randomly setting a fraction of input units to 0 during training.
Correct Answer:
B
— Using dropout layers
Learn More →
Q. Which of the following is a common technique used in code optimization?
A.
Inlining functions
B.
Adding more comments
C.
Increasing variable scope
D.
Using more complex data structures
Show solution
Solution
Inlining functions is a common technique used in code optimization to reduce function call overhead.
Correct Answer:
A
— Inlining functions
Learn More →
Q. Which of the following is a common technique used in feature selection?
A.
Principal Component Analysis (PCA)
B.
K-Means Clustering
C.
Support Vector Machines (SVM)
D.
Random Forest Regression
Show solution
Solution
Principal Component Analysis (PCA) is a dimensionality reduction technique that can also be used for feature selection by identifying the most important features.
Correct Answer:
A
— Principal Component Analysis (PCA)
Learn More →
Q. Which of the following is a common technique used in lexical analysis?
A.
Recursive descent parsing
B.
Finite state machines
C.
Dynamic programming
D.
Backtracking
Show solution
Solution
Finite state machines are commonly used in lexical analysis to recognize tokens based on regular expressions.
Correct Answer:
B
— Finite state machines
Learn More →
Q. Which of the following is a common tool used for model deployment?
A.
TensorFlow Serving
B.
Pandas
C.
NumPy
D.
Matplotlib
Show solution
Solution
TensorFlow Serving is a popular tool specifically designed for deploying machine learning models in production environments.
Correct Answer:
A
— TensorFlow Serving
Learn More →
Q. Which of the following is a common use case for Decision Trees?
A.
Image recognition.
B.
Customer segmentation.
C.
Natural language processing.
D.
Time series forecasting.
Show solution
Solution
Decision Trees are commonly used for customer segmentation due to their ability to handle categorical data effectively.
Correct Answer:
B
— Customer segmentation.
Learn More →
Q. Which of the following is a common use case for Random Forests?
A.
Image recognition.
B.
Time series forecasting.
C.
Spam detection.
D.
All of the above.
Show solution
Solution
Random Forests can be applied to various tasks, including image recognition, time series forecasting, and spam detection.
Correct Answer:
D
— All of the above.
Learn More →
Q. Which of the following is a common use of supervised learning in marketing?
A.
Customer segmentation
B.
Churn prediction
C.
Market basket analysis
D.
Anomaly detection
Show solution
Solution
Churn prediction is a common application of supervised learning in marketing, helping businesses identify customers likely to leave.
Correct Answer:
B
— Churn prediction
Learn More →
Q. Which of the following is a connection-oriented protocol?
A.
UDP
B.
IP
C.
TCP
D.
ICMP
Show solution
Solution
TCP (Transmission Control Protocol) is a connection-oriented protocol that ensures reliable data transmission.
Correct Answer:
C
— TCP
Learn More →
Q. Which of the following is a disadvantage of Decision Trees?
A.
They can handle both numerical and categorical data
B.
They are prone to overfitting
C.
They are easy to interpret
D.
They require less data
Show solution
Solution
Decision Trees are prone to overfitting, especially when they are deep and complex.
Correct Answer:
B
— They are prone to overfitting
Learn More →
Q. Which of the following is a disadvantage of DFS?
A.
It can get stuck in deep paths.
B.
It requires more memory than BFS.
C.
It cannot be implemented recursively.
D.
It is slower than BFS.
Show solution
Solution
DFS can get stuck in deep paths, leading to inefficient traversal in certain graphs.
Correct Answer:
A
— It can get stuck in deep paths.
Learn More →
Q. Which of the following is a disadvantage of K-means clustering?
A.
It is sensitive to outliers
B.
It requires the number of clusters to be specified in advance
C.
It can converge to local minima
D.
All of the above
Show solution
Solution
All of the listed options are disadvantages of K-means clustering, making it sensitive to outliers, requiring prior knowledge of the number of clusters, and potentially converging to local minima.
Correct Answer:
D
— All of the above
Learn More →
Q. Which of the following is a disadvantage of the K-means algorithm?
A.
It can handle large datasets efficiently
B.
It requires the number of clusters to be specified in advance
C.
It is sensitive to outliers
D.
It can be used for both supervised and unsupervised learning
Show solution
Solution
A key disadvantage of K-means is that it requires the user to specify the number of clusters beforehand, which may not always be known.
Correct Answer:
B
— It requires the number of clusters to be specified in advance
Learn More →
Q. Which of the following is a disadvantage of using a linked list over an array?
A.
Dynamic size
B.
Ease of insertion/deletion
C.
Memory overhead
D.
Random access
Show solution
Solution
Linked lists do not allow random access to elements, unlike arrays which provide direct access via indices.
Correct Answer:
D
— Random access
Learn More →
Q. Which of the following is a disadvantage of using arrays?
A.
Fixed size
B.
Random access
C.
Easy to implement
D.
Memory locality
Show solution
Solution
Arrays have a fixed size, which can be a disadvantage when the number of elements is not known in advance.
Correct Answer:
A
— Fixed size
Learn More →
Q. Which of the following is a disadvantage of using decision trees for model selection?
A.
They are easy to interpret
B.
They can easily overfit the training data
C.
They handle both numerical and categorical data
D.
They require less data preprocessing
Show solution
Solution
Decision trees can easily overfit the training data, especially if they are not pruned or if the tree is too deep.
Correct Answer:
B
— They can easily overfit the training data
Learn More →
Q. Which of the following is a disadvantage of using linked lists over arrays?
A.
Dynamic size
B.
Ease of insertion/deletion
C.
Memory overhead
D.
Random access
Show solution
Solution
Linked lists have a memory overhead due to storing pointers, which makes them less memory efficient compared to arrays.
Correct Answer:
C
— Memory overhead
Learn More →
Q. Which of the following is a disadvantage of using SVM?
A.
It can handle large datasets efficiently
B.
It is sensitive to the choice of kernel
C.
It provides probabilistic outputs
D.
It is easy to interpret
Show solution
Solution
SVM is sensitive to the choice of kernel, which can significantly affect its performance and requires careful tuning.
Correct Answer:
B
— It is sensitive to the choice of kernel
Learn More →
Q. Which of the following is a disadvantage of using too many features in a model?
A.
Increased interpretability
B.
Higher computational cost
C.
Better model performance
D.
Reduced risk of overfitting
Show solution
Solution
Using too many features can lead to higher computational costs and may increase the risk of overfitting.
Correct Answer:
B
— Higher computational cost
Learn More →
Q. Which of the following is a feature of HTTP/2 compared to HTTP/1.1?
A.
Text-based protocol
B.
Multiplexing
C.
Single request per connection
D.
No header compression
Show solution
Solution
HTTP/2 introduces multiplexing, allowing multiple requests and responses to be sent simultaneously over a single connection.
Correct Answer:
B
— Multiplexing
Learn More →
Q. Which of the following is a key advantage of AVL trees over Red-Black trees?
A.
Faster search times.
B.
Easier to implement.
C.
Less memory usage.
D.
More flexible balancing.
Show solution
Solution
AVL trees provide faster search times compared to Red-Black trees due to stricter balancing.
Correct Answer:
A
— Faster search times.
Learn More →
Q. Which of the following is a key advantage of binary search over linear search?
A.
Simplicity
B.
Efficiency
C.
Memory usage
D.
Flexibility
Show solution
Solution
Binary search is more efficient than linear search, especially for large datasets, due to its O(log n) time complexity.
Correct Answer:
B
— Efficiency
Learn More →
Q. Which of the following is a key advantage of LR parsing over LL parsing?
A.
LR parsing can handle left recursion.
B.
LR parsing is simpler to implement.
C.
LL parsing can handle more complex grammars.
D.
LR parsing requires less memory.
Show solution
Solution
LR parsing can handle left recursion, which LL parsing cannot.
Correct Answer:
A
— LR parsing can handle left recursion.
Learn More →
Q. Which of the following is a key advantage of using Random Forests over a single decision tree?
A.
Faster training time
B.
Higher interpretability
C.
Reduced risk of overfitting
D.
Simpler model structure
Show solution
Solution
Random Forests reduce the risk of overfitting by averaging the predictions of multiple decision trees, leading to better generalization.
Correct Answer:
C
— Reduced risk of overfitting
Learn More →
Showing 2611 to 2640 of 3237 (108 Pages)