Page 1 of 16
ICT2613 INTERNET PROGRAMMING EXAM QUESTIONS AND CORRECT
ANSWERS LATEST EDITION 2026
ICT2613 Internet Programming
Section 1: Web Server Fundamentals (Questions 1–50)
1. Which of the following is a Web server?
A) MySQL
B) Apache
C) PHP
D) HTML
Answer: B — Apache
Rationale: A Web server is software that serves web pages to clients. Apache is a popular open-
source Web server .
2. What type of request does a Web browser typically send to a server?
A) FTP
B) HTTP
C) SMTP
D) TCP
Answer: B — HTTP
Rationale: A Web browser typically sends an HTTP (Hypertext Transfer Protocol) request to a
server when requesting web pages .
3. What is the primary role of the PHP interpreter?
A) To style web pages
B) To process PHP code on the server side to generate dynamic web pages
C) To store data
D) To serve static HTML files
1|Page
,Page 2 of 16
Answer: B — To process PHP code on the server side to generate dynamic web pages
Rationale: The PHP interpreter processes PHP code on the server side to generate dynamic web
pages .
4. Which directory is used to deploy a PHP application on a local Apache server?
A) www
B) public
C) htdocs
D) html
Answer: C — htdocs
Rationale: To deploy a PHP application, you copy the application root directory to the htdocs
directory of the Apache server .
5. What does localhost refer to in web development?
A) A remote server
B) The local computer acting as a server
C) A cloud hosting service
D) A database server
Answer: B — The local computer acting as a server
Rationale: Localhost uses the local computer as the domain name for development purposes .
6. Which of the following is a client-server application?
A) A standalone text editor
B) A web browser accessing a website
C) A calculator app
D) A spreadsheet program
Answer: B — A web browser accessing a website
Rationale: Client-server applications involve a client (browser) requesting services from a server
.
7. What is the purpose of HTTP?
A) To encrypt data
B) To specify the format for requests and responses between browsers and servers
C) To store data
D) To style web pages
Answer: B — To specify the format for requests and responses between browsers and servers
Rationale: HTTP specifies the format for requests and responses .
2|Page
, Page 3 of 16
8. What does TCP stand for?
A) Transfer Control Protocol
B) Transmission Control Protocol
C) Transport Connection Protocol
D) Terminal Control Protocol
Answer: B — Transmission Control Protocol
Rationale: TCP (Transmission Control Protocol) is a suite of protocols that enable
communication between computers .
9. Which software is available on the Osprey website for ICT2613?
A) Only Apache
B) All necessary software referred to in the textbook and additional software
C) Only PHP
D) Only MySQL
Answer: B — All necessary software referred to in the textbook and additional software
Rationale: The Osprey website includes all necessary software and additional software .
10. What is the preferred mode of communication with the ICT2613 lecturer?
A) Phone
B) Email
C) SMS
D) Postal mail
Answer: B — Email
Rationale: The preferred mode of communication with the lecturer is via email .
Section 2: PHP Fundamentals (Questions 51–120)
11. Which of the following is a valid PHP variable name?
A) 2𝑛𝑑𝑉𝑎𝑙𝑢𝑒𝐵)total-score
C) 𝑐 𝑜𝑢𝑛𝑡𝐷)float
Answer: C — $_count
Rationale: PHP variable names can contain letters and numbers but cannot start with a digit or
contain special characters like hyphens .
12. What will the value of 𝑥𝑏𝑒𝑎𝑓𝑡𝑒𝑟𝑡ℎ𝑖𝑠𝑐𝑜𝑑𝑒𝑒𝑥𝑒𝑐𝑢𝑡𝑒𝑠? 𝑖𝑓(x > 200) 𝑥 = 10; 𝑒𝑙𝑠𝑒𝑖𝑓(x > 100)
𝑥 = 20; 𝑒𝑙𝑠𝑒x = 30; (Assume $x = 150)
A) 10
B) 20
3|Page
ICT2613 INTERNET PROGRAMMING EXAM QUESTIONS AND CORRECT
ANSWERS LATEST EDITION 2026
ICT2613 Internet Programming
Section 1: Web Server Fundamentals (Questions 1–50)
1. Which of the following is a Web server?
A) MySQL
B) Apache
C) PHP
D) HTML
Answer: B — Apache
Rationale: A Web server is software that serves web pages to clients. Apache is a popular open-
source Web server .
2. What type of request does a Web browser typically send to a server?
A) FTP
B) HTTP
C) SMTP
D) TCP
Answer: B — HTTP
Rationale: A Web browser typically sends an HTTP (Hypertext Transfer Protocol) request to a
server when requesting web pages .
3. What is the primary role of the PHP interpreter?
A) To style web pages
B) To process PHP code on the server side to generate dynamic web pages
C) To store data
D) To serve static HTML files
1|Page
,Page 2 of 16
Answer: B — To process PHP code on the server side to generate dynamic web pages
Rationale: The PHP interpreter processes PHP code on the server side to generate dynamic web
pages .
4. Which directory is used to deploy a PHP application on a local Apache server?
A) www
B) public
C) htdocs
D) html
Answer: C — htdocs
Rationale: To deploy a PHP application, you copy the application root directory to the htdocs
directory of the Apache server .
5. What does localhost refer to in web development?
A) A remote server
B) The local computer acting as a server
C) A cloud hosting service
D) A database server
Answer: B — The local computer acting as a server
Rationale: Localhost uses the local computer as the domain name for development purposes .
6. Which of the following is a client-server application?
A) A standalone text editor
B) A web browser accessing a website
C) A calculator app
D) A spreadsheet program
Answer: B — A web browser accessing a website
Rationale: Client-server applications involve a client (browser) requesting services from a server
.
7. What is the purpose of HTTP?
A) To encrypt data
B) To specify the format for requests and responses between browsers and servers
C) To store data
D) To style web pages
Answer: B — To specify the format for requests and responses between browsers and servers
Rationale: HTTP specifies the format for requests and responses .
2|Page
, Page 3 of 16
8. What does TCP stand for?
A) Transfer Control Protocol
B) Transmission Control Protocol
C) Transport Connection Protocol
D) Terminal Control Protocol
Answer: B — Transmission Control Protocol
Rationale: TCP (Transmission Control Protocol) is a suite of protocols that enable
communication between computers .
9. Which software is available on the Osprey website for ICT2613?
A) Only Apache
B) All necessary software referred to in the textbook and additional software
C) Only PHP
D) Only MySQL
Answer: B — All necessary software referred to in the textbook and additional software
Rationale: The Osprey website includes all necessary software and additional software .
10. What is the preferred mode of communication with the ICT2613 lecturer?
A) Phone
B) Email
C) SMS
D) Postal mail
Answer: B — Email
Rationale: The preferred mode of communication with the lecturer is via email .
Section 2: PHP Fundamentals (Questions 51–120)
11. Which of the following is a valid PHP variable name?
A) 2𝑛𝑑𝑉𝑎𝑙𝑢𝑒𝐵)total-score
C) 𝑐 𝑜𝑢𝑛𝑡𝐷)float
Answer: C — $_count
Rationale: PHP variable names can contain letters and numbers but cannot start with a digit or
contain special characters like hyphens .
12. What will the value of 𝑥𝑏𝑒𝑎𝑓𝑡𝑒𝑟𝑡ℎ𝑖𝑠𝑐𝑜𝑑𝑒𝑒𝑥𝑒𝑐𝑢𝑡𝑒𝑠? 𝑖𝑓(x > 200) 𝑥 = 10; 𝑒𝑙𝑠𝑒𝑖𝑓(x > 100)
𝑥 = 20; 𝑒𝑙𝑠𝑒x = 30; (Assume $x = 150)
A) 10
B) 20
3|Page