Intro to PHP

Exit

Question 1 of 1

  Time Left


0 [{"id":496704,"quiz_id":"25568","answer_id":null,"answerType_id":"0","created_at":"2018-07-07 01:46:11","updated_at":"2018-07-09 14:45:16","questionName":"Consider the following \r\n\r\n$array[] = \"1\";\r\n$array[] = \"2\";\r\n$array[] = \"3\";\r\n$array[] = \"4\";\r\n$array[] = \"5\";\r\n\r\nunset($array[2]);\r\n\r\nforeach($array as $a)\r\n{\r\n echo $a . \"<br>\";\r\n}\r\n","questionTimeSeconds":"0","questionTimeMinutes":"1","questionImagePath":null,"position":9,"explanation":"","question_score_id":null,"lang":"","questionAudioPath":null},{"id":496712,"quiz_id":"25568","answer_id":null,"answerType_id":"0","created_at":"2018-07-07 01:50:24","updated_at":"2018-07-09 14:45:16","questionName":"Consider the following\r\n\r\n$a = \"php-is-easy\";\r\n$contents = preg_split(\"\/-\/\", $a);\r\n\r\n$contents is","questionTimeSeconds":"0","questionTimeMinutes":"1","questionImagePath":null,"position":5,"explanation":"","question_score_id":null,"lang":"","questionAudioPath":null},{"id":496705,"quiz_id":"25568","answer_id":null,"answerType_id":"0","created_at":"2018-07-07 01:46:36","updated_at":"2018-07-09 14:45:16","questionName":"An array can only have integers as keys; Strings are invalid keys.","questionTimeSeconds":"0","questionTimeMinutes":"1","questionImagePath":null,"position":0,"explanation":"","question_score_id":null,"lang":"","questionAudioPath":null},{"id":496715,"quiz_id":"25568","answer_id":null,"answerType_id":"0","created_at":"2018-07-07 01:52:32","updated_at":"2018-07-09 14:45:16","questionName":"Select the best description for this regex\r\n\r\n\"\/^(a{4}|b{4}).+\/\"","questionTimeSeconds":"0","questionTimeMinutes":"1","questionImagePath":null,"position":13,"explanation":"","question_score_id":null,"lang":"","questionAudioPath":null},{"id":496713,"quiz_id":"25568","answer_id":null,"answerType_id":"0","created_at":"2018-07-07 01:50:54","updated_at":"2018-07-09 14:45:16","questionName":"Consider the following\r\n\r\n$variable = fopen(\"php.txt\", \"a+\")\r\n\r\n$variable is ","questionTimeSeconds":"0","questionTimeMinutes":"1","questionImagePath":null,"position":7,"explanation":"","question_score_id":null,"lang":"","questionAudioPath":null},{"id":496740,"quiz_id":"25568","answer_id":null,"answerType_id":"0","created_at":"2018-07-07 02:56:05","updated_at":"2018-07-09 14:45:16","questionName":"Attackers can not see the contents of the headers even if they sniff the network traffic. This is why they're safe and reduces the need for SSL.","questionTimeSeconds":"0","questionTimeMinutes":"1","questionImagePath":null,"position":2,"explanation":"","question_score_id":null,"lang":"","questionAudioPath":null},{"id":496709,"quiz_id":"25568","answer_id":null,"answerType_id":"0","created_at":"2018-07-07 01:48:11","updated_at":"2018-07-09 14:45:16","questionName":"Because $_POST and $_GET operate like any other array, you can foreach loop through them.","questionTimeSeconds":"0","questionTimeMinutes":"1","questionImagePath":null,"position":3,"explanation":"","question_score_id":null,"lang":"","questionAudioPath":null},{"id":496736,"quiz_id":"25568","answer_id":null,"answerType_id":"0","created_at":"2018-07-07 02:53:58","updated_at":"2018-07-09 14:45:16","questionName":"Most browsers by default display an image. How do you suggest to the browser to prompt the user for download?","questionTimeSeconds":"0","questionTimeMinutes":"1","questionImagePath":null,"position":12,"explanation":"","question_score_id":null,"lang":"","questionAudioPath":null},{"id":496733,"quiz_id":"25568","answer_id":null,"answerType_id":"0","created_at":"2018-07-07 02:52:20","updated_at":"2018-07-09 14:45:16","questionName":"Because the function imageJPEG() generates the bytes that represent a JPEG image, by sending these bytes to the client,","questionTimeSeconds":"0","questionTimeMinutes":"1","questionImagePath":null,"position":4,"explanation":"","question_score_id":null,"lang":"","questionAudioPath":null},{"id":496706,"quiz_id":"25568","answer_id":null,"answerType_id":"0","created_at":"2018-07-07 01:47:05","updated_at":"2018-07-09 14:45:16","questionName":"An array can store mixed types of elements; mix of Strings, and integers","questionTimeSeconds":"0","questionTimeMinutes":"1","questionImagePath":null,"position":1,"explanation":"","question_score_id":null,"lang":"","questionAudioPath":null},{"id":496716,"quiz_id":"25568","answer_id":null,"answerType_id":"0","created_at":"2018-07-07 01:53:57","updated_at":"2018-07-09 14:45:16","questionName":"Select the best description for this regex\r\n\r\n\"\/^[a-c][0-9]+\/\"","questionTimeSeconds":"0","questionTimeMinutes":"1","questionImagePath":null,"position":14,"explanation":"","question_score_id":null,"lang":"","questionAudioPath":null},{"id":496710,"quiz_id":"25568","answer_id":null,"answerType_id":"0","created_at":"2018-07-07 01:49:10","updated_at":"2018-07-09 14:45:16","questionName":"Consider the following\r\n\r\n$variable = file(\"php.txt\");\r\n\r\n$variable now contains","questionTimeSeconds":"0","questionTimeMinutes":"1","questionImagePath":null,"position":6,"explanation":"","question_score_id":null,"lang":"","questionAudioPath":null},{"id":496703,"quiz_id":"25568","answer_id":null,"answerType_id":"0","created_at":"2018-07-07 01:45:33","updated_at":"2018-07-09 14:45:16","questionName":"Consider the following\r\n\r\n<form method=\"post\" action=\"form.php\">\r\n<input name=\"foo\" value=\"bar\" type=\"hidden\">\r\n<\/form>\r\nWhich of the following statements is true?","questionTimeSeconds":"0","questionTimeMinutes":"1","questionImagePath":null,"position":8,"explanation":"","question_score_id":null,"lang":"","questionAudioPath":null},{"id":496734,"quiz_id":"25568","answer_id":null,"answerType_id":"0","created_at":"2018-07-07 02:52:37","updated_at":"2018-07-09 14:45:16","questionName":"HTTP headers are unique to PHP; other programming languages can not use headers. This helps make PHP easy to learn.","questionTimeSeconds":"0","questionTimeMinutes":"1","questionImagePath":null,"position":11,"explanation":"","question_score_id":null,"lang":"","questionAudioPath":null},{"id":496707,"quiz_id":"25568","answer_id":null,"answerType_id":"0","created_at":"2018-07-07 01:47:23","updated_at":"2018-07-09 14:45:16","questionName":"HTML forms are only used to populate the $_POST array, not $_GET","questionTimeSeconds":"0","questionTimeMinutes":"1","questionImagePath":null,"position":10,"explanation":"","question_score_id":null,"lang":"","questionAudioPath":null}]
496704
0
60
block

Consider the following $array[] = "1"; $array[] = "2"; $array[] = "3"; $array[] = "4"; $array[] = "5"; unset($array[2]); foreach($array as $a) { echo $a . "<br>"; }

Select the Correct Answers  

(0/0)












496712
0
60
none
496705
0
60
none
496715
0
60
none
496713
0
60
none
496740
0
60
none
496709
0
60
none
496736
0
60
none
496733
0
60
none
496706
0
60
none
496716
0
60
none
496710
0
60
none
496703
0
60
none
496734
0
60
none
496707
0
60
none