Computer Science & IT

Download Q&A
Q. Which of the following best describes the relationship between syntax trees and intermediate code?
  • A. Syntax trees are generated after intermediate code
  • B. Intermediate code is generated directly from syntax trees
  • C. Syntax trees and intermediate code are the same
  • D. Intermediate code is generated before syntax trees
Q. Which of the following best describes the space complexity of binary search?
  • A. O(n)
  • B. O(log n)
  • C. O(1)
  • D. O(n log n)
Q. Which of the following C++ functions can be used to implement binary search on a sorted array?
  • A. std::find
  • B. std::search
  • C. std::binary_search
  • D. std::linear_search
Q. Which of the following C++ functions can be used to implement binary search?
  • A. std::find
  • B. std::search
  • C. std::binary_search
  • D. std::linear_search
Q. Which of the following C++ functions correctly implements binary search?
  • A. int binarySearch(int arr[], int l, int r, int x)
  • B. void binarySearch(int arr[], int x)
  • C. int binarySearch(int arr[], int x)
  • D. bool binarySearch(int arr[], int l, int r)
Q. Which of the following clustering methods can handle non-spherical clusters?
  • A. K-Means
  • B. Hierarchical Clustering
  • C. DBSCAN
  • D. All of the above
Q. Which of the following clustering methods can produce non-convex clusters?
  • A. K-means
  • B. Hierarchical clustering
  • C. DBSCAN
  • D. Both B and C
Q. Which of the following clustering methods is best suited for discovering clusters of varying shapes and densities?
  • A. K-Means
  • B. DBSCAN
  • C. Agglomerative Clustering
  • D. Gaussian Mixture Models
Q. Which of the following clustering methods is best suited for discovering clusters of arbitrary shapes?
  • A. K-Means
  • B. DBSCAN
  • C. Agglomerative Clustering
  • D. Gaussian Mixture Models
Q. Which of the following clustering methods is best suited for discovering non-globular shapes in data?
  • A. K-means
  • B. DBSCAN
  • C. Hierarchical clustering
  • D. Gaussian Mixture Models
Q. Which of the following clustering methods is best suited for discovering non-linear relationships in data?
  • A. K-means
  • B. Hierarchical clustering
  • C. DBSCAN
  • D. Gaussian Mixture Models
Q. Which of the following clustering methods is best suited for discovering non-spherical clusters?
  • A. K-means
  • B. Hierarchical clustering
  • C. DBSCAN
  • D. Gaussian Mixture Models
Q. Which of the following clustering methods is sensitive to outliers?
  • A. K-means
  • B. Hierarchical clustering
  • C. DBSCAN
  • D. Gaussian Mixture Models
Q. Which of the following conditions must be true for binary search to work?
  • A. Array must be sorted
  • B. Array must be unsorted
  • C. Array must contain unique elements
  • D. Array must be of fixed size
Q. Which of the following data structures allows for dynamic resizing?
  • A. Array
  • B. Linked List
  • C. Stack
  • D. Queue
Q. Which of the following data structures can be efficiently searched using binary search?
  • A. Linked List
  • B. Stack
  • C. Queue
  • D. Sorted Array
Q. Which of the following data structures can be used to implement a queue?
  • A. Array
  • B. Linked List
  • C. Stack
  • D. Both Array and Linked List
Q. Which of the following data structures can be used to implement binary search efficiently?
  • A. Linked List
  • B. Array
  • C. Stack
  • D. Queue
Q. Which of the following data structures can be used to implement binary search?
  • A. Linked List
  • B. Array
  • C. Stack
  • D. Queue
Q. Which of the following data structures can binary search be applied to?
  • A. Linked lists
  • B. Binary trees
  • C. Sorted arrays
  • D. Hash tables
Q. Which of the following data structures is commonly used to implement BFS?
  • A. Stack
  • B. Queue
  • C. Linked List
  • D. Array
Q. Which of the following data structures is most efficient for implementing Dijkstra's algorithm?
  • A. Array
  • B. Linked List
  • C. Binary Heap
  • D. Stack
Q. Which of the following data structures is typically used to implement DFS?
  • A. Queue
  • B. Stack
  • C. Array
  • D. Linked List
Q. Which of the following data structures uses LIFO (Last In First Out) principle?
  • A. Queue
  • B. Stack
  • C. Array
  • D. Linked List
Q. Which of the following describes a convolutional neural network (CNN)?
  • A. A network designed for sequential data
  • B. A network that uses convolutional layers for image processing
  • C. A network that only uses fully connected layers
  • D. A network that does not require any training
Q. Which of the following distance metrics is commonly used in K-means clustering?
  • A. Manhattan distance
  • B. Cosine similarity
  • C. Euclidean distance
  • D. Jaccard index
Q. Which of the following dynamic programming problems can be solved in polynomial time?
  • A. Traveling Salesman Problem
  • B. Longest Increasing Subsequence
  • C. Hamiltonian Path
  • D. Graph Coloring
Q. Which of the following dynamic programming problems can be solved using a bottom-up approach?
  • A. Longest Common Subsequence
  • B. Fibonacci Sequence
  • C. Matrix Chain Multiplication
  • D. All of the above
Q. Which of the following fields has seen significant use of SVM?
  • A. Healthcare for disease classification
  • B. Manufacturing for process optimization
  • C. Finance for risk assessment
  • D. All of the above
Q. Which of the following grammars can be parsed using LL(1) parsing?
  • A. Left-recursive grammars
  • B. Ambiguous grammars
  • C. Non-left-recursive and unambiguous grammars
  • D. Context-free grammars only
Showing 2461 to 2490 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