PHP: Test 3 - Online Test

Test Difficulty Level: Easy

Syllabus of Test

Sample Question from this online test:

Question: In mail($param2, $param2, $param3, $param4), the $param2 contains:

Option A: The message

Option B: The recipient

Option C: The header

Option D: The subject

To answer, click the "Start This Test" button below.

Start this Test






Comments

Gagan charaya on 2011-01-13 12:01:52 wrote,

Question 9 :

PHP supports all four different ways of delimiting. In this context identify the false statement -

Option A: You can use any of the delimiting style

Option B: You can use different delimiting styles in same page

Option C: You can use any delimiting style but must use a single style consistently for a page

Option D: Variables declared in previous blocks are remenbered on later blocks too!

Your Answer:

Correct Answer: C
I THINK ANS C IS INCORRECT.
EXAMPLE BELOW WORKS PERFECTLY FINE

<?php
$word="HELLO WORD";
echo ucwords(strtoupper($word));

echo "how are you";
?>

<?SCRIPT TYPE="PHP" echo 'This is a test' ?>

DINESH S on 2011-02-06 18:15:22 wrote,

PAP

DINESH S on 2011-02-06 18:15:33 wrote,

PAPA

pawan jehgaria on 2011-11-20 07:54:26 wrote,

very logical question they r nice

pawan jehgaria on 2011-11-22 13:12:06 wrote,

Good

shivendu ray on 2012-04-12 11:41:18 wrote,

vvvv

raghu ram on 2012-04-14 05:18:31 wrote,

very useful...

Jegatheesh Pandian R on 2013-02-27 10:43:04 wrote,

the following statement is correct?

TEST2:

Question 11 :
To produce the output6 I love the summer time, Which of the of following statement should be used?

<?Php
$ message="<p> I love the summer time </p>;
ecdho $ message;
?>