ics103-major01-key-061

# ics103-major01-key-061 - King Fahd University of Petroleum...

This preview shows pages 1–3. Sign up to view the full content.

King Fahd University of Petroleum and Minerals Information and Computer Science Department ICS 103: Computer Programming in C Fall Semester 2006-2007 (Term-061) Major Exam-I Time:100 minutes Wednesday, November 1, 2006 Name: ID#: PLEASE CIRCLE YOUR SECTION BELOW: Section 01 02 03 04 05 Time 9-9:50am 8-8:50am 10-10:50am 11-11:50am 1:10-2pm Note: Copying or Discussion will result in zero grade for all the students involved. Attempt all questions. Question # Maximum Marks Obtained Marks 1 7 x 2 = 14 2 10 3 6 4 10 5 6 6 12 7 6 8 6 9 14 10 16 Total 100 ICS 103 Major Exam-I Term-061 1

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Question 1: (14 points) Assuming that i,j, and k are int and i=3, j=2, k=1 ; find the values of the following expressions expression Value i>j>k 0 i!=j!=k 0 i>j==i+k>j+k 1 k<i!=k<j 0 i-j-k||k==j%i 0 5+20/i*i+2.5*2 28.000000 13/3/2+(5-28/3.5) -1.000000 Question 2 (10 points ) Write the corresponding mathematical or C expression C EXPRESSION Mathematical Expression Sqrt(x*x-y*y)/pow(y,2*x-y) y x 2 y y x 2 2 - - 9-10./(y+b*b*b)+abs(z)
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### Page1 / 7

ics103-major01-key-061 - King Fahd University of Petroleum...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online