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

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
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
Background image of page 1

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

View Full DocumentRight Arrow Icon
Question 1: (14 points) Find the values of the following expressions. expression Value -3<=-2<=-1 5>3>=2+1 6+3<5&&!5-3>6 -3+3*-5%4+(5-2)/2.0 11.5-(2+3*(7-4)/4) Question 2 (10 points ) Write the corresponding mathematical or C expression C EXPRESSION Mathematical Expression y x z x y + - 2 pow(sqrt(x)+y,0.5) 2 7 3 1 + - y x xy 1+exp(y+x)/y-sqrt(z) 2
Background image of page 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.
Background image of page 3

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

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 05/09/2010 for the course ICS 103 taught by Professor Baleh during the Spring '10 term at Abilene Christian University.

Page1 / 8

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

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

View Full Document Right Arrow Icon
Ask a homework question - tutors are online