Computer Science & IT

Download Q&A
Q. In a binary tree, what is the maximum number of leaf nodes?
  • A. n
  • B. n/2
  • C. 2^(h-1)
  • D. 2^h
Q. In a binary tree, what is the maximum number of nodes at depth d?
  • A. d
  • B. 2^d
  • C. 2^(d+1) - 1
  • D. d^2
Q. In a binary tree, what is the maximum number of nodes at level 'h'?
  • A. h
  • B. 2^h
  • C. 2^(h+1)-1
  • D. h^2
Q. In a binary tree, what is the maximum number of nodes at level 'l'?
  • A. 2^l
  • B. l^2
  • C. l
  • D. 2^(l+1)
Q. In a binary tree, what is the maximum number of nodes at level k?
  • A. k
  • B. 2^k
  • C. 2^(k+1)
  • D. k^2
Q. In a binary tree, what is the minimum number of nodes required to have a height of h?
  • A. h
  • B. h + 1
  • C. 2^h
  • D. 2^(h+1) - 1
Q. In a binary tree, what is the time complexity of finding the height of the tree?
  • A. O(n)
  • B. O(log n)
  • C. O(n log n)
  • D. O(1)
Q. In a binary tree, what is the time complexity of searching for an element in the worst case?
  • A. O(log n)
  • B. O(n)
  • C. O(n log n)
  • D. O(1)
Q. In a binary tree, what is the time complexity of traversing all nodes using in-order traversal?
  • A. O(1)
  • B. O(n)
  • C. O(log n)
  • D. O(n log n)
Q. In a binary tree, which traversal method is most similar to DFS?
  • A. Level-order traversal
  • B. In-order traversal
  • C. Breadth-first traversal
  • D. Random traversal
Q. In a business context, how can linear regression be applied?
  • A. To determine customer segments
  • B. To forecast sales based on advertising spend
  • C. To classify products into categories
  • D. To cluster similar customer behaviors
Q. In a case study involving a city map, which application of Dijkstra's algorithm is most relevant?
  • A. Finding the fastest route between two locations
  • B. Calculating the total distance of all roads
  • C. Determining the longest path in the city
  • D. Finding all intersections in the map
Q. In a case study involving natural language processing, which type of neural network is often used?
  • A. Convolutional Neural Network (CNN)
  • B. Recurrent Neural Network (RNN)
  • C. Feedforward Neural Network
  • D. Radial Basis Function Network
Q. In a case study involving predicting house prices, which feature would be most relevant?
  • A. The color of the house
  • B. The number of bedrooms
  • C. The owner's name
  • D. The year the house was built
Q. In a case study using K-Means clustering, what is a common method to determine the optimal number of clusters?
  • A. Cross-validation
  • B. Elbow method
  • C. Grid search
  • D. Random search
Q. In a case study, if a linear regression model has a high R-squared value but a high Mean Squared Error (MSE), what does this suggest?
  • A. The model is performing well overall
  • B. The model may be overfitting the training data
  • C. The model is underfitting the data
  • D. The model is perfectly accurate
Q. In a case study, if a linear regression model has a high R-squared value but poor predictive performance on new data, what might be the issue?
  • A. The model is too simple
  • B. The model is overfitting the training data
  • C. The model is underfitting the training data
  • D. The data is not linear
Q. In a case study, if a model has high precision but low recall, what does this indicate?
  • A. The model is good at identifying positive cases but misses many.
  • B. The model is poor at identifying positive cases.
  • C. The model has balanced performance.
  • D. The model is overfitting.
Q. In a case study, if a model's precision is 0.9 and recall is 0.6, what is the F1 score?
  • A. 0.72
  • B. 0.75
  • C. 0.80
  • D. 0.85
Q. In a case study, SVM was used to classify emails as spam or not spam. What type of learning is this an example of?
  • A. Unsupervised learning
  • B. Reinforcement learning
  • C. Supervised learning
  • D. Semi-supervised learning
Q. In a case study, which method is often used to evaluate the effectiveness of feature engineering?
  • A. Cross-validation
  • B. Data normalization
  • C. Hyperparameter tuning
  • D. Model deployment
Q. In a case study, which method would be best for handling missing values in a dataset?
  • A. Drop the rows with missing values
  • B. Impute missing values with the mean
  • C. Use a neural network to predict missing values
  • D. All of the above
Q. In a case study, which metric is often used to evaluate the success of a deployed model?
  • A. Accuracy
  • B. F1 Score
  • C. Return on Investment (ROI)
  • D. Confusion Matrix
Q. In a circular linked list, what is the main characteristic?
  • A. Last node points to null
  • B. First node points to last node
  • C. All nodes are connected in a circle
  • D. None of the above
Q. In a circular queue implemented using an array, what is the time complexity of the enqueue operation?
  • A. O(1)
  • B. O(n)
  • C. O(log n)
  • D. O(n^2)
Q. In a circular queue, what condition indicates that the queue is full?
  • A. front == rear
  • B. rear == (front + 1) % size
  • C. front == (rear + 1) % size
  • D. rear == front
Q. In a circular queue, what happens when the rear pointer reaches the end of the array?
  • A. It resets to the beginning of the array
  • B. It stops accepting new elements
  • C. It throws an error
  • D. It moves to the next available position
Q. In a classification problem, what does a confusion matrix represent?
  • A. The relationship between features
  • B. The performance of a classification model
  • C. The distribution of data points
  • D. The training time of the model
Q. In a classification problem, what does the term 'overfitting' refer to?
  • A. The model performs well on training data but poorly on unseen data
  • B. The model is too simple to capture the underlying trend
  • C. The model has too few features
  • D. The model is trained on too much data
Q. In a clustering case study, which metric is often used to evaluate the quality of clusters?
  • A. Mean Squared Error
  • B. Silhouette Score
  • C. Accuracy
  • D. F1 Score
Showing 211 to 240 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