Monday, April 29, 2013
2006 Repeat
A(n) ____________________ is a random alphanumeric string generated by the session_start() function.
Correct Answer: session ID
A(n) ____ is a literal value or variable that can be evaluated by the PHP scripting engine to produce a result.
Correct Answer: expression
When you add records to a table that includes an AUTO_INCREMENT field, you omit the column name and value from the lists.
Correct Answer: True
____________________ are small pieces of information about a user that are stored by a Web server in text files on the user’s computer.
Correct Answer: Cookies
Using parentheses to enclose the conditional expression of an if statement is optional.
Correct Answer: False
Cookies can be temporary or ____.
Correct Answer: persistent
You can use the terminate statement to halt a looping statement and restart the loop with a new iteration.
Correct Answer: False
An escape character tells the compiler or interpreter to exit the program at the escape character.
Correct Answer: False
Each repetition of a looping statement is called a(n) ____________________.
Correct Answer: iteration
You must include a(n) ____________________ to separate each section in a for loop.
Correct Answer: semicolon
A comparison operator returns a Boolean value of TRUE or FALSE after two operands have been compared.
Correct Answer: True
A ____________________ statement is a statement that returns a value to the statement that called the function.
Correct Answer: return
An object created from an existing class is called a(n) ___
Correct Answer: instance
A ____ is a variable that increments or decrements with each iteration of a loop statement
Correct Answer: counter
In PHP, you can declare a variable without assigning a value to it.
Correct Answer: False
Class functions are called ____.
Correct Answer: function members
If a Web site stores no persistent data about a visit to a Web site, it is said to be ____________________.
Correct Answer: stateless
After you instantiate an object, you use a hyphen and a greater-than symbol (->), referred to as member selection notation, to access the methods and properties contained in the object.
Correct Answer: True
$_ABC1 is a valid variable identifier.
Correct Answer: True
The strlen() function returns the total ____ in a string.
Correct Answer:number of characters
A structure in which variables are placed within curly braces inside of a string is called a ____.
Correct Answer: complex string syntax
You can use a query string to pass information from one Web page to another.
Correct Answer: True
A text string can be contained in either double or single quotation marks.
Correct Answer: True
Briefly explain why you do not see any PHP code when you view the source code of a PHP page in the browser.
Correct Answer: The scripting engine processes the PHP code it finds within PHP code blocks and returns the results of the PHP script and any HTML or XHTML elements found in the PHP file to the client.
The ____ operator uses the % symbol to find the remainder of integer division.
Answer
Correct Answer: modulus
The else clause can only be used with an if statement.
Correct Answer: True
What will be returned if you use a local variable outside the function in which it is declared?
Correct Answer: error message
A postfix operator is placed ____________________ a variable.
Correct Answer: after
You would use the ____________________ function to delete a session.
Correct Answer: session_destroy()
Placing a backslash in front of an apostrophe tells the PHP scripting engine that the apostrophe is to be treated as a regular keyboard character.
Correct Answer: True
By default, cookies cannot contain semicolons.
Correct Answer: True
You must call the ____________________ function whenever you need to work with sessions in a PHP script.
Correct Answer: session_start()
session_start
List the values of the category attribute in the book elements ?
<bookstore>
<book category="COOKING">
<title lang="en">Everyday Italian</title>
<author>Giada De Laurentiis</author>
<year>2005</year>
<price>30.00</price>
<book category="CHILDREN">
<title lang="en">Harry Potter</title>
<author>J K. Rowling</author>
<year>2005</year>
<price>29.99</price>
<book category="WEB">
<title lang="en">Learning XML</title>
<author>Erik T. Ray</author>
<year>2003</year>
<price>39.95</price>
</bookstore>
Correct Answer:
COOKING,CHILDREN, WEB
In PHP, you are limited to ten (10) code blocks in a single page.
Correct Answer: False
The ____________________ function is used to select a database or change to a different database.
Correct Answer: mysqli_select_db()
A query string is a set of name=value pairs appended to the end of a ____________________.
Correct Answer: URL
url
target URL
A list of records that are returned from a query is called a resultset.
Correct Answer: True
A(n) ____ operator is used in PHP to perform mathematical calculations.
Correct Answer:arithmetic
When you use a variable in a PHP program, you must be aware of the variable’s ____.
Correct Answer:
scope
In PHP, each statement must be placed on a separate line.
Correct Answer: False
Access specifiers control a client’s access to individual data members and member functions.
Correct Answer: True
Which of the following is not a tool for maintaining state information with PHP?
Correct Answer:functions
You can call the setcookie() function at any location in your Web page.
Correct Answer: False
The term parsing refers to the act of dividing a string into logical component substrings or tokens.
Correct Answer: True
A(n) ____ statement is a control structure that repeatedly executes a statement or series of statements while a specific condition is TRUE or until a specific condition becomes TRUE.
Correct Answer: loop
You pass the mysqli_affected_rows() function the variable containing the result pointer from the mysql_query() function.
Correct Answer: False
You can suppress error message by using the error control operator (%).
Correct Answer: False
A constructor function is a special function that is called automatically when an object from a class is instantiated.
Correct Answer: True
Subscribe to:
Posts (Atom)