Deck 19: Php

Full screen (f)
exit full mode
Question
The relational operators can be used to compare ________.

A) integers only
B) integers and strings only
C) integers and floating point numbers only
D) integers, strings and floating point numbers
Use Space or
up arrow
down arrow
to flip the card.
Question
Which of the following are PHP data types

A) integers, strings and text
B) integers, floating point numbers and text
C) integers, floating point numbers and strings
D) integers, strings and text
Question
Arrays must be indexed with which of the following data types

A) integers only
B) either an integer or a string
C) an integer, string, or floating point number
D) either an integer or a floating point number
Question
Which is not a character class in PHP

A) alpha
B) digit
C) numeric
D) lower
Question
The regular expression a+ matches

A) the string a+
B) a string of one or more a's
C) a string of zero or more a's
D) a string with a + at the beginning
Question
Unlike settype, ________ does not change a variable's content-it creates a temporary copy of a variable's value in memory.

A) gettype
B) concatenation
C) caching
D) casting
Question
Type conversions can be performed using function ________.

A) settype
B) print
C) gettype
D) define
Question
GET and POST data sent to a PHP script are accessible using the ________ and ________ superglobal arrays.

A) $GET, $POST
B) $GETDATA, $POSTDATA
C) $CLIENT, $SERVER
D) $_GET, $_POST
Question
Function preg_match uses regular expressions to search a string for a ________.

A) character
B) digit
C) specified pattern
D) space character
Question
The statement $$inputName is ________.

A) referencing a variable whose name is equal to the value of $inputName
B) defining an array named $inputName
C) shorthand for typing $inputName twice
D) a syntax error
Question
Which of the following can be used to compare strings

A) ==
B) !=
C) < =
D) All of the above.
Question
Validating user input data ensures that ________.

A) data input by the user is in the correct format
B) data entered into the database is in the correct format
C) data input into the database is verified by information found on the client computer
D) All of the above.
Question
Which of the following is not a pre-defined function for interacting with MySQL databases

A) mysql_error
B) mysql_connect
C) mysql_fetch_record
D) mysql_fetch_row
Question
A cookie that lasts only until the browser is closed is called a ________ cookie.

A) session
B) persistent
C) temporary
D) timed
Question
The setcookie function can be called ________.

A) anytime during script execution
B) during the first statement of the script only
C) before any other output
D) None of the above.
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/15
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 19: Php
1
The relational operators can be used to compare ________.

A) integers only
B) integers and strings only
C) integers and floating point numbers only
D) integers, strings and floating point numbers
D
2
Which of the following are PHP data types

A) integers, strings and text
B) integers, floating point numbers and text
C) integers, floating point numbers and strings
D) integers, strings and text
C
3
Arrays must be indexed with which of the following data types

A) integers only
B) either an integer or a string
C) an integer, string, or floating point number
D) either an integer or a floating point number
B
4
Which is not a character class in PHP

A) alpha
B) digit
C) numeric
D) lower
Unlock Deck
Unlock for access to all 15 flashcards in this deck.
Unlock Deck
k this deck
5
The regular expression a+ matches

A) the string a+
B) a string of one or more a's
C) a string of zero or more a's
D) a string with a + at the beginning
Unlock Deck
Unlock for access to all 15 flashcards in this deck.
Unlock Deck
k this deck
6
Unlike settype, ________ does not change a variable's content-it creates a temporary copy of a variable's value in memory.

A) gettype
B) concatenation
C) caching
D) casting
Unlock Deck
Unlock for access to all 15 flashcards in this deck.
Unlock Deck
k this deck
7
Type conversions can be performed using function ________.

A) settype
B) print
C) gettype
D) define
Unlock Deck
Unlock for access to all 15 flashcards in this deck.
Unlock Deck
k this deck
8
GET and POST data sent to a PHP script are accessible using the ________ and ________ superglobal arrays.

A) $GET, $POST
B) $GETDATA, $POSTDATA
C) $CLIENT, $SERVER
D) $_GET, $_POST
Unlock Deck
Unlock for access to all 15 flashcards in this deck.
Unlock Deck
k this deck
9
Function preg_match uses regular expressions to search a string for a ________.

A) character
B) digit
C) specified pattern
D) space character
Unlock Deck
Unlock for access to all 15 flashcards in this deck.
Unlock Deck
k this deck
10
The statement $$inputName is ________.

A) referencing a variable whose name is equal to the value of $inputName
B) defining an array named $inputName
C) shorthand for typing $inputName twice
D) a syntax error
Unlock Deck
Unlock for access to all 15 flashcards in this deck.
Unlock Deck
k this deck
11
Which of the following can be used to compare strings

A) ==
B) !=
C) < =
D) All of the above.
Unlock Deck
Unlock for access to all 15 flashcards in this deck.
Unlock Deck
k this deck
12
Validating user input data ensures that ________.

A) data input by the user is in the correct format
B) data entered into the database is in the correct format
C) data input into the database is verified by information found on the client computer
D) All of the above.
Unlock Deck
Unlock for access to all 15 flashcards in this deck.
Unlock Deck
k this deck
13
Which of the following is not a pre-defined function for interacting with MySQL databases

A) mysql_error
B) mysql_connect
C) mysql_fetch_record
D) mysql_fetch_row
Unlock Deck
Unlock for access to all 15 flashcards in this deck.
Unlock Deck
k this deck
14
A cookie that lasts only until the browser is closed is called a ________ cookie.

A) session
B) persistent
C) temporary
D) timed
Unlock Deck
Unlock for access to all 15 flashcards in this deck.
Unlock Deck
k this deck
15
The setcookie function can be called ________.

A) anytime during script execution
B) during the first statement of the script only
C) before any other output
D) None of the above.
Unlock Deck
Unlock for access to all 15 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 15 flashcards in this deck.