100% de satisfacción garantizada Inmediatamente disponible después del pago Tanto en línea como en PDF No estas atado a nada 4.2 TrustPilot
logo-home
Examen

ICT3612 EXAM PACK 2025

Puntuación
-
Vendido
2
Páginas
61
Grado
A+
Subido en
11-10-2023
Escrito en
2024/2025

ICT3612 Latest exam pack questions and answers and summarized notes for exam preparation. Updated for 2025 exams . For assistance Whats-App.0.6.7..1.7.1..1.7.3.9 . All the best on your exams!!

Institución
Grado











Ups! No podemos cargar tu documento ahora. Inténtalo de nuevo o contacta con soporte.

Libro relacionado

Escuela, estudio y materia

Institución
Grado

Información del documento

Subido en
11 de octubre de 2023
Número de páginas
61
Escrito en
2024/2025
Tipo
Examen
Contiene
Preguntas y respuestas

Temas

Vista previa del contenido

ICT3612
EXAM PACK




FOR ASSISTANCE WITH THIS MODULE +27 67 171 1739

, ICT3612/104/1/2018

Example of an examination paper

Question 1 4 marks

Code, then use a simple function that contains one required and one default parameter.

Question 2 10 marks

2.1 Consider the following function:

<?php
function subtract($first_number, $second_number){
$result = $first_number - $second_number;
return $result;
}
?>

Define appropriate variables, and then use them with the function so that the following
sentence is printed:

The result of the calculation is -76. (6)

2.2 Consider the following function that works with a variable-length parameter list:

<?php
function dynamic_args() {
for($i = 0 ; $i < func_num_args(); $i++) {
echo "Argument $i = ".func_get_arg($i)."<br />";
}
}
?>

i. Use the function to produce the following lines:
Argument 0 = a
Argument 1 = b (2)

ii. Use the function again, but this time the following lines must be produced:
Argument 0 = a
Argument 1 = b
Argument 2 = c
Argument 3 = d
Argument 4 = e (2)

Question 3 28 marks

3.1 Create and use a simple class containing a single method that will produce the
following output:

Hello Felicia! (4)




3

, ICT3612/104/1/2018

3.2 Adapt (not extend) the class above so that it makes use of a constructor method, and
two get and set methods. Use the adapted class. The output produced must be as
follows:

Hello Felicia Ngobeni! (8)

3.3 Adapt the class from (b) by making the variables private. Extend the class with a
subclass named member. Add a function that will greet the member:

Hello member f3lng0Beni! (8)

3.4 Repeat 3.3 here above but extend the Users class with a class Administrator. When
used, the member will be greeted as follows:

Hello administrator Nthabiseng007! (8)

Question 4 21 marks

Consider the following draft facts of a database model:

The Entities required included are:

 Student Information
 Courses
 Student Courses
 Employees (Tutors)
 Contact Information (Contact between the Student and the Tutor by e-mail or phone)
 Contact Types (e-mail, phone)

The Entities are related as follows:

 One Student can enrol on One or Many Courses
 One Course can have One or Many Students enrolled on it.
 One Student can have zero, one or many forms of Contact with the Course Tutor
 One Employee (Tutor) can deal with many Contacts
 One Contact Type (Phone, E-mail, Assessments, Projects etc.) can have zero, one or
many Contacts

On the screenshot of the model below, and next to (or above) each X: fill in the missing entities,
relationships between the entities and primary keys.




4

, ICT3612/104/1/2018




Question 5 9 marks

Consider the following SQL code that will create a table in a database:

CREATE TABLE IF NOT EXISTS `course` (
`course_id` int(11) NOT NULL,
`course_name` text NOT NULL,
`course_descr` text NOT NULL,
`course_cost` text NOT NULL,
`course_duration` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
ALTER TABLE `course` ADD PRIMARY KEY (`course_id`);
ALTER TABLE `course` MODIFY `course_id` int(11) NOT NULL
AUTO_INCREMENT;

Using question mark parameters, write a prepared statement that will select the course names,
their descriptions and cost where the course_id is 12.

Question 6 8 marks

Consider the following form:




Write code that will process the form and send all the information processed in an email to
.




5
$3.02
Accede al documento completo:

100% de satisfacción garantizada
Inmediatamente disponible después del pago
Tanto en línea como en PDF
No estas atado a nada

Conoce al vendedor

Seller avatar
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
EduPal University of South Africa (Unisa)
Seguir Necesitas iniciar sesión para seguir a otros usuarios o asignaturas
Vendido
149163
Miembro desde
7 año
Número de seguidores
35995
Documentos
4314
Última venta
2 días hace

4.2

13555 reseñas

5
7803
4
2688
3
1790
2
455
1
819

Recientemente visto por ti

Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes