Вы находитесь на странице: 1из 2

B.E./B.Tech. DEGREE MODEL EXAMINATION OCT- 2015.

First Semester
Computer Science and Engineering
( Common to All Branches )
GE6151 COMPUTER PROGRAMMING
( Regulation 2013 )
Time: 3 Hours

Maximum: 100 marks


Answer ALL questions
Part A (10 x 2 = 20 Marks)

1. List different symbols used in flow chart.


2. Why computer is known as data processing system?
3. What is the difference between a++ and ++a?
4. Why header files are included in C Program?
5. Why it is necessary to give size of an array in an array declaration?
6. Define String. Give example.
7. What is the use of pointers?
8. How can you return more than one value from a function?
9. Which is better to use function or Macro?
10. How to access structure members?
PART B (5 16 = 80 Marks)
11. (a) (i) Explain in detail about number conversion systems.
(ii) Write a pseudo code and draw a flow chart to find given year is leap or not.

(8)
(8)

OR
(b) (i) Explain in detail about classification of computers.
(ii) Explain the basic computer organization with a neat diagram.

(8)
(8)

12. (a) (i) Explain with suitable example, various branching statements in C.

(8)

(ii) Explain in detail how to manage Input and Output operations in C.

(8)

OR
(b) (i) Explain with suitable example, various Looping statements in C.
(ii) Write a program to check whether a given number is Armstrong or Not.

(8)
(8)

13. (a) (i) What is array? How to declare and access elements in an array. Give example.
(ii) Write a C program to demonstrate various string handling functions.

(8)
(8)

OR
(b) (i) Write a C program to read a string from user and check whether it is palindrome.

(8)

(ii) Write a C program to multiply two matrices & display the resultant matrices.

(8)

14. (a) (i) Explain the different function prototypes with necessary syntax and example.
(ii) What is pointer? How it is declared and accessed? Illustrate it with example.

(8)
(8)

OR
(b) (i) Write a C program to find factorial of a given number using recursion.
(ii) Write a C program to illustrate call by value and call by reference.

(8)
(8)

15. (a) (i) Explain in detail about the preprocessor directives.


(8)
(ii) What is union? What is the difference between structure and union? Explain the concept of
union with suitable example program.
(8)
OR
(b) (i) Write a C program to create a structure student, containing student name and roll no.
Get the name and roll no. from user in main function. Pass this structure to a function
and display the information in that function.
(16)

Вам также может понравиться