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.

A

break

19
Q

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

A

continue

20
Q

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

A

goto

21
Q

What is the associativity of index enclosure | [ ]?

A

Right

22
Q

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

A

Right

23
Q

What is the associativity of error suppression | @ ?

A

Right

24
Q

What is the associativity of /, *, % ?

A

Left

25
Q

What is the associativity of +, -, . ?

A

Left

26
Q

What is the associativity of «,&raquo_space; ?

A

Left

27
Q

What is the associativity of &, ^, | ?

A

Left

28
Q

What is the associativity of &&, || ?

A

Left

29
Q

What is the associativity of a ternary operator?

A

Right

30
Q

What is the associativity of an assignment operator?

A

Right

31
Q

What is the associativity of AND, OR, XOR ?

A

Left

32
Q

What is the associativity of “,” ?

A

Left

33
Q

What is the associativity of new ?

A

NA

34
Q

What is the associativity of ( ) ?

A

NA

35
Q

What is the associativity of <, >, <=, >= ?

A

NA

36
Q

This operator is for increments.

A

++$a | $a++

37
Q

This operator is for decrements.

A

–$a | $a–

38
Q

Comparison Operators in PHP

A

<, >, <=, >=, ? :

39
Q

Logical Operators in PHP

A

&&, AND, ||, OR, !, NOT, XOR

40
Q

Equality Operators in PHP

A

==, !=, ===

41
Q

Bitwise Operators in PHP

A

&, |, ^, ~, «,&raquo_space;