Quiz

Created by Vivan Web Solution

QUIZ

1 / 15

1) Which one of the following keyword is used to inherit our subclass into a superclass?

2 / 15

2) Which keyword is used to refer to properties or methods within the class itself?

3 / 15

3) Which one of the following functions will convert a string to all uppercase?

4 / 15

4) What will be the output of the following PHP code?

<?php
$num = "123";
if (!filter_var($num, FILTER_VALIDATE_INT))
echo("Integer is not valid");
else
echo("Integer is valid");
?>

5 / 15

5) Which is the right way of declaring a variable in PHP?

6 / 15

6) What will be the output of the following PHP code?

<?php
for ($count = 1; $count < 20; $count++);
print $count;
?>

7 / 15

7) How many types of JOINS are there in SQL?

8 / 15

8) Which one of the following statements can be used to select the database?

9 / 15

9) The class from which the child class inherits is called ________
i) Child class
ii) Parent class
iii) Super class
iv) Base class

10 / 15

10) Which one of the following statements is used to create a table?

11 / 15

11) What will be the output of the following PHP code?

<?php
$x = 10;
$y = 20;
if ($x > $y + $y != 3)

{ print "hi" ;
}else{
print "how are u"};
?>

12 / 15

12) What will be the output of the following PHP code?

<?php
define("GREETING", "PHP is a scripting language");
echo $GREETING;
?>

13 / 15

13) You use the get_class_methods() function to return the names of all the methods in the class. Which function will you use to print it on the screen?

14 / 15

14) What will be the output of the following PHP code?

<?php
$a1 = array("red", "green");
$a2 = array("blue", "yellow");
print_r(array_merge($a1, $a2));
?>

15 / 15

15) Which two predefined variables are used to retrieve information from forms?

Your score is

0%