1. Which layer of the OSI model is responsible for routing and forwarding of data packets?
Answer: c) Network Layer
2. What is the purpose of the TCP (Transmission Control Protocol)?
Answer: a) Reliable data transmission
3. What is the function of a router in a network?
- a) Connect devices within a LAN
- b) Connect different LANs
- c) Filter spam emails
- d) Manage DHCP leases
Answer: b) Connect different LANs
4. Which of the following is not a top-level domain (TLD) in the domain name system (DNS)?
Answer: c) .web
5. In networking, what does the acronym LAN stand for?
Answer: a) Local Area Network
6. Which of the following is NOT a valid data type in C?
Answer: b) real
7. What is the output of the following code in C?
int x = 5; printf("%d", x++);
Answer: a) 5
8. Which operator is used to access the value of a variable through a pointer in C?
Answer: b) -> (arrow)
9. What is the result of `3 + 4 * 2` in C?
Answer: b) 14
10. In C, what is the purpose of the `break` statement in a `switch` statement?
Answer: d) To exit the `switch` statement
11. What is an object in C++?
Answer: c) An instance of a class
12. What is the primary purpose of inheritance in C++?
Answer: c) To reuse and extend the functionality of existing classes
13. Which keyword is used to allocate memory for a dynamic array in C++?
Answer: a) new
14. What is the output of the following code in C++?
int x = 5; cout << x++;
Answer: a) 5
15. Which C++ standard library header is used to perform input and output operations?
Answer: a) iostream
16. Which of the following is not a valid Python data type?
Answer: c) array
17. What does the `len()` function in Python do?
Answer: a) Returns the length of a list or string
18. What is the result of `3 ** 2` in Python?
Answer: b) 9
19. Which of the following is used to comment out a single line in Python?
Answer: a) # (pound/hash)
20. What is the output of the following code in Python?
x = "Hello" y = "World" print(x + " " + y)
Answer: a) Hello World
21. In Microsoft Word, which keyboard shortcut is used to copy selected text or objects?
Answer: a) Ctrl + C
22. In Microsoft Excel, which function is used to find the maximum value in a range of cells?
Answer: a) MAX()
23. In Microsoft PowerPoint, which view is used for creating and editing individual slides?
Answer: b) Normal View
24. In Microsoft Outlook, which folder is used to store sent emails?
Answer: c) Sent Items
25. In Microsoft Access, what is the primary key used for?
Answer: d) Identifying unique records in a table
26. Which Internet protocol is used for sending and receiving email messages?
Answer: c) SMTP
27. What does DNS stand for?
Answer: c) Domain Name System
28. How many bits are there in an IPv4 address?
Answer: b) 32
29. Which IP address range is reserved for private, internal networks?
Answer: c) 192.168.0.0 - 192.168.255.255
30. What protocol is used for secure communication over the Internet, often seen as "https://" in URLs?
Answer: d) SSL/TLS
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.