Computer Science & IT

Download Q&A
Q. In a graph, if you want to check if there is a path between two nodes, which traversal method would be more suitable?
  • A. BFS
  • B. DFS
  • C. Both are equally suitable
  • D. Neither is suitable
Q. In a graph, if you want to find the shortest path in an unweighted graph, which traversal method would you use?
  • A. DFS
  • B. BFS
  • C. Dijkstra's Algorithm
  • D. A* Search
Q. In a graph, which traversal method uses a queue data structure?
  • A. DFS
  • B. BFS
  • C. Both DFS and BFS
  • D. Neither DFS nor BFS
Q. In a K-means clustering algorithm, if you have 5 clusters and 100 data points, how many centroids will be initialized?
  • A. 5
  • B. 100
  • C. 50
  • D. 10
Q. In a level-order traversal, which data structure is typically used to keep track of nodes?
  • A. Stack
  • B. Queue
  • C. Array
  • D. Linked List
Q. In a linear regression case study, what does multicollinearity refer to?
  • A. High correlation between the dependent variable and independent variables
  • B. High correlation among independent variables
  • C. Low variance in the dependent variable
  • D. The presence of outliers in the data
Q. In a linear regression model, what does a negative coefficient for an independent variable indicate?
  • A. A positive relationship with the dependent variable
  • B. No relationship with the dependent variable
  • C. A negative relationship with the dependent variable
  • D. The variable is not significant
Q. In a linear regression model, what does the slope coefficient represent?
  • A. The intercept of the regression line
  • B. The change in the dependent variable for a one-unit change in the independent variable
  • C. The total variance in the dependent variable
  • D. The correlation between the independent and dependent variables
Q. In a linear regression model, what does the slope of the regression line represent?
  • A. The predicted value of the dependent variable
  • B. The change in the dependent variable for a one-unit change in the independent variable
  • C. The correlation between the independent and dependent variables
  • D. The intercept of the regression line
Q. In a linked list, what is the time complexity of inserting an element at the beginning?
  • A. O(n)
  • B. O(log n)
  • C. O(1)
  • D. O(n log n)
Q. In a multi-class classification problem, which metric can be used to evaluate the performance across all classes?
  • A. Micro F1 Score
  • B. Mean Absolute Error
  • C. Precision
  • D. Recall
Q. In a multi-class classification problem, which metric can be used to evaluate the model's performance across all classes?
  • A. Macro F1 Score
  • B. Mean Squared Error
  • C. Accuracy
  • D. Log Loss
Q. In a network with a subnet mask of 255.255.255.128, how many hosts can be accommodated?
  • A. 126
  • B. 128
  • C. 254
  • D. 256
Q. In a neural network, what does the term 'activation function' refer to?
  • A. A method to initialize weights
  • B. A function that determines the output of a neuron
  • C. A technique for data normalization
  • D. A process for training the model
Q. In a neural network, what does the term 'backpropagation' refer to?
  • A. The process of forward propagation of inputs
  • B. The method of updating weights based on error
  • C. The initialization of network parameters
  • D. The evaluation of model performance
Q. In a neural network, what is the purpose of the loss function?
  • A. To measure the accuracy of predictions
  • B. To calculate the gradient
  • C. To evaluate model performance
  • D. To quantify the difference between predicted and actual values
Q. In a neural network, what is the purpose of the output layer?
  • A. To process input data
  • B. To apply activation functions
  • C. To produce the final predictions
  • D. To adjust learning rates
Q. In a priority queue implemented with a binary heap, what is the time complexity for inserting an element?
  • A. O(1)
  • B. O(log n)
  • C. O(n)
  • D. O(n log n)
Q. In a priority queue implemented with a binary heap, what is the time complexity of inserting an element?
  • A. O(1)
  • B. O(log n)
  • C. O(n)
  • D. O(n log n)
Q. In a queue implemented using a linked list, what operation is performed to add an element?
  • A. Push
  • B. Enqueue
  • C. Pop
  • D. Dequeue
Q. In a queue implemented using a linked list, what operation is performed to remove an element?
  • A. Pop
  • B. Dequeue
  • C. Shift
  • D. Remove
Q. In a queue implemented using an array, what happens when the array is full?
  • A. Overflow error
  • B. Underflow error
  • C. Elements are overwritten
  • D. Queue shrinks
Q. In a queue implemented using an array, what is the time complexity of enqueue operation in the worst case?
  • A. O(1)
  • B. O(n)
  • C. O(log n)
  • D. O(n^2)
Q. In a queue implemented using two stacks, what is the time complexity of the dequeue operation in the worst case?
  • A. O(1)
  • B. O(n)
  • C. O(log n)
  • D. O(n log n)
Q. In a queue implemented using two stacks, what is the worst-case time complexity for the dequeue operation?
  • A. O(1)
  • B. O(n)
  • C. O(log n)
  • D. O(n^2)
Q. In a queue, what happens when an element is dequeued?
  • A. It is removed from the front
  • B. It is removed from the back
  • C. It is moved to the front
  • D. It is added to the back
Q. In a queue, what is the time complexity of dequeuing an element?
  • A. O(1)
  • B. O(n)
  • C. O(log n)
  • D. O(n^2)
Q. In a queue, what is the time complexity of enqueue operation?
  • A. O(1)
  • B. O(n)
  • C. O(log n)
  • D. O(n^2)
Q. In a queue, what operation is used to remove an element?
  • A. Push
  • B. Pop
  • C. Enqueue
  • D. Dequeue
Q. In a queue, which operation is performed in constant time?
  • A. Enqueue
  • B. Dequeue
  • C. Peek
  • D. All of the above
Showing 271 to 300 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