COP 3502 – Computer Science I



COP 3502 – Computer Science I

Exam #1 – Spring 2000

Lecturer: Arup Guha

TA: _______________

Name: _____________________

SSN: ______________________

2/16/00

1) (4 pts) What are the values of the following expressions?

a) 39 DIV (2 + 4*(6 MOD 5 – 2) + 2*3) ______________

b) (37 + 78 DIV 12 – 6*5 MOD 7) > (4*3*2 + 17 MOD 18) _______________

2) (6 pts) What will the following algorithm print out as values for a, b and c?

algorithm Test_Question2

a, b, c isoftype Num

a ................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download