A variable defined in a PHP function, by default, is local to the function.
true
In PHP, there are two types of arrays: numerically indexed arrays and arrays indexed by user-specified strings.
true
Strings in PHP can be enclosed only in double quotes.
false
The $_GET array is a pre-defined array in PHP that can be used to get the values entered by a user in an HTML form, provided the form sends the data by using the HTTP GET method.
true
When we want an HTML form to send data to a PHP program, we should set the action attribute of the form tag to point to the PHP program.
true
In PHP, there are two types of arrays: numerically indexed arrays and arrays indexed by user-specified strings.
true
It is possible to convert an array into a string and a string into an array using pre-defined PHP functions.
true
All variable names in PHP must start with the $ symbol
true
The ksort function, sorts an array by its values.
false
Actual parameters is the name given to parameters that are in the call to a function.
true
The fgetc function returns a character from the file that is being read.
true
The preg_split function matches a given pattern with a string.
false
The fopen function returns a file handle for accessing a file.
true
The flock function should be used to avoid concurrency issues during file read and write.
true
A session is the time span during which a browser interacts with a particular web server.
true
HTTP is a stateful protocol, i.e., it stores information about a session that is available to a subsequent session.
false
Cookies store information about sessions on the browser machine itself.
true
At the time of creation, a cookie is assigned a lifetime beyond which, the cookie is deleted from the browser host machine.
true
The setcookie function is used to create a cookie in PHP.
true
The $_COOKIES array is an implicit array maintained by PHP that holds cookie names as keys and cookie values as values.
true
In this URL, which of the following are the query-string parameter-names.http://www.simpleforms.com/test.php?lastname=john&firstname=henry&encoding=utf-8&interests=java
lastname, firstname, encoding, interests
In synchronous communication, a user can keep interacting with the page while data loads.
false
Scriptaculous is another JavaScript library, built on top of Prototype.
true
A Javascript framework is a collection of Javascript libraries that allow for easy Javascript development
true
In Prototype's Ajax.request model, the onFailure option can be set to invoke a Javascript function when the Ajax request is unsuccessful.
true
In Scriptaculous, Autocompleter.Local allows passing choices for auto-complete as a local array, whereas Ajax.Autocompleter allows passing a URL that fetches the auto-complete choices.
true
When using Prototype's Ajax.Request object you still have to explicitly set the onreadystatechange property to an event handler
false
Ajax stands for Asynchronous Java and XML
false
With Ajax, small parts of the page can be dynamically updated without disturbing the user experience.
true
The core Javascript object that makes Ajax possible, the XMLHttpRequest object, works in Internet Explorer 6.
false
MySQL is the name of a popular open source database software.
true
The Update SQL query is used to select information from a database table.
false
In a three-tier web architecture, the web server sits between a client and a database system.
true
The rows of a table in a relation database are referred to as attributes.
false
SQL is a standardized language for manipulating and querying relational databases
true
The mysql_connect function is used to establish a connection between the PHP page and the database system.
true
MySQL operations in PHP are requested through the mysql_query function.
true
HTML Injection is a flaw where a user is able inject arbitrary HTML code into a web page.
true
The PHP function htmlspecialchars can be used to prevent HTML Injection attacks.
true
To prevent SQL Injection attacks, characters such as the single quote and the double quote should be filtered out from any input that comes from the user.
true
to prevent SQL injection use what?
Filter out character like single quote, double quote, slash, back slash, semi colon, extended character like NULL, carry return, new line, etc, in all strings from:- Input from users- Parameters from URL- Values from cookie