Computer Science & IT

Download Q&A
Q. What is the maximum number of subnets that can be created from a Class B network with a /22 subnet mask?
  • A. 4
  • B. 16
  • C. 64
  • D. 256
Q. What is the maximum number of subnets that can be created with a /22 subnet mask?
  • A. 4
  • B. 8
  • C. 16
  • D. 64
Q. What is the maximum size of a URL in HTTP requests?
  • A. 2048 characters
  • B. 4096 characters
  • C. 1024 characters
  • D. 512 characters
Q. What is the mid index formula used in binary search?
  • A. (low + high) / 2
  • B. (high - low) / 2
  • C. (low + high) / 2 + 1
  • D. (low + high) / 2 - 1
Q. What is the optimal substructure property in dynamic programming?
  • A. The problem can be divided into smaller subproblems
  • B. The solution can be constructed from optimal solutions of its subproblems
  • C. The problem has overlapping subproblems
  • D. All of the above
Q. What is the output of a lexical analyzer typically used for?
  • A. To generate machine code
  • B. To create a syntax tree
  • C. To feed into the parser
  • D. To optimize the code
Q. What is the output of a lexical analyzer when it encounters an unrecognized character?
  • A. A token
  • B. A syntax tree
  • C. An error message
  • D. A symbol table entry
Q. What is the output of a syntax-directed translation scheme?
  • A. Source code
  • B. Intermediate code
  • C. Machine code
  • D. Error messages
Q. What is the output of a tokenization process?
  • A. A list of sentences
  • B. A list of tokens
  • C. A numerical vector
  • D. A confusion matrix
Q. What is the output of an in-order traversal of the binary tree with root 1, left child 2, and right child 3?
  • A. 1, 2, 3
  • B. 2, 1, 3
  • C. 3, 1, 2
  • D. 1, 3, 2
Q. What is the output of Dijkstra's algorithm if the graph has multiple shortest paths?
  • A. One of the shortest paths
  • B. All shortest paths
  • C. The longest path
  • D. No path
Q. What is the output of Dijkstra's algorithm if the graph is disconnected?
  • A. Shortest path to all nodes
  • B. Shortest path to reachable nodes only
  • C. No path found
  • D. An error
Q. What is the output of Dijkstra's algorithm?
  • A. The shortest path from the source to a single destination
  • B. The shortest path from the source to all destinations
  • C. The longest path in the graph
  • D. The minimum spanning tree of the graph
Q. What is the output of the Bellman-Ford algorithm?
  • A. A single shortest path
  • B. A list of all shortest paths from the source
  • C. The shortest path tree
  • D. The shortest path length only
Q. What is the output of the following C++ code for a binary tree with root value 1, left child 2, and right child 3 during pre-order traversal?
  • A. 1 2 3
  • B. 2 1 3
  • C. 1 3 2
  • D. 3 2 1
Q. What is the output of the following code snippet: 'print(2 ** 3)'?
  • A. 6
  • B. 8
  • C. 9
  • D. 3
Q. What is the output of the following code: printf("%d", 10 / 3);?
  • A. 3
  • B. 3.33
  • C. 3.0
  • D. 0
Q. What is the output of the following code: printf("%d", 5 + 10 * 2);?
  • A. 25
  • B. 20
  • C. 15
  • D. 10
Q. What is the output of the following in-order traversal on the binary tree: 1 (root), 2 (left child), 3 (right child)?
  • A. 1, 2, 3
  • B. 2, 1, 3
  • C. 3, 1, 2
  • D. 1, 3, 2
Q. What is the output of the following in-order traversal on the binary tree: 1, 2, 3, 4, 5?
  • A. 1, 2, 3, 4, 5
  • B. 5, 4, 3, 2, 1
  • C. 2, 1, 4, 3, 5
  • D. 1, 3, 2, 5, 4
Q. What is the output of the following Python code for a binary tree traversal: 'preorder_traversal(root)'?
  • A. Left, Root, Right
  • B. Root, Left, Right
  • C. Left, Right, Root
  • D. Right, Left, Root
Q. What is the pivot selection strategy in Quick Sort that can lead to poor performance?
  • A. Random pivot
  • B. Median of three
  • C. First element
  • D. Last element
Q. What is the post-order traversal of a binary tree with nodes 1, 2, and 3 where 1 is the root, 2 is the left child, and 3 is the right child?
  • A. 1, 2, 3
  • B. 2, 3, 1
  • C. 3, 2, 1
  • D. 1, 3, 2
Q. What is the post-order traversal of a binary tree with nodes A, B, C?
  • A. A, B, C
  • B. B, C, A
  • C. C, B, A
  • D. A, C, B
Q. What is the post-order traversal of a binary tree with root 1, left child 2, and right child 3?
  • A. 1, 2, 3
  • B. 2, 3, 1
  • C. 2, 1, 3
  • D. 3, 2, 1
Q. What is the post-order traversal of a binary tree with root A, left child B, and right child C?
  • A. A, B, C
  • B. B, C, A
  • C. C, B, A
  • D. A, C, B
Q. What is the post-order traversal of the binary tree with root A, left child B, and right child C?
  • A. A B C
  • B. B A C
  • C. B C A
  • D. C B A
Q. What is the post-order traversal sequence of a binary tree with root 1, left child 2, and right child 3?
  • A. 1, 2, 3
  • B. 2, 3, 1
  • C. 3, 2, 1
  • D. 1, 3, 2
Q. What is the postorder traversal sequence of a binary tree with root A, left child B, and right child C?
  • A. A B C
  • B. B A C
  • C. B C A
  • D. C B A
Q. What is the primary 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
Showing 1291 to 1320 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