Академический Документы
Профессиональный Документы
Культура Документы
Questions: Answers:
a) <?php>...</?>
b)<?php…?>
c) <&>...</&>
d) <script>...</script> Ans : b
a) "Hello World";
a) $
b) !
c) & Ans : a
c) ; d) . Ans : c
a) Request.Form;
b) Request.QueryString;
c) $_GET[]; Ans : c
8.When using the POST method, variables are displayed in the URL:
a) True
b) False Ans : b
9.In PHP you can use both single quotes ( ' ' ) and double quotes ( " " ) for strings:
a) True
b) False Ans : a
a) False
b) True Ans : b
a) <!--include file="time.inc"-->
c) <?phpinclude_file("time.inc"); ?>
a) createmyFunction()
b) new_functionmyFunction()
c) functionmyFunction()
a) fopen("time.txt","r");b) open("time.txt");
a) True
b) False Ans : a
a) dbopen("localhost");
b) mysql_open("localhost");
c) mysql_connect("localhost");
d) connect_mysql("localhost"); Ans:c
a) $count++;
b) count++;
c) $count =+1
d) ++count Ans: a
a) /*…*/
b) <!--…-->
c) *\..\*
d) <comment>…</comment> Ans : a
a) False
b) True Ans : b
19.In PHP, the die() and exit() functions do the exact same thing.
a) False
b) True Ans : b
a) $my-Var
b) $myVar
c) $my_Var
a) OPEN
b) SELECT
c) GET
d) EXTRACT Ans :b
a) MODIFY
b) SAVE AS
c) SAVE
d) UPDATE Ans : d
a) DELETE
b) COLLAPSE
c) REMOVE
a) INSERT NEW
b) ADD RECORD
c) ADD NEW
26.With SQL, how do you select a column named "FirstName" from a table named "Persons"?
b) SELECT Persons.FirstName
27.With SQL, how do you select all the columns from a table named "Persons"?
a) SELECT Persons
b) SELECT *.Persons
28.With SQL, how do you select all the records from a table named "Persons" where the value of the
column "FirstName" is "Peter"?
30.The OR operator displays a record if ANY conditions listed are true. The AND operator displays a
record if ALL of the conditions listed are true.
a) False
b) True Ans : b
a)True
b)False ans : a
a)Click
b)Action
c)Event
d)Load ans : c
a)True
b)False ans : a
24. The HTML ______ tag is used to insert a JavaScript into an HTML page.
a)<scripting>
b)<script>
c)<javascript>
a)True
b)False ans : a
26. _______ is a special variable, which can hold more than one value, at a time.
a)Array b)Class
A)Text b) String
a)True
b)False ans : b
a) "Hello World";
b) ("Hello World");
c) document.write("Hello World");
a) Both the <head> section and the <body> section are correct
31. PHP code is executed on the _______, and the plain HTML result is sent on to the ______.
a) strlength() b) str()
a) 6 b)7
35. ____ is a key is used to uniquely identify the rows in the tables.
a) Foreign b) Primary
a) getcookie() b) fetchcookie()
a) Session b) Cookie
a) date(format) b) date(timestamp)
a) ORDER b) SORT
42. With SQL, how can you return all the records from a table named "Persons" sorted descending
by "FirstName"?
43. How can you change "Hansen" into "Nilsen" in the "LastName" column in the Persons table?
45. Local variables are destroyed when you exit the function.
46. Which event will be occur when user enter or leave the page?
47. The _______ statement is used in conjunction with the aggregate functions to group the result-
set by one or more columns.
a) Group By b) Order By
48. The _______ keyword is used in an SQL statement to query data from two or more tables.
a) Connect b) Join
a) y = y + x; b) x = x + y;
a) $_POST b) $_GET