ics103-major01-key-062

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

This preview shows pages 1–4. 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 Spring Semester 2006-2007 (Term-062) Major Exam-I Time:100 minutes Wednesday, March 28, 2007 Name: ID#: PLEASE CIRCLE YOUR SECTION BELOW: Section 01 02 03 04 05 06 7 Time SM-8-9 SM 9-10 SM 11-12 UT 9-10 UT 11:12 UT 8-9 UT 10-11 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 10 4 10 5 6 6 6 7 8 8 8 9 14 10 14 Total 100 1

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

View Full Document
Question 1: (14 points) Find the values of the following expressions expression Value -3<=-2<=-1 0 5>3>=2+1 0 1 !5<7+1&&5-2>3 0 6+3<5&&!5-3>6 0 -3+3*-5%4+(5-2)/2.0 -4.5 11.5-(2+3*(7-4)/4) 7.5 Question 2 (10 points ) Write the corresponding mathematical or C expression C EXPRESSION Mathematical Expression (pow(x,sqrt(y))-z*z)/(x+y) y x z x y + - 2 pow(sqrt(x)+y,0.5) y x + 1.0/3*x*y-7.0/(pow(x,y)+2) 2 7 3 1 + - y x xy 1+exp(y+x)/y-sqrt(z) z y e x y - + + 1 2
Q uestion 3: 10 points Show the output of the following program in the space provided below it. Each square corresponds to one space

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

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### Page1 / 8

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

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

View Full Document
Ask a homework question - tutors are online