Created by Vivan Web Solution QUIZ Please read these instructions carefully!* Do not try to copy questions and search for answers on the Internet.* Do not take screenshots.* Do not ask someone else to pass your test for you.* If you break any rules, THE TEST WILL BE ABORTED. 1 / 15 1) Which one of the following keyword is used to inherit our subclass into a superclass? A) inherit B) implements C) include D) extends 2 / 15 2) Which is the right way of declaring a variable in PHP? A) $3hello B) $_hello C) $this D) $5_Hello 3 / 15 3) Which one of the following statements is used to create a table? A) CREATE TABLE table_name (column_name column_type); B) CREATE TABLE table_name (column_type column_name); C) CREATE table_name (column_name column_type); D) CREATE table_name (column_type column_name); 4 / 15 4) How many types of JOINS are there in SQL? A) 2 B) 3 C) 1 D) 4 5 / 15 5) 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");elseecho("Integer is valid");?> A) Error B) No output is returned C) Integer is not valid D) Integer is valid 6 / 15 6) 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? A) echo B) print_r C) printf() D) print_ar 7 / 15 7) 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));?> A) Array ( [0] => blue [1] => yellow [2] => red [3] => green ) B) Array ( [0] => red [1] => green) C) Array ( [0] => blue [1] => yellow ) D) Array ( [0] => red [1] => green [2] => blue [3] => yellow ) 8 / 15 8) What will be the output of the following PHP code?<?phpdefine("GREETING", "PHP is a scripting language");echo $GREETING;?> A) no output B) GREETING C) $GREETING D) PHP is a scripting language 9 / 15 9) Which keyword is used to refer to properties or methods within the class itself? A) private B) $this C) protected D) public 10 / 15 10) The class from which the child class inherits is called ________i) Child classii) Parent classiii) Super classiv) Base class A) Only i) B) ii), iii) and iv) C) Only iii) D) ii) and iv) 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"};?> A) no output B) how are u C) error D) hi 12 / 15 12) What will be the output of the following PHP code?<?phpfor ($count = 1; $count < 20; $count++);print $count;?> A) 12345678910….1920 B) 20 C) 19 D) 12345678910….19 13 / 15 13) Which one of the following statements can be used to select the database? A) mysqli=select_db('databasename'); B) mysqli->select_db('databasename'); C) $mysqli->select_db('databasename'); D) $mysqli=select_db('databasename'); 14 / 15 14) Which two predefined variables are used to retrieve information from forms? A) $__GET & $__SET B) GET & SET C) $GET & $SET D) $_GET & $_SET 15 / 15 15) Which one of the following functions will convert a string to all uppercase? A) struppercase() B) strtoupper() C) str_uppercase() D) uppercase() Your score is LinkedIn Facebook 0% Restart quiz