Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

FRA142/3_Quiz_week2

Total questions: 10

Worksheet time: 15mins

Name
Class
Date
1.

What will display on the terminal?

(a)  

2.

What is output of Myfunc when n = 26 (Hint: sqrt(26) = 5)

(a)  

3.

What will display on the terminal?

a)

Same character

b)

Not the same character

c)

Error

d)

I don't know.

4.

What will display on the terminal?

(a)  

5.

What will display on the terminal?

a)

0

b)

7

c)

7.25

d)

0.6

6.

Which operator represent logical AND?

a)

&&

b)

and

c)

||

d)

&

7.

Let Myvec = {9, 7, 3, 12, 6, 5, 4}.

What is the output of Myfunc?

(a)  

8.

Which operator represent logical OR?

a)

&&

b)

||

c)

|

d)

or

9.

Which variable declaration will not work correctly?

a)

char x = 116;

b)

char x = 't';

c)

char x = 'hello';

d)

none

10.

ใครไม่ใช่ TA ของ FRA142/143

a)

พี่หยม

b)

พี่ยุทธ

c)

พี่เฟิร์ส

d)

พี่ขุนอิน

e)

พี่ราชพฤกษ์