PHP Test online
7. Which values should be assigned to the variables $a, $b and $c in order for the following script to display the string Hello, World!?Вариант ответа 1 - A) False, True, False Вариант ответа 2 - B) True, True, False Вариант ответа 3 - C) False, True, True Вариант ответа 4 - D) False, False, True Вариант ответа 5 - E) True, True, True Comments: Following the logic of the conditions, the only way to get to the Hello, World! string is in the else condition of the first if statement. Thus, $a must be False. Likewise, $b must be False. The final conditional relies on both previous conditions ($a and $b) being False, but insists that $c be True (Answer D). |
Comments
| User name | Comment |
|---|
Русский