Home  • Programming • PHP

Quiz-1 : PHP Fundamental 1

1. Which data type is used to represent a single value?

A) scalar data type
B) supported tata type
C) setting data type
D) Compound data type

2. What do you mean by prototype?

A) Simply the function's definition
B) Input  parameters.
C) defined data type
D) Returns type of value.

3. Which data type is used to represents  true and false values?

A) Boolean
B) String
C) array
D) printf

4. <?php
print "<p>I love the summertime</p>";
?>

<?php
$season="summertime";
print "<p>I love the $season</p>";
?>

<?php
print "<p>I love the summertime</p>";
?>

what will be the same identical output for each?

A) I love the summertime
B) I love the $session.
C) summertime
D) summertime,I love the summertime

5. Which are correct for opening php syntax?

A) (Delimiter style) <?php echo "<p>some dynamic output here</p>"; ?>
B) (Short tags style) <? echo "<p>some dynamic output here</p>"; ?>
C) (ASp style) <% print "<p>some dynamic output here</p>"; %>
D) (Script style) <script language="php"> print "This another php example"; </script>

6. Which allows you to specify numbers that contains fractional parts?

A) Float
B) String
C) array
D) Boolean

7. Which of the followings  are  variable scope?

A) Local variable
B) Global variable
C) Static variable
D) Functions    parameters

8. Which are valid string's example?

A) "php is a great language"
B) "whoop-de-do"
C) '*9subway '
D) "123%^789"

9. Which functions count elements in an array?

A) count
B) Size of
C) Count_array
D) array_count

10. What will be the correct output of the following syntax?
<?php
$total=”45 fire engines”;
$incoming=”10”;
$total=$incoming+$total
?>


A) 55
B) 45 fire engines
C) 45 fire engines10
D) 55 fire engines


Comments 0


Share

Copyright © 2024. Powered by Intellect Software Ltd