chapter 1 Flashcards

1
Q

clients use

A

web browsers to request web pages from web server

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Lan

A

connects computers that are near each other

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

http sends a request to

A

the webserver that includes name of requested file

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

a static webpage is a

A

page that is the same each time it is retrieved

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

a dynamic webpage is generated by a

A

server side program or script

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

HTTP request that lead to php scripts are

A

processed by PHP interpreter

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

HTML is

A

the language that defines the structure and contents of a webpage

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

==

A

equal

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

!=

A

not equal

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

<=

A

less than or equal

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

===

A

identical

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

!==

A

not identical

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

&&, ! and || are all

A

logical operators

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

php provides six data types including

A

integer, double,boolean and string

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

to concatenate two strings you use

A

. the concatenation operator

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

to get data from a form theat has been submitted you use

A

either $_GET or $_POST

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

if statements provide

A

the logic of an application

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

while loop excutes a

A

block of code as long as the condition is TRUE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

you can use what to check if values exist

A

filter_input()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

a relational database

A

consists of tables in rows and columns

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

the tables in a relational database are related through

A

foreign keys

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

each colmun in a database is defined with a

A

data type

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

the SELECT statement in sql

A

returns data from two or more tables

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

an inner join

A

returns a set of that includes data only

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
GRANT
grants permission to user
25
an outer join returns
rows from one table in the join even
26
left outer join
returns data from for all rows in the first table only if the data for matching rows are included
27
an exception is an
object that contains information about an error
28
to code an object in a class you code the
new keyword and the name of the class and set of parentheses
29
to get an array for all rows in a result set you can
call the fetch () method of the PDOstatement
30
an array can store
one or more elements
31
you code arguments required by the method by
seperating multiple arguments with commas
32
when coding relaitive URLs you can begin the URL with a
single . (dot)
33
to set parameter values and excute an sql statement you use
bindValue and execute() methods
34
to loop through elements in an array you can use
a foreeach statement to define a foreach loop
35
to handle exceptions you use
try/catch statement
36
the MVC model view controller is commonly used to
structure web apps that have processing requirements.
37
the model consists of the
php files that work with the data
38
the view consists of
of the HTML
39
the controller consists of the
PHP files that get request
40
a variable that's declared outside of the function that isn't available automatically can be located by using
global keyword
40
header() is used to
redirect a request to another url
41
breakpoint is indicated by a
small red square to the left of the code
42
three types of errors can occur are
syntax errors, runtime errors and logical errors
43
echo statements can be used to
trace execution of a php application
44
a text box
allows users to type data into the box
45
hidden fields allows the programmer to
add addtional name/value pairs to the form
46
radio buttons
allows users to select one option from a group of options
47
the isset function returns
TRUE if a check box is selected and FALSE if it is not
48
htmlspecial chars() converts
converts some special character's into entities
49
nl2br()
converts new line character's in a string
50
echo statements
accepts one or more value strings
51
print statements
only accept one value string
52
equality operators
perform type coercion
53
identity operators
do not perform type coercion
54
switch statements
evaluate subject expression in the parenthesis
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
97
98