gs gs107 PHP Functions - PHP Functions - Quiz No.4
gs gs107 PHP: Hypertext Preprocessor Quiz
This quiz belongs to book/course code gs gs107 PHP: Hypertext Preprocessor of gs organization. We have 73 quizzes available related to the book/course PHP: Hypertext Preprocessor. This quiz has a total of 10 multiple choice questions (MCQs) to prepare and belongs to topic PHP Functions. NVAEducation wants its users to help them learn in an easy way. For that purpose, you are free to prepare online MCQs and quizzes.
NVAEducation also facilitates users to contribute in online competitions with other students to make a challenging situation to learn in a creative way. You can create one to one, and group competition on an topic of a book/course code. Also on NVAEducation you can get certifications by passing the online quiz test.
<?php function A1($x) { switch($x) { case 1: //this statement is the same as if($x == 1) echo 'Case 1 was executed.'; break; case 2: //this statement is the same as if($x == 2) echo 'Case 2 was executed.'; break; case 3: //this statement is the same as if($x == 3) echo 'Case 3 was executed.'; break; case 4: //this statement is the same as if($x == 4) echo 'Case 4 was executed.'; break; default: //this statement is the same as if $x does not equal the other conditions echo 'Default was executed.'; break; } } A1(9); ?>
<?php function uppercase($string) { echo ucwords($string); } $wow = "uppercase"; $wow("Time to live king size"); ?>
<?php function TV($string) { echo "my favourite TV show is ".$string; function b() { echo " I am here to spoil this code"; } } b(); ?>
<?php function TV($string) { echo "my favourite TV show is ".$string; function b() { echo " I am here to spoil this code"; } } function b() { echo " I am here to spoil this code"; } b(); ?>
<?php function TV($string) { echo "my favourite TV show is ".$string; function b() { echo " I am here to spoil this code"; } } function b() { echo " I am here to spoil this code"; } b(); TV("Sherlock"); ?>
<?php function TV($string) { echo "my favourite TV show is ".$string; function b() { echo " I am here to spoil this code"; } } a("Sherlock"); b(); ?>
<?php $var = 10; function one() { echo $var; } one(); ?>
<?php function mine($m) { if ($m < 0) echo "less than 0"; if ($ >= 0) echo "Not True"; } mine(0); ?>