Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PHP Questions: 1. Which of the following is not a valid PHP comment Group of answer choices A. /* This is a PHP comment */

PHP Questions:

1. Which of the following is not a valid PHP comment

Group of answer choices

A. /* This is a PHP comment */

B. ! This is a PHP comment

C. # This is a PHP comment

D. // This is a PHP comment

2. Which of the following is not a php loop construct

Group of answer choices

A. for( expr1; expr2; expr3)

B. while(expre)

C. iterate(expr1) {} untill (expr2)

D. do { } while (expr)

3. For the following switch statement what will be echoed if $find is equal to "a"

switch($find) { case "a" : echo "Regular customer.

"; case "b" : echo "Customer referred by TV advert.

"; break; case "c" : echo "Customer referred by phone directory.

"; break; case "d" : echo "Customer referred by word of mouth.

"; break; default : echo "We do not know how this customer found us.

"; break; }

Group of answer choices

A. Regular customer Customer referred by TV advert

B. Regular customer

C. Regular customer Customer referred by TV advert

Customer referred by phone directory

D. None of the above

4. What is the ouput of the following if $totalqty is equal to 1 (one)

if ($totalqty == 0) echo '

You did not order anything on the previous page!

'; echo '

Try again

';

Group of answer choices

A. You did not order anything on the previous page! Try again

B. There is no output

C. Try again

D. You did not order anything on the previous page!

5. The output of this date command will have which of the following formats

date('l jS \of F Y h:i:s A');

Group of answer choices

A. 04:11:53 PM Saturday 18th of April 2020

B. Sat, 18 Apr 2020 16:18:12 +0000

C. Saturday 18th of April 2020 04:11:53 PM

D. 18th of April 2020 04:11:53 PM

6. Which of the following is a valid constant value declaration in PHP

Group of answer choices

A. define('$OILPRICE', 10);

B. #define OILPRICE 10

C. const OILPRICE = 10

D. define('OILPRICE', 10);

7.

$a += 5;

is equivalent to writing

$a = $a + 5;

Group of answer choices

A. True

B. False

8. The output of $e and $f in the following are identical

$a = 0x1; $b = 0x2; $c = 0x4; $d = 0x8; $e = $a + $b * $c + $d; $f = ($a + $b) * ($c + $d);

Group of answer choices

A. True

B. False

9. Which of the following are examples of variable handling functions

Select all that apply

Group of answer choices

A. is_array

B. is_local

C. is_global

D. is_object

10. The output of

$z = 22; if( $z = 23 ) { echo "In the z = 23 clause
";
} else { echo "Not in the z = 23 clause
";
}

Is

Not in the z = 23 clause

Group of answer choices

A. True

B. False

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

AWS Certified Database Study Guide Specialty DBS-C01 Exam

Authors: Matheus Arrais, Rene Martinez Bravet, Leonardo Ciccone, Angie Nobre Cocharero, Erika Kurauchi, Hugo Rozestraten

1st Edition

1119778956, 978-1119778950

More Books

Students also viewed these Databases questions