Computer Science & IT

Download Q&A
Q. In which scenario would you prefer using Dijkstra's algorithm over A* search algorithm?
  • A. When you need to find the shortest path in a grid
  • B. When the heuristic is not available
  • C. When the graph has negative weights
  • D. When you need to find all paths
Q. In which scenario would you prefer using Dijkstra's algorithm over the Bellman-Ford algorithm?
  • A. When the graph has negative weights
  • B. When the graph is dense
  • C. When the graph has non-negative weights
  • D. When you need to find all pairs shortest paths
Q. In which scenario would you prefer using linear regression over other algorithms?
  • A. When the relationship between variables is non-linear
  • B. When you need to classify data into categories
  • C. When you want to predict a continuous outcome with a linear relationship
  • D. When the data is unstructured
Q. In which scenario would you prefer using LSTMs over traditional RNNs?
  • A. When the input data is static.
  • B. When the sequences are very short.
  • C. When the sequences have long-term dependencies.
  • D. When computational resources are limited.
Q. In which scenario would you prefer using Support Vector Machines over other algorithms?
  • A. When the dataset is very large
  • B. When the data is linearly separable
  • C. When the data has a high dimensionality
  • D. When interpretability is crucial
Q. In which scenario would you prefer using SVM over decision trees?
  • A. When interpretability is crucial
  • B. When the dataset is very large
  • C. When the data is high-dimensional and sparse
  • D. When the data is categorical
Q. In which scenario would you prefer using SVM over logistic regression?
  • A. When the dataset is small
  • B. When the classes are linearly separable
  • C. When the dataset has a high number of features
  • D. When interpretability is crucial
Q. In which scenario would you prefer using SVM over other algorithms?
  • A. When the dataset is very large
  • B. When the data is linearly separable
  • C. When the data has a high dimensionality
  • D. When the data is highly imbalanced
Q. In which scenario would you prefer using SVM over other classification algorithms?
  • A. When the dataset is very large
  • B. When the data is linearly separable
  • C. When the data has a high dimensionality
  • D. When the data is highly imbalanced
Q. In which scenario would you prefer using the Matthews correlation coefficient?
  • A. When dealing with binary classification problems
  • B. When evaluating multi-class classification problems
  • C. When the dataset is highly imbalanced
  • D. All of the above
Q. In which scenario would you prioritize recall over precision?
  • A. When false positives are more costly than false negatives
  • B. When false negatives are more costly than false positives
  • C. When the dataset is balanced
  • D. When you need a high overall accuracy
Q. In which scenario would you typically use a CNN?
  • A. Predicting stock prices
  • B. Classifying images
  • C. Analyzing text data
  • D. Clustering customer segments
Q. In which scenario would you typically use a Convolutional Neural Network (CNN)?
  • A. Time series prediction
  • B. Image classification
  • C. Text generation
  • D. Reinforcement learning
Q. In which scenario would you use a binary tree for data storage?
  • A. When data needs to be accessed in a sorted manner
  • B. When data is static and does not change
  • C. When data is accessed randomly
  • D. When data is sequentially processed
Q. In which scenario would you use a binary tree to represent hierarchical data?
  • A. File system structure
  • B. Social network connections
  • C. Web page links
  • D. All of the above
Q. In which scenario would you use a shadow deployment strategy?
  • A. When you want to completely replace an old model
  • B. When you want to test a new model without affecting users
  • C. When you want to gather user feedback
  • D. When you want to scale the model
Q. In which scenario would you use linear regression?
  • A. Predicting customer churn
  • B. Forecasting sales revenue based on advertising spend
  • C. Classifying emails as spam or not spam
  • D. Segmenting customers into different groups
Q. In which scenario would you use reinforcement learning?
  • A. When you have labeled data for training
  • B. When the model needs to learn from interactions with an environment
  • C. When you want to cluster data points
  • D. When you need to predict a continuous outcome
Q. In which scenario would you use unsupervised learning for embeddings?
  • A. When labeled data is available
  • B. When you want to classify text
  • C. When you want to discover patterns in unlabeled text
  • D. When you need to evaluate model performance
Q. In which traversal method are nodes visited in ascending order for a binary search tree?
  • A. Pre-order
  • B. In-order
  • C. Post-order
  • D. Level-order
Q. In which traversal method are nodes visited in the order of left child, root, right child?
  • A. Pre-order
  • B. Post-order
  • C. In-order
  • D. Level-order
Q. In which traversal method are nodes visited in the order of left subtree, root, right subtree?
  • A. In-order
  • B. Pre-order
  • C. Post-order
  • D. Level-order
Q. In which traversal method are nodes visited level by level?
  • A. In-order
  • B. Post-order
  • C. Pre-order
  • D. Level-order
Q. In which traversal method do you visit the left subtree, then the root, and finally the right subtree?
  • A. Pre-order
  • B. In-order
  • C. Post-order
  • D. Level-order
Q. What assumption is made about the residuals in linear regression?
  • A. They should be normally distributed
  • B. They should be correlated with the predictors
  • C. They should have a non-constant variance
  • D. They should be positive
Q. What color is the root node of a Red-Black tree?
  • A. Red
  • B. Black
  • C. It can be either
  • D. None of the above
Q. What condition must be met for Dijkstra's algorithm to work correctly?
  • A. All edge weights must be positive
  • B. The graph must be a tree
  • C. All nodes must be connected
  • D. The graph must be directed
Q. What data structure is commonly used to implement Dijkstra's algorithm efficiently?
  • A. Array
  • B. Linked List
  • C. Priority Queue
  • D. Stack
Q. What data structure is commonly used to implement Dijkstra's algorithm?
  • A. Array
  • B. Stack
  • C. Priority Queue
  • D. Linked List
Q. What data structure is commonly used to implement the priority queue in Dijkstra's algorithm?
  • A. Array
  • B. Linked List
  • C. Binary Heap
  • D. Stack
Showing 661 to 690 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