Fundamentals of Computing (FOC) May / June 2007 Question Paper


First Semester

Civil Engineering


(Common ta all branches except Marine Engineering)
(Regulation 2004)

Time : Three hours

Maximum : 100 marks

Answer ALL questions.

PART A — (10 x 2 = 20 marks)

1. What are the characteristics of von Neumann architecture?

2. Find the equivalent octal number for AF6.

3. Write the procedure for subtracting two binary numbers using two’s complement.

4. What is an icon? Give an example.

5. What is meant by Desktop publishing?

6. What are the functions of an editor?

7. List the bitwise operators supported by C language.

8. What are the advantages of switch statement?

9. What is the difference between union and structure?

1o. Write the C code for finding the sum of N integers using pointers?

PARTB—(5 *16 80 marks)

11. (a) (i) What are the advantages of stored program computers? (4)

(ii) List the registers used in a computer and explain their use. (6)

(iii) Convert 225.225 to octal and hexadecimal. (6)


(b) (i) Draw the basic block diagram of a digital computer and explain the functions of each unit (8)

(ii) Classify computer? based on their usage and explain their characteristics. (8)

12. (a) (i) What are the functions of an operating systems? (14)

(ii) What are the merits of High level languages? (3)

(iii) Show the step-by-step division process when (—160)/(+12) is computed. (9)


(b)(i) Explain the working of an interpreter using a flow chat.

(ii) Explain how multiplication and division of binary numbers can be done using arithmetic shift operation. (8)

13. (a) (i) Draw the flow chart for find the sum of all the odd numbers in a given set of numbers. (8

(ii) Describe the features of MS-word. (8)


(b)(i) Describe the features of Spreadsheet What are its applications? (8)

(ii) Write a pseudo code for finding the factorial of given number, (8)

14. (a) (i) Explain the following control statements using examples:
WHILE statement; IF ELSE IF statement. (8)

(ii) Write a C program to read s line of mixed text and to display after converting all upper case to lower case, all digits to O and all other special characters to*.(8)


(b) (i) Write a C program to sort the elements of an n x n matrix and to display the elements in the following pattern: (8)

5 4 3

6 1 2

7 8 9

(ii) With examples, explain how input and output operations are managed in C.(8)
15. (a) (i) Write a C program using pointers to concatenate two strings. (8)

(ii) Write notes on preprocessor directives. (8)


(b) (i) Write a C program to read m x n matrix and to check whether the element of last column of each row is the sum of the elements of the other columns in that row. (8)

(ii) Explain the use of structure within a structure and array of structures using examples. (8)