Sei sulla pagina 1di 0

Page 1 of 2

Summer Term End Examination - July 2013


Class NBR : 1295 Slot : A
Course Code : CSE101
Course Title : Computer Programming and
Problem Solving
Time : Three Hours Max.Marks:100
PART A (8 X 5 = 40 Marks)
Answer ALL Questions
1.
With a neat sketch explain the compiler usage while compiling C program and
differentiate compiler with interpreter.

2.
List four input devices and write about the purpose for which they are used.

3.
Design a algorithm and implement the given below using C language
W
WE
WEL
WELC
WELCO
WELCOM
WELCOME

4.
With example write about the unconditional control statements.

5.
With example brief about pointer concept and why it is important?

6.
Why library functions are important in C language and brief the string related inbuilt
library functions.

7.
Write a C program to find the maximum in a given array.

8.
Compare Union and structure with simple examples.

PART B (6 X 10 = 60 Marks)
Answer any SIX Questions

9.
a) Write about the conditional control statements and its role in C programming.
b) Write a C program to test all arithmetic operations using switch case statement.
[5]
[5]
10. Write an algorithm for Fibonacci series and reversing the digits of an integer.
11. State the structure of the all loop-control statements and write a C program to count the
number of digits in the given number.

12. A palindrome is a concept where if you reverse the string then also it remains same,
write a C program to perform on a string to check whether a string is a palindrome.

13. Design an algorithm and implement for searching a element in a two dimensional array.

Page 2 of 2
14.
a) Why functions are important and state the difference between the inbuilt function and
user defined function.
b) Explain the function prototype, declaration and function call with example.
[4]

[6]
15.
Write a C program to print the following series using function.
9 25 57 121 249 505 1017 2041

16. With an example, explain the structure, accessing structure and representing array of
structures.

Potrebbero piacerti anche