Computer Science & IT

Download Q&A
Q. What is the function of a default gateway in a network?
  • A. To connect devices within the same subnet
  • B. To route traffic to external networks
  • C. To assign IP addresses dynamically
  • D. To filter network traffic
Q. What is the function of a default gateway in a subnet?
  • A. To route traffic within the subnet
  • B. To connect to the internet
  • C. To assign IP addresses
  • D. To manage network security
Q. What is the function of a router in a network?
  • A. To connect devices within the same local area network
  • B. To forward data packets between different networks
  • C. To provide a wireless connection
  • D. To manage IP address assignments
Q. What is the function of the 'Content-Type' header in an HTTP response?
  • A. To specify the server type
  • B. To indicate the type of content being sent
  • C. To define the encoding type
  • D. To manage cache settings
Q. What is the Gini impurity used for in Decision Trees?
  • A. To measure the accuracy of the model
  • B. To determine the best split at each node
  • C. To evaluate the performance of Random Forests
  • D. To select features for the model
Q. What is the height of a balanced binary tree with n nodes?
  • A. O(n)
  • B. O(log n)
  • C. O(n log n)
  • D. O(1)
Q. What is the height of a binary tree with a single node?
  • A. 0
  • B. 1
  • C. 2
  • D. Depends on the number of children
Q. What is the height of a binary tree with n nodes in the worst case?
  • A. O(log n)
  • B. O(n)
  • C. O(n log n)
  • D. O(1)
Q. What is the height of a binary tree with only one node?
  • A. 0
  • B. 1
  • C. 2
  • D. It cannot be determined
Q. What is the height of a complete binary tree with n nodes?
  • A. log(n)
  • B. n
  • C. log(n + 1)
  • D. n/2
Q. What is the initial distance value assigned to the source vertex in Dijkstra's algorithm?
  • A. Infinity
  • B. 0
  • C. 1
  • D. Negative Infinity
Q. What is the initial value assigned to the tentative distance of the source node in Dijkstra's algorithm?
  • A. Infinity
  • B. Zero
  • C. One
  • D. Negative infinity
Q. What is the initial value of the tentative distance for the source node in Dijkstra's algorithm?
  • A. Infinity
  • B. 0
  • C. 1
  • D. The weight of the first edge
Q. What is the key difference between greedy algorithms and dynamic programming?
  • A. Greedy algorithms use recursion
  • B. Dynamic programming considers all possible solutions
  • C. Greedy algorithms are always optimal
  • D. Dynamic programming is faster
Q. What is the last valid host address in the subnet 10.0.0.0/8?
  • A. 10.0.0.255
  • B. 10.255.255.254
  • C. 10.0.0.0
  • D. 10.255.255.255
Q. What is the level order traversal of the binary tree with root node value 1, left child 2, and right child 3?
  • A. [1, 2, 3]
  • B. [2, 1, 3]
  • C. [1, 3, 2]
  • D. [3, 2, 1]
Q. What is the level-order traversal of a binary tree with root A, left child B, and right child C?
  • A. A, B, C
  • B. B, A, C
  • C. C, B, A
  • D. A, C, B
Q. What is the level-order traversal of a binary tree?
  • A. Visit nodes from top to bottom, left to right
  • B. Visit nodes from bottom to top, right to left
  • C. Visit nodes in in-order
  • D. Visit nodes in pre-order
Q. What is the main advantage of binary search over linear search?
  • A. It is easier to implement
  • B. It works on unsorted arrays
  • C. It has a better time complexity
  • D. It requires less memory
Q. What is the main advantage of Dijkstra's algorithm over the Bellman-Ford algorithm?
  • A. It can handle negative weights
  • B. It is faster for graphs with non-negative weights
  • C. It is simpler to implement
  • D. It can find all pairs shortest paths
Q. What is the main advantage of hierarchical clustering over K-means?
  • A. It does not require the number of clusters to be specified in advance
  • B. It is faster and more efficient
  • C. It can handle larger datasets
  • D. It is less sensitive to outliers
Q. What is the main advantage of hierarchical clustering?
  • A. It requires a predefined number of clusters
  • B. It can produce a dendrogram for visualizing clusters
  • C. It is faster than K-Means
  • D. It is less sensitive to noise
Q. What is the main advantage of using a balanced tree over an unbalanced tree?
  • A. Easier to implement
  • B. Faster operations due to reduced height
  • C. Less memory usage
  • D. More complex algorithms
Q. What is the main advantage of using a binary tree over an array for dynamic data?
  • A. Faster access times
  • B. Easier to implement
  • C. Dynamic size
  • D. Less memory usage
Q. What is the main advantage of using a deque over a regular queue?
  • A. Faster access time
  • B. Ability to add/remove from both ends
  • C. Less memory usage
  • D. Easier implementation
Q. What is the main advantage of using a dynamic array over a static array?
  • A. Faster access
  • B. Fixed size
  • C. Dynamic resizing
  • D. Less memory usage
Q. What is the main advantage of using a Fibonacci heap in Dijkstra's algorithm?
  • A. It simplifies the implementation
  • B. It reduces the time complexity to O(E + V log V)
  • C. It allows for negative weights
  • D. It uses less memory
Q. What is the main advantage of using a Fibonacci heap with Dijkstra's algorithm?
  • A. It reduces the space complexity.
  • B. It improves the time complexity for decrease-key operations.
  • C. It allows for negative weights.
  • D. It simplifies the implementation.
Q. What is the main advantage of using a linked list over an array?
  • A. Faster access time
  • B. Dynamic size
  • C. Better memory locality
  • D. Easier to sort
Q. What is the main advantage of using a priority queue in Dijkstra's algorithm?
  • A. It allows for faster insertion of nodes
  • B. It ensures that the node with the smallest distance is processed next
  • C. It reduces the space complexity
  • D. It simplifies the implementation
Showing 1081 to 1110 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