You are on page 1of 2

HINDUSTAN INSTITUTE OF TECHNOLOGY AND SCIENCE

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING


MODEL EXAMINATION NOVEMBER 2016
CSA101 - Computer Programming
TIME: 3.00 hrs
DATE: MAX.MARKS:100
Part A (10 x 2 =20)
1. What do you mean the speed of computer?.
2. Convert 120.4516 to (?)10
3. Write the any three input statement.
4. Define Flow charts
5. Which is called constant?
6. Is it necessary to use a goto statement in switch..case ? Justify.
7. List out any four string manipulation functions.
8. What is call by value?
9. What is pointer?
10. How do you use in union?

Part B (5 x 6 =30)

1.(a) (i) Convert ( BCD.A09 )16= ( ? )10


(ii) Convert ( 674.76 )8= ( ? )10
or
(b) Discuss generation of computer.

2. (a) Write in detail the various processes involved in developing a program/application


software
or
(b) Write the algorithm, flowchart and pseudo code to find the factorial of given numbers.

3. (a) Discuss in detail about while and do.. while looping with examples
or
(b) Explain the operators and expressions supported by C.

4. (a) Write an algorithm and program to do arithmetic operations using switch case.
or
(b) Write a program to swap two values using call by reference.

5. (a) Write a C program using structures to prepare the EB Bill.


or
(b) Explain the following functions with suitable example: a) fopen( ) b) fwrite ( ) c) fclose()
Part B (5 x 10 =50)

1. (a) List down the various generations of computer and discuss the features of computer types.
or

(b) (i) Convert the following :


a. (1467)8 = ( )2 b. (354.45)10 = ( )8
(ii List out characteristics of computer.
2. (a) Discuss about various types of programming languages.
or
(b) Write the algorithm, flowchart and pseudo code to finding the biggest numbers in given three
numbers.

3. (a) Illustrate the Input and output functions in C.


or
(b) Write a program to simulate logical operations using switch-case statement.

4. (a) Write in detail the structure and union in C.


or
(b) Write the algorithm, flowchart and C Program for recursion.

5. (a) Describe in detail about dynamic memory allocation functions.


or
(b) Write a C program to handle files.

You might also like