web Flashcards

1
Q

What main protocol does the web use to communicate between computers?

A

HTTP

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

What main protocol does the web use to communicate between computers?

A

HTTP

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

What does HTTP stand for?

A

Hypertext Transfer Protocol

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

What is the purpose of a server?

A

To accept the HTTP request

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

What is the purpose of the client?

A

To send the HTTP request

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

When a domain name is entered in browser, where are IP retrieved?

A

The internet, usually a DNS server

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

What does PHP usually do?

A

execute SQL commands on the database

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

What tags in html are used to define php?

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

What tag defines javascript?

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

What is the purpose of ajax?

A

Make server/client communication faster

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

What did AJAX used to stand for?

A

Asynchronous JavaScript and XML

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

What is new about HTML5?

A

Markup, new API’s and applications

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

What is an example of markup?

A

,,,

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

What’s an example of a new API?

A

,,

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

What are the three most used web servers?

A

Apache, Nginx,Microsoft-IIS

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

What are some examples of development servers?

A

LAMP,WAMP,MAMP

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

Give two examples of alternatives to XAMP

A

EasyPHP, WAMPServer

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

Give an example of an FTP program that can send files to your server

A

Add to dictionary

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

What eclipse version is good for web development?

A

Eclipse PDT

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

Give a line of php that prints a statement

A

echo “print statement”;

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

How do you comment in php?

A

double slashes

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

What must precede a variable name in php?

A

$

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

Create a new tag using php

A

echo “<br></br>”;

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

How are arrays initialized in php?

A

$team = array(‘bilk’,’jane’);

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Are java and php operators relatively the same?
Yes
26
What is the syntax for concatenation of a string
echo "you have".$msg;
27
What is the difference between double and single quotes?
In double quotes $name are evaluated as variables, while single quotes the exact data is preserved.
28
How can the escape character ( \ ) be used?
'My spelling\'s shitty"
29
What does HTTP stand for?
Hypertext Transfer Protocol
30
What is the purpose of a server?
To accept the HTTP request
31
Does a constant need a $?
No
32
When a domain name is entered in browser, where are IP retrieved?
The internet, usually a DNS server
33
What does PHP usually do?
execute SQL commands on the database
34
What tags in html are used to define php?
35
What tag defines javascript?
36
What is the purpose of ajax?
Make server/client communication faster
37
What did AJAX used to stand for?
Asynchronous JavaScript and XML
38
What is new about HTML5?
Markup, new API's and applications
39
What is an example of markup?
,,,
40
What's an example of a new API?
,,
41
What are the three most used web servers?
Apache, Nginx,Microsoft-IIS
42
What are some examples of development servers?
LAMP,WAMP,MAMP
43
Give two examples of alternatives to XAMP
EasyPHP, WAMPServer
44
Give an example of an FTP program that can send files to your server
Add to dictionary
45
What eclipse version is good for web development?
Eclipse PDT
46
Give a line of php that prints a statement
echo "print statement";
47
How do you comment in php?
double slashes
48
What must precede a variable name in php?
$
49
Create a new tag using php
echo "
";
50
How are arrays initialized in php?
$team = array('bilk','jane');
51
Are java and php operators relatively the same?
Yes
52
What is the syntax for concatenation of a string
echo "you have".$msg;
53
What is the difference between double and single quotes?
In double quotes $name are evaluated as variables, while single quotes the exact data is preserved.
54
How can the escape character ( \ ) be used?
'My spelling\'s shitty"
55
What is used to preserve whitespace in a string?
heredoc - <<
56
What's the significance of calling php "loosely typed"?
Variables don't have to be declared before use.
57
How is a constant defined?
define("name", value);
58
Does a constant need a $?
No
59
What does the _LINE_ constant hold?
the current line number in the file
60
What does the _FILE_ constant hold?
full path and filename
61
What does _DIR_ hold?
The directory of the file
62
What does the _FUNCTION_ hold?
The current function
63
What does thee _CLASS_ hold?
The class name
64
What does the _METHOD_ hold?
The class method name
65
What does the _NAMESPACE_ hold?
The current namespace
66
What is the difference between the print and echo methods?
the print method has a return value
67
What is the syntax to define a function?
function name($arg) {}
68
What title do variables get if they occur outside of a function?
global
69
Do you have to add a static title to static variables?
Yes
70
What are some examples of superglobal variables?
$GLOVALS, $_SERVER, $_GET, $_POST, | $_FILES, $_COOKIE, $_SESSION, $_REQUEST, $ENV
71
How do you sanitize superglobal variables?
htmlentities
72
What is the triple equal sign?
The identity operator
73
What does the identity operator do?
Prevents the conversion between types
74
What is the alternative of conditional statements?
The ? symbol
75
What is the syntax for the alternative condition statement?
CONDITION ? IFTRUE : IFFALSE
76
Are loops in php generally the same as java and similar lower level languages?
Yes
77
are casting/boxing/unboxing similar in regard to syntax as java?
Yes
78
For traversal through arrays, what loop is best?
for each as loop
79
When assigning an element with a specific key what is the syntax
key =.> value
80
What does the list function do?
assigns the array elements to the list elements
81
What html tag is used to maintain white space?

82
What php functions are most used?
count, is_array, sort, rsort, reset, end
83
What does the php function shuffle do?
shuffles an array
84
What does the php function explode do?
Puts the tokens of a string into an array
85
What are common array/variable conversion functions?
extract and compact