PHP Welcome to your Technical Test Name Email Contact No. 1. Who is the father of PHP? Willam Makepiece Rasmus Lerdorf Drek Kolkevi List Barely 2. Which of the following PHP functions can be used to get the current memory usage? get_peak_usage() get_usage() memory_get_usage() memory_get_peak_usage() 3. Which of the following is correct about CSS? CSS is used to control the style of a web document in a simple and easy way. CSS is the acronym for "Cascading Style Sheet". You can write CSS once and then reuse same sheet in multiple HTML pages. All of the above. 4. Which function do you have to use to check whether the $path you've stored exists? path_dir() path() is_dir() 5. Select the output of the following PHP code? <?php$a = 0x6db7;print $a<<6;?> 1797568 0x6dc0 error no output 6. Which logging option's description is if an error occurs when writing to the syslog, send output to the system console? LOG_NDELAY LOG_ODELAY LOG_CONS LOG_PERROR 7. Select the output of the following PHP code? <?php$a = 2;if ($a-- - --$a - $a)print "hello";elseprint "hi";?> hello error no output hi 8. default controller can be set from which configuration file: database config routes autoload 9. Which of the following statements invoke the exception class? throws new Exception(); new throws Exception(); throw new Exception(); new Exception(); 10. Select the output of the following PHP code. <?php$text = "this is\tsome text that\nwe might like to parse.";print_r(split("[\n\t]",$text));?> this is some text that we might like to parse. Array ( [0] => this is [1] => some text that [2] => we might like to parse. ) [0] => this is [1] => some text that [2] => we might like to parse. Array ( [0] => some text that [1] => we might like to parse. ) 11. What are the different types of hook point in Codeigniter? post_controller_constructor pre_controller post_sytem All of these 12. If the format is F then which one of the following will be returned? Daylight saving time Day of month, with leading zero Complete text representation of month Day of month, without zeros 13. POSIX stands for ____________ Portable Operating System Interface for Unix Portative Operating System Interface for Linux Portable Operating System Interface for Linux Portative Operating System Interface for Unix 14. Which one of the following PHP statements is true? class CopyMe {}$first = new CopyMe();$second = $first; In PHP 4: $second and $first refer to one object In PHP 4: $second and $first are 2 distinct objects In PHP 5: $second and $first are 2 distinct objects None of the mentioned 15. Which of the following is not true about inserting news rows to a table? The INSERT INTO statement is used for inserting new rows to a table You cannot insert rows with NULL values to a table. You may insert a new row containing values for each column. All of the above 16. Identify the CSS property defining bottom-left corner shape of the border? border-radius border-corner-radius border-bottom-left-radius border-left-radius 17. Which of the following is/are true for an abstract class? i) Abstract classes in PHP are declared with the help of abstract keyword.ii) A class is declare abstract by using the keyword implements.iii) It is a class that really isn’t supposed to ever be instantiated but instead serves as a base class.iv) Attempting to instantiate an abstract class results in an error. Only iii) ii) and iv) ii), iii) and iv) Only i) 18. Using which one of the following PHP lines will the error be removed? Output: namespace main; com\getinstance\util\Debug::helloWorld() PHP Fatal error: Class 'main\com\getinstance\util\Debug' not found in ... \com\getinstance\util\Debug::helloWorld(); \\com\getinstance\util\Debug::helloWorld(); getinstance\util\Debug::helloWorld(); main.com\getinstance\util\Debug::helloWorld(); 19. Which of the following is true about SQL joins? The join condition is not separated from other search conditions in a query. The ON clause makes code difficult to understand. The join condition for natural join is basically an equijoin of all columns with same name. None of the above. 20. Which of the following query would display the distinct honours subjects in the STUDENTS table? STUDENTS(student_code, first_name, last_name, email, phone_no, date_of_birth, honours_subject, percentage_of_marks); select honours_subject from students; select distinct honours_subject from students; select all honours_subject from students; select * from students; 21. Which one of the following function is capable of reading a file into an array? arrfile() arr_file() file_arr() file() 22. To calculate the date 45 days from the present date which of the following statement will you use? strtotime("-45 days") totime("+45") strtotime("+45 days") totime("+45 days") 23. Which one will control all the segments? index.php somethingvone somethingvtwo somethingvthree 24. Select the output of the following PHP code. <?phpfunction TV($string){echo "my favourite TV show is ".$string;function b(){echo " I am here to spoil this code";}}b();?> Error I am here to spoil this code My favourite TV show isI am here to spoil this code None of the mentioned 25. The updated MySQL extension released with PHP 5 is typically referred to as _______________ mysql MySQL mysqli mysqly 26. In which of the following circumstance should you use a static reference to a non static method? Making an object call using parent Making a method call using parent Making an object call using child Making a method call using child 27. What does SPL stand for? Standard PHP Library Source PHP List Standard PHP List Source PHP Library 28. How many functions does PHP offer for searching and modifying strings using Perl-compatible regular expressions 9 10 8 7 29. Which character does the error_reporting directive use to represent the logical operator NOT? ^ ! ~ / 30. The input given is a string "https://www.daååytoøøur.com/", sanitazation will return the $url _____________ http://www.daååytoøøur.com/ https://www.daytour.com/ http://www.daaaytooour.com/ http://www.daåytoøur.com/