When you write a computer program, you often must execute different sets of ____, depending on some predetermined criteria.
[/list][list=1]
functions
variables
autoglobals
statements
[color=#000000][font=Times New Roman]
[list]
[*]To open a connection to a MySQL database server, use __
[/list][/font][/color]
mysqli_connect()
open_connect()
connection_mysqli()
open_mysqli()
[color=#000000][font=Times New Roman]
[list]
[*]PHP is a(n) ____ programming language
[/list][/font][/color]
strictly typed
variably typed
loosely typed
primitively typed
[color=#000000][font=Times New Roman]
[list]
[*]The ____ portion of the SELECT statement determines which fields to retrieve from a table
[/list][/font][/color]
attribute
criteria
command
field
[color=#000000][font=Times New Roman]
[list]
[]The ____ function allows you to iterate through all the rows in a resultset.
[/list][/font][/color][list=1]
[]mysqli_fetch_assoc()
[]mysqli_fetch_row()
[]mysqli_fetch_array()
[*]mysqli_fetch_lengths()
[/list]More Questions to come when these are answered. Just to let you know, i don’t know the exact answers as i am learning php.
Your last question there has multiple correct responses from your list of options - I can iterate through the rows in a result set with all but 1 of those!
1: 4, statements
2: 1, mysqli_connect() (Not the only way to do it…)
3: 3, loosely typed
4: Honestly, I don’t know the terminology you’re using here; I can write a SELECT statement and get virtually anything I want, and I can point to any SELECT statement and tell you what columns are being queried, but as far as the semantics of what part is called what… if I had to guess I’d say 3, command.
5: 1, 2, and 3 are all possible methods
What function gets the current working directory?
[/list][/font][/color]
[list=1]
chdir(directory)
chroot(directory)
closedir($handle)
getcwd()
[color=#000000][font=Times New Roman]
You can access the values submitted from the form by using the $_GET and ____ autoglobals.
[/list][/font][/color]
[list=1]
$_POST[]
$_FIND[]
$_RETRIEVE[]
$_SEND[]
[color=#000000][font=Times New Roman]
The array_push ____ one or more elements to the end of the array
[/list][/font][/color]
[list=1]
adds
deletes
moves
pushes
[color=#000000][font=Times New Roman]
A ____ database stores information across multiple related tables
[/list][/font][/color]
[list=1]
hierarchical
network
relational
flat-file
[color=#000000][font=Times New Roman]
[list]
[]The ____ function performs a case-sensitive search and returns the position of the last occurrence of one string in another string
[/list][/font][/color]
[list=1]
[]soundex()
[]strrpos()
[]stripos()
[*]stristr()
[/list] [color=#000000][font=Times New Roman]
[/font][/color] [color=#000000][font=Times New Roman]
The ____ function reads the entire contents of a file into an indexed array.
[/list][/font][/color]
Well then I’m going to interject my opinion that instead of learning PHP/MySQL with the mysqli_* functions, learn the PDO functions. The only reason I still use the mysql_* functions is a) I initially learned them (PDO wasn’t available then, and I’m not sure mysqli_* was either…), and b) I haven’t had the time yet to make the switch to PDO. It’s on my to-do list, though.
The comparison operator consists of two ____ signs and performs a different function that the one performed by the assignment operator that consists of a single sign.
[/list][/font][/color]
[list=1]
percent
greater than
equal
division
[color=#000000][font=Times New Roman]
A ____ key is a field in a related table that refers to the primary key in a primary table.
[/list][/font][/color]
[list=1]
relational
primary
single
foreign
[color=#000000][font=Times New Roman]
A multidimensional array in PHP is essentially ____.
[/list][/font][/color]
[list=1]
a two-dimensional array
nonexistent
an array of arrays
an associative array
[color=#000000][font=Times New Roman]
A database management system that stores data in a relational format is called a ____ database management system
[/list][/font][/color]
[list=1]
flat-file
relational
hierarchical
primary
[color=#000000][font=Times New Roman]
You can use the ____ statement to halt a looping statement and restart the loop with a new iteration.
[/list][/font][/color]
[list=1]
global
local
while
continue
[color=#000000][font=Times New Roman]
To terminate a script execution, use ____.
[/list][/font][/color]
[list=1]
die()
terminate()
kill()
bye()
[color=#000000][font=Times New Roman]
The name you assign to a variable is called a(n)
[/list][/font][/color]
[list=1]
constant
value
identifier
answer
[color=#000000][font=Times New Roman]
To add records to a table, use the keywords ____.
[/list][/font][/color]
[list=1]
INSERT, VALUES
ADD, RECORDS
ADD, VALUE
INSERT, RECORDS
[color=#000000][font=Times New Roman]
Cookies can be temporary or ____
[/list][/font][/color]
[list=1]
persistent
relational
invisible
hidden
[color=#000000][font=Times New Roman]
The ____ combines two strings.
[/list][/font][/color]
[list=1]
1: 3, equal
2: 4, foreign
3: 3, an array of arrays
4: 2, relational (although the wording of this question makes me hesitant…)
5: 4, continue
6: 1, die() (exit() also works)
7: 3, identifier (?? weird question - the name I assign to a variable I always call its name!)
8: 1, INSERT,VALUES (assuming a SQL database of some kind, that is…)
9: 1, persistent
10: 1 and 2, concatenation assignment operator and concatenation operator
So, out of curiosity, where are you coming up with these questions?