Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

ICT2613 EXAM PACK 2026 - DISTINCTION

Rating
-
Sold
-
Pages
339
Grade
A+
Uploaded on
07-02-2026
Written in
2025/2026

ICT2613 EXAM PACK 2026

Institution
Course

Content preview

100%




ICT2613
EXAM PACK


DISTINCTION QUALITY




UNISA EXAM

, 2 ICT2613
October/November 2025
Question 1 [10]
1.1 What is PHP? (1)

Question 1
1.1 PHP stands for Hypertext processor, it is a servers-side scripting language that is used for developiing web applications.


1.2 What software is essential to execute PHP scripts? (1)

1.2 Apache and MySQL



1.3 If a file name ends with .php, can it contain HTML code? (1)
1.3 Yes




1.4 Name the web browser you have used in this module to complete the assignments. (1)

1.4 Mozilla Firefox



1.5 Name the database server you have used in this module to complete the assignments. (1)

1.5 MySQL



1.6 List the steps you have taken in order to publish your Assignment 2 on an Internet Server. Assume
that you have completed and tested all the tasks, including index.php, of Assignment 2 on your
local server. (5)



1.6 After coding all the tasks, and index page, I did the following:


(a) I registered for a free hosting plan on 000webhost.com and I was given a domain name
(b) I created a new database and user on the web server and I imported my local database to my web database phpmyadmin in my
cpanel
(c ) I uploaded my file to the file manager on my cpanel
(d) I changed my connection.php file database connection to match my web server details
(e ) I loaded up my domain name in my web browser and my website was active




[TURN OVER]

, 3


Question 2 [16]
Consider the PHP statement and answer the questions that follow:

echo 'Good luck with ICT2613 exam.';

2.1 Declare a camel case variable to store a module code and initialize it to ICT2613. Substitute this
newly declared variable in the echo statement. The echo statement should use single quotes (') and
the concatenation operator. (3)

$moduleCode = "ICT2613";
Echo 'Good luck with ' . $moduleCode . ' exam' ;




2.2 What is the purpose of the htmlspecialchars() function? (2)

2.2
The purpose of the htmlspecialchars function is to display html codes as if they were ordinary string



2.5
$mymodules = array("ICT2613", "ICT2612", "ICT1513");

2.3 Rewrite the echo statement you have written for question 2.1 to make use of the
htmlspecialchars() function. (1)

2.3
Echo Htmlspecialchars('Good luck with ' . $moduleCode . ' exam');




2.4 Rewrite the echo statement you have written for question 2.1 to make use of double quotes (")
without using the concatenation operator. (1)

2.4
echo "Good luck with $moduleCode exam ";




2.5 Declare and initialize an array with three module codes, ICT2613, ICT2612 and ICT1513. (2)


2.5
$mymodules = array("ICT2613", "ICT2612", "ICT1513");

, 4


2.6 Write a function that contains an echo statement to display the sentence, Good luck with
xxx exam., where xxx is substituted with the value passed to its parameter. (3)


function displayMessage($module){
Return "Good luck with $module exam";




2.7 Write a for loop that iterates through the array you have written for question 2.5, and invokes the
function you have written for question 2.6 for each module code in the array. (4)


foreach($mymodules as $module){
echo displayMessage($module) . "<br>";




Question 3 [14]
Study the code below and answer the questions that follow:

<form>
<label>Modules:</label> <br>
<input type="radio" name="module_code" value="ICT2613"> ICT2613
<input type="radio" name="module_code" value="ICT2612"> ICT2612
<input type="radio" name="module_code" value="ICT1513"> ICT1513
</form>

3.1 Draw the form displayed by the given code. (3)




[TURN OVER]

Written for

Institution
Course

Document information

Uploaded on
February 7, 2026
Number of pages
339
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$4.73
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
ExampackStore Teachme2-tutor
Follow You need to be logged in order to follow users or courses
Sold
7951
Member since
3 year
Number of followers
2428
Documents
264
Last sold
3 days ago
Exam Pack Store

Cheap and affordable

3.9

368 reviews

5
179
4
73
3
62
2
13
1
41

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions