Week 3 Flashcards

1
Q

Advantages of functions:

A

Functions allow the developer to:
Organise their code into a logical structure
Allocating specific behaviour to a function
promoting the reuse of code

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

Should function names be unique?

A

Yes

no function overloading in php

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

What does a function prototype define?

A

Number and type of parameters

Data type of the returned value.

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

WQill variable functions work with language constructs such as:

echo, print, unset(), isset(), empty()

A

No

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

What can anonymous functions do?

A

Pass small sections of logic into functions

can be assigned to variables.

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

What is a recursive function?

A

One that calls itself

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

What is PHPs default characters reading?

A

ISO-8859-1 standard

Equivalent to 7-biy sacii for first 127 characters.

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