Ee 171 Test 2 2014
Ee 171 Test 2 2014
Instructions to Candidates: 1. Time allowed: 45 Minutes. 2. Attempt all Questions. 3. Write legibly.
4. This is a closed book test. 5. All answers should be written within two pages of this sheet of paper
6. Use of Mobile Phones is strictly prohibited during the test. 7. Fill in your personal particulars clearly.
2013-04-
(i) 2
post-increment
Give the meaning of the following arithmetic
operations used in C Programming:
(ii) pre-decrement 2
2
(i) x++ (ii) - -x (iii) z += 10
(iii) z=z+10 2
(iv) z% = 10 (v) z -= 10
(iv) z=z%10 2
(v) z=z-10 2
(i) and 2
(v) compliment 2
(i) 8 bits 2
In C programming, give the minimum storage
(ii) 32 bits 2
requirement in “bits” for the following data types.
4. (i) char (ii) long unsigned integer (iii) 64 bits 2
(iii) double (iv) long signed integer
(iv) 32 bits 2
(v) float
(v) 32 bits 2
1
No. Questions Answers Marks
(i) security 2
(ii) command interpretation 2
List down the main functions of an Operating
6. (iii) process management 2
System.
(iv) file management 2
(v) memory management 2
In C Programming, give the logical operators for (i) == 2
the following operations:
(i) Logical EQUAL to (ii) && 2
7. (ii) Logical AND (iii) != 2
(iii) Logical NOT EQUAL to
(iv) ! 2
(iv) REVERSE logical value
(v) Logical OR (v) II 2