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
Q

GRANT

A

grants permission to user

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

an outer join returns

A

rows from one table in the join even

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

left outer join

A

returns data from for all rows in the first table only if the data for matching rows are included

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

an exception is an

A

object that contains information about an error

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

to code an object in a class you code the

A

new keyword and the name of the class and set of parentheses

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

to get an array for all rows in a result set you can

A

call the fetch () method of the PDOstatement

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

an array can store

A

one or more elements

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

you code arguments required by the method by

A

seperating multiple arguments with commas

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

when coding relaitive URLs you can begin the URL with a

A

single . (dot)

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

to set parameter values and excute an sql statement you use

A

bindValue and execute() methods

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

to loop through elements in an array you can use

A

a foreeach statement to define a foreach loop

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

to handle exceptions you use

A

try/catch statement

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

the MVC model view controller is commonly used to

A

structure web apps that have processing requirements.

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

the model consists of the

A

php files that work with the data

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

the view consists of

A

of the HTML

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

the controller consists of the

A

PHP files that get request

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

a variable that’s declared outside of the function that isn’t available automatically can be located by using

A

global keyword

40
Q

header() is used to

A

redirect a request to another url

41
Q

breakpoint is indicated by a

A

small red square to the left of the code

42
Q

three types of errors can occur are

A

syntax errors, runtime errors and logical errors

43
Q

echo statements can be used to

A

trace execution of a php application

44
Q

a text box

A

allows users to type data into the box

45
Q

hidden fields allows the programmer to

A

add addtional name/value pairs to the form

46
Q

radio buttons

A

allows users to select one option from a group of options

47
Q

the isset function returns

A

TRUE if a check box is selected and FALSE if it is not

48
Q

htmlspecial chars() converts

A

converts some special character’s into entities

49
Q

nl2br()

A

converts new line character’s in a string

50
Q

echo statements

A

accepts one or more value strings

51
Q

print statements

A

only accept one value string

52
Q

equality operators

A

perform type coercion

53
Q

identity operators

A

do not perform type coercion

54
Q

switch statements

A

evaluate subject expression in the parenthesis

55
Q
A
56
Q
A
57
Q
A
58
Q
A
59
Q
A
60
Q
A
61
Q
A
62
Q
A
63
Q
A
64
Q
A
65
Q
A
66
Q
A
67
Q
A
68
Q
A
69
Q
A
70
Q
A
71
Q
A
72
Q
A
73
Q
A
74
Q
A
75
Q
A
76
Q
A
77
Q
A
78
Q
A
79
Q
A
80
Q
A
81
Q
A
82
Q
A
83
Q
A
84
Q
A
85
Q
A
86
Q
A
87
Q
A
88
Q
A
89
Q
A
90
Q
A
91
Q
A
92
Q
A
93
Q
A
94
Q
A
95
Q
A
96
Q
A
97
Q
A
97
Q
A
98
Q
A