Computer Science & IT

Download Q&A
Q. Which of the following is NOT a valid binary tree traversal method?
  • A. In-order
  • B. Pre-order
  • C. Post-order
  • D. Side-order
Q. Which of the following is NOT a valid Class A IP address?
  • A. 10.0.0.1
  • B. 127.0.0.1
  • C. 192.168.1.1
  • D. 100.100.100.100
Q. Which of the following is NOT a valid HTTP status code?
  • A. 200
  • B. 301
  • C. 404
  • D. 5050
Q. Which of the following is NOT a valid implementation of Dijkstra's algorithm?
  • A. Using an adjacency matrix.
  • B. Using an adjacency list with a binary heap.
  • C. Using a linked list for the priority queue.
  • D. Using a Fibonacci heap.
Q. Which of the following is NOT a valid IPv4 address?
  • A. 192.168.1.1
  • B. 256.100.50.25
  • C. 10.0.0.1
  • D. 172.16.0.5
Q. Which of the following is not a valid pointer declaration in C?
  • A. int *ptr;
  • B. float ptr;
  • C. char *ptr;
  • D. double *ptr;
Q. Which of the following is NOT a valid subnet mask?
  • A. 255.255.255.0
  • B. 255.255.255.128
  • C. 255.255.255.256
  • D. 255.255.255.192
Q. Which of the following is NOT a valid tree traversal method?
  • A. In-order
  • B. Pre-order
  • C. Post-order
  • D. Side-order
Q. Which of the following is NOT a valid way to implement a binary tree in C++?
  • A. Using a struct with pointers
  • B. Using an array
  • C. Using a linked list
  • D. Using a vector
Q. Which of the following is NOT a valid way to implement a binary tree in Python?
  • A. Using a class for nodes
  • B. Using a list to store values
  • C. Using a dictionary to map parent-child relationships
  • D. Using a set to store unique values
Q. Which of the following is NOT an application of DFS?
  • A. Topological sorting
  • B. Finding strongly connected components
  • C. Finding the shortest path
  • D. Solving puzzles like mazes
Q. Which of the following is NOT an application of Dijkstra's algorithm?
  • A. GPS navigation systems
  • B. Network routing protocols
  • C. Finding the minimum spanning tree
  • D. Robot path planning
Q. Which of the following is the correct subnet mask for a network that has 14 usable IP addresses?
  • A. 255.255.255.240
  • B. 255.255.255.224
  • C. 255.255.255.252
  • D. 255.255.255.248
Q. Which of the following is true about a binary search tree (BST)?
  • A. Inorder traversal gives sorted order
  • B. Preorder traversal gives sorted order
  • C. Postorder traversal gives sorted order
  • D. Level order traversal gives sorted order
Q. Which of the following is true about a binary search tree?
  • A. All nodes have at most two children.
  • B. The left child is always greater than the parent.
  • C. The right child is always less than the parent.
  • D. The left child is always less than the parent.
Q. Which of the following is true about a circular linked list?
  • A. It has a null reference
  • B. It can be traversed in one direction only
  • C. It can be traversed in both directions
  • D. The last node points to the first node
Q. Which of the following is true about a complete binary tree?
  • A. All levels are fully filled except possibly the last level.
  • B. All nodes have two children.
  • C. It is always balanced.
  • D. It has a maximum height of log n.
Q. Which of the following is true about a doubly linked list?
  • A. Each node has one pointer
  • B. Nodes can be traversed in both directions
  • C. It uses less memory than a singly linked list
  • D. It is always sorted
Q. Which of the following is true about a queue?
  • A. LIFO structure
  • B. FIFO structure
  • C. Random access
  • D. None of the above
Q. Which of the following is true about a stack?
  • A. Elements can be accessed in any order
  • B. Elements are removed in FIFO order
  • C. Elements are removed in LIFO order
  • D. None of the above
Q. Which of the following is true about arrays?
  • A. They can grow dynamically
  • B. They allow random access
  • C. They are always faster than linked lists
  • D. They require more memory than linked lists
Q. Which of the following is true about AVL trees compared to Red-Black trees?
  • A. AVL trees are faster for lookup operations.
  • B. Red-Black trees are faster for lookup operations.
  • C. Both have the same performance.
  • D. AVL trees are easier to implement.
Q. Which of the following is true about BFS?
  • A. It uses a stack
  • B. It finds the shortest path in unweighted graphs
  • C. It is faster than DFS
  • D. It cannot be implemented recursively
Q. Which of the following is true about DFS?
  • A. It can be implemented using recursion
  • B. It always finds the shortest path
  • C. It uses a queue
  • D. It is not suitable for cyclic graphs
Q. Which of the following is true about linked lists compared to arrays?
  • A. Linked lists have a fixed size
  • B. Arrays allow dynamic resizing
  • C. Linked lists allow efficient insertions/deletions
  • D. Arrays are more memory efficient
Q. Which of the following is true about pointers?
  • A. Pointers can only point to integers
  • B. Pointers can point to any data type
  • C. Pointers cannot be reassigned
  • D. Pointers are always initialized to zero
Q. Which of the following is true about Quick Sort?
  • A. It is always faster than Merge Sort
  • B. It is not in-place
  • C. It can be implemented using recursion
  • D. It is stable
Q. Which of the following is true about recursive algorithms?
  • A. They always run faster than iterative algorithms
  • B. They can be less memory efficient due to call stack
  • C. They cannot be used for sorting
  • D. They are always easier to understand
Q. Which of the following is true about Red-Black Trees?
  • A. They are always perfectly balanced
  • B. They can have a maximum height of 2 log n
  • C. They guarantee O(log n) time for all operations
  • D. They require more memory than AVL trees
Q. Which of the following is true about SLR parsing?
  • A. It uses a single lookahead token.
  • B. It is a type of LL parsing.
  • C. It can handle all context-free grammars.
  • D. It is less powerful than canonical LR parsing.
Showing 2851 to 2880 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