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";
Documentinformatie
- Geüpload op
- 16 februari 2022
- Aantal pagina's
- 27
- Geschreven in
- 2021/2022
- Type
- Tentamen (uitwerkingen)
- Bevat
- Vragen en antwoorden