C Midterm with solutions
Introduction to the C programming (Istanbul Teknik
Üniversitesi)
, lOMoARcPSD|12096575
ISTANBUL TECHNICAL UNIVERSITY
Bil110E: Introduction to Programming Language C
Name:
Student ID:
CRN:25306 April 13, 2018
1 2 3 4 Total
MIDTERM EXAMINATION-with solutions
Question 1b: ( 10 points)
Place parenthesis in the following expressions to explicitly show the order of evaluation.
For example, a + b * c → ( a + (b * c) )
a) 3 + p ++ → (3+(p++))
b) (double) d / 3 + 4 → ((((double)d)/3)+4)
c) d > 10 && d < 100 || d == 500 → (((d > 10) && (d < 100)) || (d ==500))
Question 1c: ( 5 points)
Comment “C is mid-level language”?
C is not an high level language as it cannot be coded near to the spoken language.
C is not a machine language as it can not be coded in the ‘0011001’ binary form.
C lies in between these, as a mid-level language.
Page 1 of