Char And Boolean Flashcards

1
Q

Wat sal j stoor in n char?

A

Net enkel karakters
char a = ‘a’;

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

Jy kan ook unicode gebruik hoe sal dit lyk?

A

char a = ‘\u0045’;

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

Is String n primitive type?

A

Nee, dit is n aparte klas

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

Wat is operator? En n operand?

A

Operators is spesifieke simbole wat spesifieke operations verrih met operands (operands is dan by veranderlikes). Operators is ‘+’, ‘-‘ ens.

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

Wat is die modulus operator?

A

% - gee jou die res waarde
So int a = 5%3 = 2

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

result–;

A

result = result - 1;

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

result +=2;

A

result = result + 2;

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