Additional MCQs and Explanations
1. Which layer of the OSI model is responsible for end-to-end communication?
Answer: B. Transport Layer
2. Which protocol operates at the Network Layer?
Answer: B. IP (Internet Protocol)
3. Which SQL statement is used to retrieve data from a database?
Answer: C. SELECT
4. What does the JOIN clause in SQL do?
Answer: A. Combines rows from two or more tables
5. Which data structure uses LIFO (Last In, First Out)?
Answer: B. Stack
6. What is the worst-case time complexity of QuickSort?
Answer: C. O(n²)
7. What will be the output of the Python code: x[::-1]?
Answer: B. [4, 3, 2, 1]