Module 2 Flashcards

1
Q

It is a symbol that specifies a particular action in an expression.

A

operator

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

This operator is for object instantiation.

A

new

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

This operator is for expression subgrouping.

A

( )

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

This operator is for index enclosure.

A

[ ]

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

This operator is for error suppression.

A

@

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

This operator is for expression separation.

A

,

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

It is a characteristic of an operator that specifies how operations of the same precedence are evaluated as they are executed.

A

Operator Associativity

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

It is a characteristic of operators that determines the order in which they evaluate the operands surrounding them.

A

Operator Precedence

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

Arithmetic Operators in PHP

A

+, -, *, /, %

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

Assignment Operators in PHP

A

= | assignment
+= | add-ass
-= | sub-ass
*= | mult-ass
/= | div-ass
%= | mod-ass
.= | concat-ass

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

What is the operator used to check if values are identical (i.e. same value and data type)

A

=== | ($a === $b)

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

What is the escape sequence for carriage return.

A

\r

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

What is the escape sequence for octal notation.

A

\ [0-7]{1,3}

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

What is the escape sequence for hexadecimal notation.

A

\x[0-9A-Fa-f]{1,2}

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

What are the looping statements in PHP?

A

for, while, and do-while

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

What are the conditional statements in PHP?

A

if, elseif, else, and switch

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

What is the alternative enclosure syntax for if statements?

A

{ = : and } = endif;

18
Q

This statement is placed within the code of a loop to cause the program to break out of the loop statement.

19
Q

This statement causes execution of the current loop iteration to end and commence at the beginning of the next iteration.

20
Q

This statement is used to jump to the other section of the program to support labels.

21
Q

What is the associativity of index enclosure | [ ]?

22
Q

What is the associativity of !, ~, ++, – ?

23
Q

What is the associativity of error suppression | @ ?

24
Q

What is the associativity of /, *, % ?

25
What is the *associativity* of +, -, . ?
Left
26
What is the *associativity* of <<, >> ?
Left
27
What is the *associativity* of &, ^, | ?
Left
28
What is the *associativity* of &&, || ?
Left
29
What is the *associativity* of a ternary operator?
Right
30
What is the *associativity* of an assignment operator?
Right
31
What is the *associativity* of AND, OR, XOR ?
Left
32
What is the *associativity* of "," ?
Left
33
What is the *associativity* of new ?
NA
34
What is the *associativity* of ( ) ?
NA
35
What is the *associativity* of <, >, <=, >= ?
NA
36
This operator is for *increments*.
++$a | $a++
37
This operator is for *decrements*.
--$a | $a--
38
Comparison Operators in PHP
<, >, <=, >=, ? :
39
Logical Operators in PHP
&&, AND, ||, OR, !, NOT, XOR
40
Equality Operators in PHP
==, !=, ===
41
Bitwise Operators in PHP
&, |, ^, ~, <<, >>