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
Q

Are java and php operators relatively the same?

A

Yes

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

What is the syntax for concatenation of a string

A

echo “you have”.$msg;

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

What is the difference between double and single quotes?

A

In double quotes $name are evaluated as variables, while single quotes the exact data is preserved.

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

How can the escape character ( \ ) be used?

A

‘My spelling's shitty”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
29
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
30
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
31
Q

Does a constant need a $?

A

No

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
32
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
33
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
34
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
35
Q

What tag defines javascript?

A
36
Q

What is the purpose of ajax?

A

Make server/client communication faster

37
Q

What did AJAX used to stand for?

A

Asynchronous JavaScript and XML

38
Q

What is new about HTML5?

A

Markup, new API’s and applications

39
Q

What is an example of markup?

A

,,,

40
Q

What’s an example of a new API?

A

,,

41
Q

What are the three most used web servers?

A

Apache, Nginx,Microsoft-IIS

42
Q

What are some examples of development servers?

A

LAMP,WAMP,MAMP

43
Q

Give two examples of alternatives to XAMP

A

EasyPHP, WAMPServer

44
Q

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

A

Add to dictionary

45
Q

What eclipse version is good for web development?

A

Eclipse PDT

46
Q

Give a line of php that prints a statement

A

echo “print statement”;

47
Q

How do you comment in php?

A

double slashes

48
Q

What must precede a variable name in php?

A

$

49
Q

Create a new tag using php

A

echo “<br></br>”;

50
Q

How are arrays initialized in php?

A

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

51
Q

Are java and php operators relatively the same?

A

Yes

52
Q

What is the syntax for concatenation of a string

A

echo “you have”.$msg;

53
Q

What is the difference between double and single quotes?

A

In double quotes $name are evaluated as variables, while single quotes the exact data is preserved.

54
Q

How can the escape character ( \ ) be used?

A

‘My spelling's shitty”

55
Q

What is used to preserve whitespace in a string?

A

heredoc - «

56
Q

What’s the significance of calling php “loosely typed”?

A

Variables don’t have to be declared before use.

57
Q

How is a constant defined?

A

define(“name”, value);

58
Q

Does a constant need a $?

A

No

59
Q

What does the LINE constant hold?

A

the current line number in the file

60
Q

What does the FILE constant hold?

A

full path and filename

61
Q

What does DIR hold?

A

The directory of the file

62
Q

What does the FUNCTION hold?

A

The current function

63
Q

What does thee CLASS hold?

A

The class name

64
Q

What does the METHOD hold?

A

The class method name

65
Q

What does the NAMESPACE hold?

A

The current namespace

66
Q

What is the difference between the print and echo methods?

A

the print method has a return value

67
Q

What is the syntax to define a function?

A

function name($arg) {}

68
Q

What title do variables get if they occur outside of a function?

A

global

69
Q

Do you have to add a static title to static variables?

A

Yes

70
Q

What are some examples of superglobal variables?

A

$GLOVALS, $_SERVER, $_GET, $_POST,

$_FILES, $_COOKIE, $_SESSION, $_REQUEST, $ENV

71
Q

How do you sanitize superglobal variables?

A

htmlentities

72
Q

What is the triple equal sign?

A

The identity operator

73
Q

What does the identity operator do?

A

Prevents the conversion between types

74
Q

What is the alternative of conditional statements?

A

The ? symbol

75
Q

What is the syntax for the alternative condition statement?

A

CONDITION ? IFTRUE : IFFALSE

76
Q

Are loops in php generally the same as java and similar lower level languages?

A

Yes

77
Q

are casting/boxing/unboxing similar in regard to syntax as java?

A

Yes

78
Q

For traversal through arrays, what loop is best?

A

for each as loop

79
Q

When assigning an element with a specific key what is the syntax

A

key =.> value

80
Q

What does the list function do?

A

assigns the array elements to the list elements

81
Q

What html tag is used to maintain white space?

A

<pre></pre>

82
Q

What php functions are most used?

A

count, is_array, sort, rsort, reset, end

83
Q

What does the php function shuffle do?

A

shuffles an array

84
Q

What does the php function explode do?

A

Puts the tokens of a string into an array

85
Q

What are common array/variable conversion functions?

A

extract and compact