1. Which layer of the OSI model is responsible for routing and forwarding of data packets?
- a) Physical Layer
- b) Data Link Layer
- c) Network Layer
- d) Transport Layer
Show Answer
Answer: c) Network Layer
2. What is the purpose of the TCP (Transmission Control Protocol)?
- a) Reliable data transmission
- b) Address resolution
- c) Routing
- d) Error detection
Show Answer
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
Show Answer
Answer: b) Connect different LANs
4. Which of the following is not a top-level domain (TLD) in the domain name system (DNS)?
- a) .com
- b) .net
- c) .web
- d) .org
Show Answer
Answer: c) .web
5. In networking, what does the acronym LAN stand for?
- a) Local Area Network
- b) Long Accessible Network
- c) Large Array Network
- d) Linked Application Node
Show Answer
Answer: a) Local Area Network
6. Which of the following is NOT a valid data type in C?
- a) float
- b) real
- c) int
- d) char
Show Answer
Answer: b) real
7. What is the output of the following code in C?
int x = 5;
printf("%d", x++);
8. Which operator is used to access the value of a variable through a pointer in C?
- a) . (dot)
- b) -> (arrow)
- c) : (colon)
- d) = (equal)
Show Answer
Answer: b) -> (arrow)
9. What is the result of `3 + 4 * 2` in C?
Show Answer
Answer: b) 14
10. In C, what is the purpose of the `break` statement in a `switch` statement?
- a) To exit the loop
- b) To continue to the next case
- c) To skip the current iteration
- d) To exit the `switch` statement
Show Answer
Answer: d) To exit the `switch` statement
11. What is an object in C++?
- a) A class definition
- b) A data type
- c) An instance of a class
- d) A variable
Show Answer
Answer: c) An instance of a class
12. What is the primary purpose of inheritance in C++?
- a) To create new classes
- b) To implement polymorphism
- c) To reuse and extend the functionality of existing classes
- d) To hide the implementation details of a class
Show Answer
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++?
- a) new
- b) malloc
- c) allocate
- d) create
Show Answer
Answer: a) new
14. What is the output of the following code in C++?
int x = 5;
cout << x++;
15. Which C++ standard library header is used to perform input and output operations?
- a) iostream
- b) stdlib
- c) cmath
- d) string
Show Answer
Answer: a) iostream
16. Which of the following is not a valid Python data type?
- a) list
- b) tuple
- c) array
- d) dict
Show Answer
Answer: c) array
17. What does the `len()` function in Python do?
- a) Returns the length of a list or string
- b) Computes the logarithm of a number
- c) Calculates the absolute value of a number
- d) Returns the largest item in a list
Show Answer
Answer: a) Returns the length of a list or string
18. What is the result of `3 ** 2` in Python?
19. Which of the following is used to comment out a single line in Python?
- a) # (pound/hash)
- b) /* and */
- c) -- (double hyphen)
- d) // (double slash)
Show Answer
Answer: a) # (pound/hash)
20. What is the output of the following code in Python?
x = "Hello"
y = "World"
print(x + " " + y)
- a) Hello World
- b) HelloWorld
- c) Hello + World
- d) Error
Show Answer
Answer: a) Hello World
21. In Microsoft Word, which keyboard shortcut is used to copy selected text or objects?
- a) Ctrl + C
- b) Ctrl + X
- c) Ctrl + V
- d) Ctrl + Z
Show Answer
Answer: a) Ctrl + C
22. In Microsoft Excel, which function is used to find the maximum value in a range of cells?
- a) MAX()
- b) SUM()
- c) AVG()
- d) MIN()
Show Answer
Answer: a) MAX()
23. In Microsoft PowerPoint, which view is used for creating and editing individual slides?
- a) Slide Sorter View
- b) Normal View
- c) Outline View
- d) Slide Master View
Show Answer
Answer: b) Normal View
24. In Microsoft Outlook, which folder is used to store sent emails?
- a) Inbox
- b) Outbox
- c) Sent Items
- d) Drafts
Show Answer
Answer: c) Sent Items
25. In Microsoft Access, what is the primary key used for?
- a) Sorting records
- b) Creating relationships between tables
- c) Storing large text documents
- d) Identifying unique records in a table
Show Answer
Answer: d) Identifying unique records in a table
26. Which Internet protocol is used for sending and receiving email messages?
- a) HTTP
- b) FTP
- c) SMTP
- d) TCP
Show Answer
Answer: c) SMTP
27. What does DNS stand for?
- a) Domain Network Service
- b) Dynamic Name Server
- c) Domain Name System
- d) Data Network Service
Show Answer
Answer: c) Domain Name System
28. How many bits are there in an IPv4 address?
Show Answer
Answer: b) 32
29. Which IP address range is reserved for private, internal networks?
- a) 10.0.0.0 - 10.255.255.255
- b) 172.16.0.0 - 172.31.255.255
- c) 192.168.0.0 - 192.168.255.255
- d) 169.254.0.0 - 169.254.255.255
Show Answer
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?
- a) FTP
- b) HTTP
- c) TCP
- d) SSL/TLS
Show Answer
Answer: d) SSL/TLS