Computer Science & IT

Download Q&A
Q. Which of the following properties is true for a Red-Black Tree?
  • A. Every node is either red or black
  • B. The root is always red
  • C. All leaves are red
  • D. Red nodes can have red children
Q. Which of the following properties is true for Red-Black trees?
  • A. Every node is either red or black
  • B. The root must be red
  • C. All leaves are black
  • D. Both A and C
Q. Which of the following protocols is used for dynamic IP address allocation?
  • A. DHCP
  • B. DNS
  • C. ARP
  • D. ICMP
Q. Which of the following protocols is used for email transmission?
  • A. HTTP
  • B. FTP
  • C. SMTP
  • D. SNMP
Q. Which of the following protocols is used for error detection in data transmission?
  • A. TCP
  • B. UDP
  • C. ICMP
  • D. ARP
Q. Which of the following protocols is used for secure communication over the web?
  • A. HTTP
  • B. FTP
  • C. HTTPS
  • D. SMTP
Q. Which of the following protocols is used for sending emails?
  • A. HTTP
  • B. FTP
  • C. SMTP
  • D. SNMP
Q. Which of the following protocols is used to secure HTTP traffic?
  • A. FTP
  • B. SMTP
  • C. HTTPS
  • D. Telnet
Q. Which of the following protocols is used to send emails?
  • A. HTTP
  • B. FTP
  • C. SMTP
  • D. SNMP
Q. Which of the following protocols operates at the Application Layer of the TCP/IP model?
  • A. IP
  • B. TCP
  • C. UDP
  • D. DNS
Q. Which of the following Python functions can be used to implement binary search?
  • A. sorted()
  • B. bisect.bisect_left()
  • C. list.index()
  • D. max()
Q. Which of the following scenarios is a real-world application of binary search?
  • A. Finding a name in a phone book
  • B. Sorting a list of names
  • C. Searching for a file in a directory
  • D. Inserting an element in a linked list
Q. Which of the following scenarios is best suited for hierarchical clustering?
  • A. When the number of clusters is known
  • B. When the data is high-dimensional
  • C. When a hierarchy of clusters is desired
  • D. When speed is a priority
Q. Which of the following scenarios is best suited for K-means clustering?
  • A. Identifying customer segments based on purchasing behavior
  • B. Classifying emails as spam or not spam
  • C. Predicting house prices based on features
  • D. Finding the optimal path in a navigation system
Q. Which of the following scenarios is best suited for using a Red-Black tree?
  • A. When frequent insertions and deletions are required.
  • B. When memory usage is a critical factor.
  • C. When the data is static and rarely changes.
  • D. When the data needs to be sorted frequently.
Q. Which of the following scenarios is best suited for using a stack?
  • A. Processing tasks in the order they arrive
  • B. Reversing a string
  • C. Searching for an element in a list
  • D. Maintaining a sorted list
Q. Which of the following scenarios is best suited for using an AVL tree?
  • A. When frequent insertions and deletions are expected
  • B. When search operations are more frequent than insertions
  • C. When memory usage is a critical concern
  • D. When the data is mostly static
Q. Which of the following scenarios is best suited for using Random Forests?
  • A. When interpretability is crucial.
  • B. When the dataset is small and simple.
  • C. When there are many features and complex interactions.
  • D. When the output is a continuous variable only.
Q. Which of the following scenarios is best suited for using SVM?
  • A. When the dataset is small and linearly separable
  • B. When the dataset is large and contains many outliers
  • C. When the dataset is high-dimensional with clear margins of separation
  • D. When the dataset is unstructured and requires clustering
Q. Which of the following scenarios is BFS preferred over DFS?
  • A. Finding the shortest path in an unweighted graph
  • B. Exploring all possible paths
  • C. Finding a cycle in a graph
  • D. Topological sorting
Q. Which of the following scenarios is Dijkstra's algorithm best suited for?
  • A. Finding the shortest path in a road network
  • B. Sorting a list of numbers
  • C. Searching for an element in a binary search tree
  • D. Finding the maximum flow in a network
Q. Which of the following scenarios is K-means clustering NOT suitable for?
  • A. When clusters are spherical and evenly sized
  • B. When the number of clusters is known
  • C. When clusters have varying densities
  • D. When outliers are present in the data
Q. Which of the following scenarios is NOT suitable for binary search?
  • A. Searching in a sorted array
  • B. Searching in a linked list
  • C. Searching in a sorted list
  • D. Searching in a sorted tree
Q. Which of the following scenarios is SVM particularly well-suited for?
  • A. Clustering unlabelled data
  • B. Classifying linearly separable data
  • C. Time series forecasting
  • D. Generating synthetic data
Q. Which of the following scenarios would benefit from using a Red-Black tree?
  • A. When frequent insertions and deletions are expected.
  • B. When the dataset is static and does not change.
  • C. When searching is the only operation performed.
  • D. When memory usage is a critical constraint.
Q. Which of the following scenarios would benefit from using an AVL tree over a Red-Black tree?
  • A. Frequent insertions and deletions
  • B. Frequent lookups
  • C. Static data with no modifications
  • D. Data with many duplicate values
Q. Which of the following scenarios would NOT be suitable for binary search?
  • A. Searching in a sorted array
  • B. Searching in a linked list
  • C. Searching in a sorted list
  • D. Searching in a sorted tree
Q. Which of the following scenarios would require a right rotation in an AVL tree?
  • A. Left-Left case
  • B. Right-Right case
  • C. Left-Right case
  • D. Right-Left case
Q. Which of the following scenarios would require the use of an alternative to Dijkstra's algorithm?
  • A. Finding the shortest path in a road network
  • B. Calculating the shortest path in a graph with negative weights
  • C. Finding the shortest path in a weighted graph
  • D. Finding the shortest path in a tree structure
Q. Which of the following sorting algorithms has the best average time complexity?
  • A. Bubble Sort
  • B. Insertion Sort
  • C. Quick Sort
  • D. Selection Sort
Showing 2941 to 2970 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