Computer Science & IT

Download Q&A
Q. In a clustering case study, which of the following is a real-world application?
  • A. Spam detection in emails
  • B. Customer segmentation in marketing
  • C. Predicting stock prices
  • D. Image classification
Q. In a complete binary tree, how many nodes are there at height 'h'?
  • A. h + 1
  • B. 2^h
  • C. 2^(h+1) - 1
  • D. h^2
Q. In a complete binary tree, how many nodes are there at level k?
  • A. 2^k
  • B. 2^(k+1)
  • C. 2^(k-1)
  • D. k^2
Q. In a complete binary tree, how many nodes are there at the last level if the total number of levels is 'h'?
  • A. 2^(h-1)
  • B. 2^h
  • C. 2^(h+1)
  • D. 2^(h-1) - 1
Q. In a complete binary tree, what is the maximum number of nodes at level 'h'?
  • A. 2^h
  • B. 2^(h+1) - 1
  • C. h^2
  • D. h!
Q. In a complete binary tree, what is the relationship between the number of nodes and the height?
  • A. Height = log(n)
  • B. Height = n
  • C. Height = n/2
  • D. Height = n^2
Q. In a complete binary tree, what is the relationship between the number of nodes and the height of the tree?
  • A. Nodes = 2^height
  • B. Nodes = 2^(height + 1) - 1
  • C. Nodes = height^2
  • D. Nodes = height!
Q. In a complete binary tree, what is the time complexity of DFS?
  • A. O(log n)
  • B. O(n)
  • C. O(n log n)
  • D. O(1)
Q. In a confusion matrix, what does the term 'specificity' refer to?
  • A. True Positive Rate
  • B. False Positive Rate
  • C. True Negative Rate
  • D. False Negative Rate
Q. In a Decision Tree, what does the Gini impurity measure?
  • A. The accuracy of the model.
  • B. The likelihood of misclassifying a randomly chosen element.
  • C. The depth of the tree.
  • D. The number of features used.
Q. In a Decision Tree, what does the term 'Gini impurity' refer to?
  • A. A measure of the tree's depth
  • B. A metric for evaluating model performance
  • C. A criterion for splitting nodes
  • D. A method for pruning trees
Q. In a Decision Tree, what does the term 'node' refer to?
  • A. A point where a decision is made.
  • B. The final output of the tree.
  • C. The data used to train the model.
  • D. The overall structure of the tree.
Q. In a depth-first search, what happens when a node is visited?
  • A. It is added to the queue.
  • B. It is marked as visited and all its adjacent nodes are explored.
  • C. It is removed from the graph.
  • D. It is added to the stack.
Q. In a double-ended queue (deque), which operations can be performed at both ends?
  • A. Enqueue only
  • B. Dequeue only
  • C. Enqueue and Dequeue
  • D. None
Q. In a doubly linked list, how do you delete a node given only a pointer to that node?
  • A. Set next and previous pointers
  • B. Traverse from head
  • C. Use a stack
  • D. Not possible
Q. In a doubly linked list, how many pointers does each node contain?
  • A. One
  • B. Two
  • C. Three
  • D. Four
Q. In a doubly linked list, what is the time complexity for deleting a node given a pointer to that node?
  • A. O(1)
  • B. O(n)
  • C. O(log n)
  • D. O(n^2)
Q. In a doubly linked list, what is the time complexity of deleting a node given a pointer to that node?
  • A. O(1)
  • B. O(n)
  • C. O(log n)
  • D. O(n^2)
Q. In a doubly linked list, what is the time complexity of inserting a new node after a given node?
  • A. O(1)
  • B. O(n)
  • C. O(log n)
  • D. O(n^2)
Q. In a dynamic programming approach, what is the primary technique used to optimize recursive solutions?
  • A. Memoization
  • B. Backtracking
  • C. Greedy Method
  • D. Divide and Conquer
Q. In a dynamic programming solution for the Longest Common Subsequence (LCS), what does the DP table represent?
  • A. The length of the LCS
  • B. The characters of the LCS
  • C. The indices of the LCS
  • D. The number of subsequences
Q. In a feature engineering case study, what is the role of domain knowledge?
  • A. To automate model training
  • B. To inform feature selection and creation
  • C. To evaluate model performance
  • D. To visualize data
Q. In a graph represented as an adjacency list, what is the space complexity of storing the graph?
  • A. O(V)
  • B. O(E)
  • C. O(V + E)
  • D. O(V^2)
Q. In a graph represented as an adjacency list, what is the space complexity?
  • A. O(V + E)
  • B. O(V^2)
  • C. O(E)
  • D. O(V)
Q. In a graph represented by an adjacency list, what is the space complexity?
  • A. O(V)
  • B. O(E)
  • C. O(V + E)
  • D. O(V * E)
Q. In a graph with V vertices and E edges, what is the time complexity of DFS?
  • A. O(V)
  • B. O(E)
  • C. O(V + E)
  • D. O(V * E)
Q. In a graph, if all edges have the same weight, which algorithm can be used to find the shortest path?
  • A. Dijkstra's algorithm
  • B. Breadth-First Search (BFS)
  • C. Depth-First Search (DFS)
  • D. A* Search
Q. In a graph, if there are multiple paths to a node, how does Dijkstra's algorithm determine which path to take?
  • A. It chooses the path with the most edges
  • B. It chooses the path with the least weight
  • C. It randomly selects a path
  • D. It chooses the first path it encounters
Q. In a graph, if there are multiple paths to reach a node, how does Dijkstra's algorithm choose the path?
  • A. It chooses the path with the maximum weight
  • B. It chooses the path with the minimum weight
  • C. It chooses the first path it encounters
  • D. It randomly selects a path
Q. In a graph, if you want to check for cycles, which traversal method is more suitable?
  • A. BFS
  • B. DFS
  • C. Both are equally suitable
  • D. Neither can check for cycles
Showing 241 to 270 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