click below
click below
Normal Size Small Size show me how
INTERNET APPLICATION
| Question | Answer |
|---|---|
| What is the default location of XAMPP? | C:\ |
| Recursive acronym for PHP | Hypertext Preprocessor |
| PHP is a embedded language that is commonly embedded on | HTML |
| Which of the following is not Windows OS | Cheetah |
| Which of the following is not Linux OS | Vista |
| What is OS? | Operating System |
| Which of the following is not a code editor? | Mspaint |
| Try/catch exception handling introduce in what version of PHP | PHP5 |
| How many domain PHP installed on May 22, 2000 | 3.6 million |
| PHP makes the most popular scripting language with morethan one million user base by | Netcraff |
| In PHP 3.0 ________ users were using PHP to enhance their Web pages | 50,000 |
| In what year PHP 1.0 released | 1994/1995 |
| Who develops PHP? | Rasmus Lerdorf |
| Statement is used to jump to other section of the program to support labels. | Goto |
| Which of the following is not a conditional statement? | For |
| Syntax for if statement | If(expression){statement..} |
| What do you call a condition inside of a condition? | Nested if |
| Another code for condition | Switch |
| $v=70; if($v<=70) {echo “hooray”; } else { echo “hello”;} What is the output? | hooray |
| Syntax for Switch | switch($category) |
| $if=10; If($if==$if){} What is the output? | Blank |
| Which of the following is not a looping statement? | Loop |
| Syntax for while statement | while(expr){statement} |
| $a=10; while($a>0){ echo $a--.” ”; } What is the output? | 10 9 8 7 6 5 4 3 2 1 |
| is used to aggregate a series of similar items together, arranging and dereferencing them in some specific way. | Array |
| prints additional information about the size and type of the values it discovers | var_dump() |
| functions are commonly used for debugging. The point of this of these functions is to help you visualize what’s going on with compound data structures like arrays. | print_r() and var_dump() |
| is a statement used to iterate or loop through the element in an array. | foreach() |
| Sorts by value; assign new numbers as the keys | sort($array) |
| Sorts by value in reverse order; assign new number as the keys | rsort($array) |
| Sorts by value; keeps the same key | asort($array) |
| Sorts by a function | usort($array) |
| function is used to print the array structure. | print_r |
| foreach(____ as $value) | $arr |
| This takes an argument of any type and prints it out, which includes printing all its parts recursively. | print_r() |
| Array index in PHP can be also called | Array keys |
| Syntax of define | define(‘NAME’,’value’); |
| Performs the same way as the include function. Generate a fatal error message if file not found stopping the script at that point. | require |
| Most of the developers used include functions for their | Footer |
| Same as require function except it includes the file only once. | require_once |
| Syntax for include | include(“filename.inc”); |
| Key word to declare a define function | define |
| used to generate random integers | rand() |
| Syntax for ceil | float ceil (float $value) |
| Syntax for random number with minimum and maximum value | int rand(int $min, int $max) |
| syntax for random | int rand(void) |
| define(‘Max_n’,10); What is the name of the define function? | Max_n |
| used to declare constants | define |
| an associative array that by default contains the contents of $_GET, $_POST, and $_COOKIE | $_REQUEST |
| an associative array of variables passed to the current script via HTTP Cookies | $_COOKIE |
| Syntax for setting a cookie | setcookie() |
| managing cookies can be done using function | setcookie() |
| contains the filename of the currently executing script. | PHP_SELF |
| $_POST is an associative array of variables passed to the current script via this method | HTTP POST |
| $_SERVER is an entries created by the | Web server |
| $_GET is an associative array variables passed to the current script via | URL |
| an associative array variables passed to the current script via the URL parameters. | $_GET |
| Entries were created by the web server | $_SERVER |
| is an array containing information such as headers, paths, and script locations. | $_SERVER |
| are the individual categories of information stored in a record. | Fields |
| database that stores information in a single table. | Flat-file |
| Stores information across multiple related tables. | Relational Database |
| Is a field that contains a unique identifier for each record in a primary table. | Foreign key |
| Developments of lightweight storage tools for websites | MySQL |
| Either as outgrowths of earlier academic research | PostgreSQL |
| Is a structured set of instructions and criteria for retrieving, adding, modifying, and deleting database information. | Query |
| Is the process of breaking tables into multiple related tables to reduce redundant information. | Normalization |
| A single complete set of related information. | Record |
| Information stored in computer databases is actually stored in | Tables |
| is an ordered collection of information from which a computer program can quickly access. | Database |
| SQL command that will get the sum of a specified field | SUM |
| Retrieves the contents of one cell from a MYSQL result set | mysql_result() |
| The name or offset of the field being retrieved. | Field |
| $query = mysql_query(“SELECT name FROM tblinfo”); $fetch = mysql_result($query, 2); In this code it will get the name of what row? | 3rd |
| get the number of affected rows by the last SELECT, INSERT, UPDATE, REPLACE or DELETE query. | mysql_affected_rows() |
| retrieves the number of rows from a result set. | mysql_num_rows() |
| array you can upload files from a client computer to the remote server. | $_FILES |
| Complete the syntax:$_FILES[____][“index”] | file |
| Complete the syntax: mysql_result($result_query,_____,field) | row |
| The result resource that is being evaluated. This result comes from a call to mysql_query(). | $result_query |
| Complete the syntax: move_upload_file(____, new location) ; | File |
| Function to save permanently the uploaded file | move_uploaded_file() |
| Syntax to Retrieves the contents of one cell from a MYSQL result set | mysql_result($result_query, row, field) |