Computer Science & IT

Download Q&A
Q. What is the result of a post-order traversal on a binary tree?
  • A. Root, Left, Right
  • B. Left, Right, Root
  • C. Right, Left, Root
  • D. Left, Root, Right
Q. What is the result of a post-order traversal on the following binary tree: A, B, C, D?
  • A. A B C D
  • B. D C B A
  • C. B D C A
  • D. C B D A
Q. What is the result of a postorder traversal on a binary tree?
  • A. Root, Left, Right
  • B. Left, Right, Root
  • C. Right, Left, Root
  • D. Left, Root, Right
Q. What is the result of a postorder traversal on the 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 result of a pre-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 result of an in-order traversal of a binary search tree?
  • A. Nodes in random order
  • B. Nodes in descending order
  • C. Nodes in ascending order
  • D. Nodes in level order
Q. What is the result 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 result of an inorder traversal of a binary search tree?
  • A. Sorted order of elements
  • B. Reverse sorted order of elements
  • C. Random order of elements
  • D. Level order of elements
Q. What is the result of an inorder 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 result of applying dynamic programming to the Coin Change problem?
  • A. Finding the minimum number of coins
  • B. Finding all possible combinations of coins
  • C. Finding the maximum value of coins
  • D. Finding the average value of coins
Q. What is the result of binary search if the array is empty?
  • A. Returns 0
  • B. Returns -1
  • C. Returns null
  • D. Throws an error
Q. What is the result of binary search if the target is less than the middle element?
  • A. Search the left half
  • B. Search the right half
  • C. Return the middle element
  • D. End the search
Q. What is the result of dereferencing a null pointer?
  • A. It returns zero
  • B. It causes a segmentation fault
  • C. It returns a random value
  • D. It is valid and returns a pointer
Q. What is the result of performing a binary search on the array [2, 4, 6, 8, 10] for the value 5?
  • A. 5
  • B. 4
  • C. 6
  • D. Not found
Q. What is the result of performing binary search on a sorted array for an element not present in the array?
  • A. The index of the closest element
  • B. The index of the first element
  • C. The index of the last element
  • D. An indication that the element is not found
Q. What is the result of performing binary search on an array with duplicate values?
  • A. First occurrence of the value
  • B. Last occurrence of the value
  • C. Any occurrence of the value
  • D. None of the above
Q. What is the result of popping an element from an empty stack?
  • A. The top element is returned
  • B. An error is thrown
  • C. The stack remains unchanged
  • D. The stack is cleared
Q. What is the result of the following binary search on the array [1, 2, 3, 4, 5] for target 3?
  • A. 0
  • B. 1
  • C. 2
  • D. 3
Q. What is the role of 'bootstrap sampling' in Random Forests?
  • A. To select features for each tree
  • B. To create multiple subsets of the training data
  • C. To evaluate model performance
  • D. To increase the depth of trees
Q. What is the role of 'feature importance' in Random Forests?
  • A. To determine the number of trees in the forest.
  • B. To identify which features are most influential in making predictions.
  • C. To evaluate the model's performance.
  • D. To select the best hyperparameters.
Q. What is the role of 'max_features' in Random Forests?
  • A. To limit the number of trees in the forest
  • B. To control the maximum depth of each tree
  • C. To specify the maximum number of features to consider when looking for the best split
  • D. To determine the minimum number of samples required to split an internal node
Q. What is the role of 'reward' in reinforcement learning?
  • A. To measure the accuracy of predictions
  • B. To provide feedback to the agent about its actions
  • C. To cluster data points
  • D. To evaluate the model's performance
Q. What is the role of a 'model registry' in the deployment process?
  • A. To store raw data
  • B. To manage model versions and metadata
  • C. To visualize model performance
  • D. To preprocess data
Q. What is the role of a feature store in MLOps?
  • A. To store raw data
  • B. To manage and serve features for ML models
  • C. To deploy models
  • D. To monitor model performance
Q. What is the role of a load balancer in model deployment?
  • A. To train multiple models simultaneously
  • B. To distribute incoming requests across multiple instances of a model
  • C. To store model artifacts
  • D. To preprocess input data
Q. What is the role of a model registry in deployment?
  • A. To store raw data
  • B. To manage model versions and metadata
  • C. To visualize model performance
  • D. To train models automatically
Q. What is the role of a model serving framework in deployment?
  • A. To train the model
  • B. To manage model versions and scaling
  • C. To preprocess data
  • D. To visualize model performance
Q. What is the role of a model serving framework?
  • A. To train models on large datasets
  • B. To manage and serve machine learning models in production
  • C. To visualize model performance
  • D. To preprocess data for training
Q. What is the role of a peephole optimizer?
  • A. To optimize entire functions
  • B. To analyze the entire program
  • C. To make local optimizations on small sections of code
  • D. To generate intermediate code
Q. What is the role of a REST API in model deployment?
  • A. To train the model
  • B. To serve predictions from the model
  • C. To visualize model performance
  • D. To preprocess input data
Showing 1621 to 1650 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