Computer Science & IT

Download Q&A
Q. Which of the following statements is true about AVL and Red-Black Trees?
  • A. AVL trees are faster for search operations than Red-Black trees
  • B. Red-Black trees are always more balanced than AVL trees
  • C. Both trees have the same height for n nodes
  • D. AVL trees require more memory than Red-Black trees
Q. Which of the following statements is true about AVL trees?
  • A. They are always complete binary trees.
  • B. They can have duplicate values.
  • C. They are more rigidly balanced than Red-Black trees.
  • D. They require more memory than binary search trees.
Q. Which of the following statements is true about BFS?
  • A. BFS can be implemented using a stack.
  • B. BFS is not suitable for finding shortest paths.
  • C. BFS explores nodes level by level.
  • D. BFS is faster than DFS in all cases.
Q. Which of the following statements is true about binary search?
  • A. It can be used on unsorted arrays
  • B. It requires a sorted array
  • C. It is slower than linear search
  • D. It can only find unique elements
Q. Which of the following statements is true about Decision Trees?
  • A. They can only be used for regression tasks
  • B. They can handle both categorical and numerical data
  • C. They require normalization of data
  • D. They are always the best choice for any dataset
Q. Which of the following statements is true about DFS?
  • A. It can be implemented using a queue.
  • B. It is not suitable for finding shortest paths.
  • C. It always uses less memory than BFS.
  • D. It visits nodes in level order.
Q. Which of the following statements is true about Dijkstra's algorithm?
  • A. It can handle negative weight edges.
  • B. It always finds the shortest path.
  • C. It can be used for directed graphs only.
  • D. It requires a complete graph.
Q. Which of the following statements is true about dynamic programming?
  • A. It is only applicable to optimization problems
  • B. It can be used for both optimization and counting problems
  • C. It is always faster than greedy algorithms
  • D. It requires a sorted input
Q. Which of the following statements is true about hierarchical clustering?
  • A. It requires the number of clusters to be specified in advance
  • B. It can produce a hierarchy of clusters
  • C. It is always faster than K-means
  • D. It only works with numerical data
Q. Which of the following statements is true about K-means clustering?
  • A. It can only be applied to large datasets
  • B. It is sensitive to the initial placement of centroids
  • C. It guarantees finding the global optimum
  • D. It can handle categorical data directly
Q. Which of the following statements is true about LL and LR parsers?
  • A. LL parsers are more powerful than LR parsers.
  • B. LR parsers can handle all LL grammars.
  • C. LL parsers can handle all LR grammars.
  • D. Both LL and LR parsers are equivalent in power.
Q. Which of the following statements is true about Random Forests?
  • A. They are always less accurate than a single Decision Tree
  • B. They can only be used for regression tasks
  • C. They improve accuracy by averaging multiple trees
  • D. They require more computational resources than a single tree
Q. Which of the following statements is true about Red-Black trees?
  • A. They are always perfectly balanced
  • B. They can have a height of up to 2*log(n+1)
  • C. They require more memory than AVL trees
  • D. They are not suitable for dynamic datasets
Q. Which of the following statements is true about the Bellman-Ford algorithm?
  • A. It can handle negative weight edges
  • B. It is faster than Dijkstra's algorithm for all graphs
  • C. It only works on directed graphs
  • D. It cannot detect negative weight cycles
Q. Which of the following statements is true about the height of an AVL tree?
  • A. It can be greater than log(n)
  • B. It is always less than or equal to 1.44 log(n)
  • C. It is always equal to log(n)
  • D. It can be less than log(n)
Q. Which of the following statements is true regarding BFS?
  • A. It can be implemented using a stack
  • B. It can find the shortest path in weighted graphs
  • C. It uses a queue for traversal
  • D. It is faster than DFS in all cases
Q. Which of the following statements is true regarding K-means clustering?
  • A. It can only be applied to spherical clusters
  • B. It is sensitive to the initial placement of centroids
  • C. It guarantees finding the global optimum
  • D. It can handle categorical data directly
Q. Which of the following statements is true regarding the balancing of AVL trees?
  • A. They require fewer rotations than Red-Black trees
  • B. They are always balanced after every insertion
  • C. They can become unbalanced after deletion
  • D. They do not require balancing at all
Q. Which of the following statements is true regarding the time complexity of DFS?
  • A. O(V + E)
  • B. O(V^2)
  • C. O(E log V)
  • D. O(V log V)
Q. Which of the following techniques can be used to address multicollinearity?
  • A. Feature selection
  • B. Regularization techniques like Lasso
  • C. Principal Component Analysis (PCA)
  • D. All of the above
Q. Which of the following techniques can be used to address overfitting in linear regression?
  • A. Increasing the number of features
  • B. Using regularization techniques like Lasso or Ridge
  • C. Decreasing the size of the training dataset
  • D. Ignoring outliers
Q. Which of the following techniques can be used to assess the linearity assumption in linear regression?
  • A. Residual plots
  • B. Box plots
  • C. Heat maps
  • D. Pie charts
Q. Which of the following techniques can be used to handle imbalanced datasets in classification?
  • A. Data augmentation
  • B. Feature scaling
  • C. Cross-validation
  • D. Resampling methods
Q. Which of the following techniques can be used to handle missing values in Decision Trees?
  • A. Imputation
  • B. Ignoring missing values
  • C. Using a separate category for missing values
  • D. All of the above
Q. Which of the following techniques can be used to improve a linear regression model?
  • A. Adding more irrelevant features
  • B. Feature scaling
  • C. Using a more complex model
  • D. Ignoring outliers
Q. Which of the following techniques can be used to improve the performance of a classification model?
  • A. Feature scaling
  • B. Data augmentation
  • C. Hyperparameter tuning
  • D. All of the above
Q. Which of the following techniques can help in reducing overfitting?
  • A. Feature scaling
  • B. Regularization
  • C. Data augmentation
  • D. All of the above
Q. Which of the following techniques can help prevent overfitting in linear regression?
  • A. Increasing the number of features
  • B. Using regularization techniques like Lasso or Ridge
  • C. Decreasing the size of the training set
  • D. Ignoring outliers
Q. Which of the following techniques can help prevent overfitting in neural networks?
  • A. Increasing the learning rate
  • B. Using dropout
  • C. Reducing the number of layers
  • D. Using a linear activation function
Q. Which of the following techniques can help prevent overfitting in supervised learning?
  • A. Increasing the complexity of the model
  • B. Using more training data
  • C. Reducing the number of features
  • D. All of the above
Showing 3001 to 3030 of 3237 (108 Pages)
Soulshift Feedback ×

On a scale of 0–10, how likely are you to recommend The Soulshift Academy?

Not likely Very likely