Quiz 2

Storing Data

- How many characters are there in the string below:
6

7

5

8

- Which one is not a valid data type:
Characters

Strings

Integers

Addition

- 7 // 2 will give:
3.5

3

4

2

- 8 % 5 will give:
1

2

3

4

- 7 /2 will give:
3

4

5

3.5

- 6 * 3 % 2 will give:
0

6

9

18

- 8 ^ 0 will give:
0

8

1

2

- (int) ÔCÕ will give:
99

67

66

100

- (char) 122 will give:
x

y

z

w

- Which one has lowest operator precedence?
Exponentiation

Parenthesis

Addition and subtraction

Multiplication and division