Computer Science & IT

Download Q&A
Q. What is the primary data structure used in the implementation of Heap Sort?
  • A. Array
  • B. Linked List
  • C. Stack
  • D. Queue
Q. What is the primary data structure used to implement a queue for level order traversal?
  • A. Stack
  • B. Array
  • C. Linked List
  • D. Queue
Q. What is the primary difference between a stack and a queue?
  • A. Stack is LIFO, Queue is FIFO
  • B. Stack is FIFO, Queue is LIFO
  • C. Both are LIFO
  • D. Both are FIFO
Q. What is the primary difference between BFS and DFS in graph traversal?
  • A. BFS uses a stack, while DFS uses a queue.
  • B. BFS explores all neighbors at the present depth before moving on, while DFS explores as far as possible along a branch.
  • C. BFS is faster than DFS in all cases.
  • D. DFS is used for finding the shortest path, while BFS is not.
Q. What is the primary difference between BFS and DFS in terms of traversal strategy?
  • A. BFS uses a queue, DFS uses a stack
  • B. BFS uses a stack, DFS uses a queue
  • C. BFS is faster than DFS
  • D. DFS is always more memory efficient
Q. What is the primary difference between BFS and DFS?
  • A. BFS uses a stack, DFS uses a queue
  • B. BFS explores nodes level by level, DFS explores as far as possible along a branch
  • C. BFS is faster than DFS
  • D. DFS is always more memory efficient than BFS
Q. What is the primary difference between Dijkstra's algorithm and the A* search algorithm?
  • A. A* uses heuristics, Dijkstra's does not
  • B. Dijkstra's is faster than A*
  • C. A* can only be used on trees
  • D. Dijkstra's algorithm is recursive
Q. What is the primary difference between dynamic programming and divide and conquer?
  • A. Dynamic programming solves problems by breaking them into independent subproblems
  • B. Divide and conquer does not use recursion
  • C. Dynamic programming stores solutions to subproblems, while divide and conquer does not
  • D. There is no difference; they are the same
Q. What is the primary difference between top-down and bottom-up approaches in dynamic programming?
  • A. Top-down uses recursion, bottom-up uses iteration
  • B. Top-down is faster
  • C. Bottom-up is easier to implement
  • D. There is no difference
Q. What is the primary difference between top-down and bottom-up dynamic programming?
  • A. Top-down uses recursion, bottom-up uses iteration
  • B. Bottom-up is faster
  • C. Top-down requires more memory
  • D. There is no difference
Q. What is the primary disadvantage of Quick Sort?
  • A. It is not stable
  • B. It requires additional memory
  • C. It is slower than Merge Sort
  • D. It has a high constant factor
Q. What is the primary disadvantage of using an array for a dynamic list?
  • A. Fixed size
  • B. Slower access time
  • C. Higher memory usage
  • D. Complexity of implementation
Q. What is the primary disadvantage of using an array over a linked list?
  • A. Memory overhead
  • B. Fixed size
  • C. Slower access
  • D. Complex implementation
Q. What is the primary disadvantage of using DFS compared to BFS?
  • A. Higher time complexity
  • B. Can get stuck in deep paths
  • C. Requires more memory
  • D. None of the above
Q. What is the primary disadvantage of using DFS?
  • A. It cannot handle cycles
  • B. It may get stuck in deep paths
  • C. It is slower than BFS
  • D. It requires more memory
Q. What is the primary disadvantage of using dynamic programming?
  • A. It is always slower than greedy algorithms
  • B. It requires more memory
  • C. It cannot solve all problems
  • D. It is difficult to implement
Q. What is the primary disadvantage of using Quick Sort?
  • A. It is not stable
  • B. It has a high space complexity
  • C. It is slower than Merge Sort
  • D. It cannot handle large datasets
Q. What is the primary function of a default gateway in a subnet?
  • A. To route traffic within the subnet
  • B. To connect to the internet
  • C. To provide DHCP services
  • D. To manage IP address assignments
Q. What is the primary function of a lexical analyzer in a compiler?
  • A. To generate intermediate code
  • B. To parse the source code
  • C. To tokenize the input source code
  • D. To optimize the code
Q. What is the primary function of a lexical analyzer?
  • A. To generate intermediate code
  • B. To parse the source code
  • C. To tokenize the input stream
  • D. To optimize the code
Q. What is the primary function of a router in a network?
  • A. To connect devices within the same network
  • B. To forward data packets between different networks
  • C. To provide wireless connectivity
  • D. To encrypt data
Q. What is the primary function of a switch in a network?
  • A. Route packets between different networks
  • B. Filter and forward frames within the same network
  • C. Encrypt data for secure transmission
  • D. Assign IP addresses to devices
Q. What is the primary function of an activation function in a neural network?
  • A. To initialize weights
  • B. To introduce non-linearity
  • C. To optimize the learning rate
  • D. To reduce overfitting
Q. What is the primary function of an operating system?
  • A. Manage hardware resources
  • B. Create software applications
  • C. Design user interfaces
  • D. Perform data analysis
Q. What is the primary function of the 'User-Agent' header in an HTTP request?
  • A. To specify the type of content
  • B. To identify the client software making the request
  • C. To manage session state
  • D. To control caching behavior
Q. What is the primary function of the activation function in a neural network?
  • A. To initialize weights
  • B. To introduce non-linearity
  • C. To optimize the learning rate
  • D. To reduce overfitting
Q. What is the primary function of the ARP protocol?
  • A. To resolve IP addresses to MAC addresses
  • B. To assign IP addresses
  • C. To manage routing tables
  • D. To control error detection
Q. What is the primary function of the Data Link layer in the OSI model?
  • A. Routing packets
  • B. Error detection and correction
  • C. Establishing sessions
  • D. Providing user interfaces
Q. What is the primary function of the Network Layer in the OSI model?
  • A. Data formatting
  • B. Routing packets
  • C. Session management
  • D. Encryption
Q. What is the primary function of the Physical Layer in the OSI model?
  • A. Data formatting
  • B. Signal transmission
  • C. Session management
  • D. Error handling
Showing 1381 to 1410 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