IT test Welcome to your IT Test What is AJAX? A. is a program B. is a country name C. is a football club name D. All of these Which one of the following function is capable of reading a file into a string variable? file_contents() file_get_contents() file_content() file_get_content() PHP files have a default file extension of. A. .html B. .xml C. .php D. .ph If there is no error, then what will the error() method return? A. TRUE B. FALSE C. Empty String D. 0 Consider the following code snippet console.log(p) If p is not defined, what would be the result or type of error? A. Zero B. Null C. ReferenceError D. ValueNotFoundError Which jQuery method is used to hide selected elements? A. hidden() B. hide() C. visible(false) D. display(none) The practice of separating the user from the true inner workings of an application through well-known interfaces is known as.. A. Polymorphism B. Inheritance C. Encapsulation D. Abstraction Which are the two functions that are not allowed in any secure subset? A. evaluate() and restrict() B. eval() and the Function() constructor C. debugger() and test() D. eval() and debugger() Which one of the following PHP functions can be used to find files? glob() file() fold() get_file() How does the HTML tag start and end? </> What will happen in this function call? < ?php function calc($price,$tax) { $total = $price + $tax; } $pricetag = 15; $taxtag = 3; calc($pricetag, $taxtag); ?> Call By Value Call By Reference Default Argument Value Type Hinting What does the subexpression /java(script)?/ result in ? A. It matches “java” followed by the optional “script” B. It matches “java” followed by any number of “script” C. It matches “java” followed by a minimum of one “script” D. None of the mentioned Which one of the following methods can be used to diagnose and display information about a MySQL connection error? A. connect_errno() B. connect_error() C. mysqli_connect_errno() D. mysqli_connect_error() What will be the output of the following php code? < ?php $num = "1"; $num1 = "2"; print $num+$num1 ; ?> 3 1+2 Error 12 If your object must inherit behavior from a number of sources you must use a/an A. Interface B. Object C. abstract class D. static class Name Email Phone Number Time's up