ICT3612 ASSIGNMENT 1
ICT3612 ASSIGNMENT YEAR 2022 9 ASSIGNMENTS 7.1 Assignment 1 (chapters 13-18) Multiple Choice Assignment number 1 Assignment due date 5 March 2018 (hard date, no extensions) Unique assignment number Multiple Choice questions 50 Question 1 Which one of the following is the right way of defining a function in PHP? 1. function functionName(parameters) { function body } 2. function { function body } 3. data type functionName(parameters) { function body } 4. functionName(parameters) { function body } Question 2 What output will the following PHP function produce? ?php function calc($price, $tax = ’’) { $total = $price + ($price * $tax); echo "$total";
Written for
- Institution
- University of South Africa
- Course
- ICT3612 - Advanced Internet Programming
Document information
- Uploaded on
- February 16, 2022
- Number of pages
- 27
- Written in
- 2021/2022
- Type
- Exam (elaborations)
- Contains
- Questions & answers
Subjects
-
ict3612 assignment year 2022