Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

SABARAGAMUWA UNIVERSITY OF SRI LANKA

FACULTY OF GEOMATICS

BACHELOR OF SCIENCE HONOURS IN SURVEYING SCIENCES


YEAR I SEMESTER I EXAMINATION – JANUARY 2022

COMPUTER APPLICATIONS - FC11322

Time allowed: Two(02) hours

Answer all questions.

1 a. Development environment of C program has 6 phases. List all of them. (30 Marks)
b. List four (04) IDEs for C programming. (20 Marks)
c. Which of Determine whether each of the following are valid identifiers? If not
provide reason.
i. helloworld
ii. double
iii. Loop
iv. Age123
v. integer
vi. hit man
vii. this_pc
viii. num|1
ix. height
x. 36variable
(50 Marks)

2 a. Differentiate pre increment operator and post increment operator in C. (20 Marks)
b. What is the different between = and == in C? (15 Marks)
c. Compare and contrast while, do while and for loops with the aid of syntax or
example in C. (45 Marks)
d. List down four (04) different types of user-defined functions in C. (20 Marks)

3. a. Write a C program to identify the largest integer from three user inputs (100 Marks)

Page 1 of 1

You might also like