GTU First Year Engineering (Semester 2)
Computer Programming & Utilization
January 2012
Total marks: --
Total time: --
INSTRUCTIONS
(1) Assume appropriate data and state your reasons
(2) Marks are given to the right of every question
(3) Draw neat diagrams wherever necessary


1 (a) Answer the following:
i) Explain prinft() and scanf() giving their syntax.
ii) Whats is recursion? Explain it with suitable example.
iii) Write short note on Pointer.
iv) Explain switch... case statement.
12 M
1 (b) What is Algorithm?
2 M

2 (a) Explain various symbols used in Flowchart and draw the flowchart for finding Smallest number out of three given numbers.
7 M
2 (b) Write a program in C to generate Fibonacci series like following:
1, 1, 2, 3, 5, 8, 13 .....
Generate 20 such numbers.
7 M

3 (a) Draw the Block diagram of Computer System and explain.
7 M
3 (b) Write a program to display following pattern using nested for loops.
* * * * *
* * * *
* * *
* *
*
7 M

4 (a) Explain various operators used in C language.
7 M
4 (b) Explain how string is defined in C. Write user defined functions for the following:
i) strlen(): to find length of strings
ii) strcat(): to concate two strings
7 M

5 (a) Write a C program to Add two 3?3 Matrix.
8 M
5 (b) Define Software, Hardware, Higher level Language, Operating System.
6 M

6 (a) Write a C program to read 10 numbers from user and find Sum, Maximum and Average of them.
8 M
6 (b) What is used defined function? Explain types of functions with example.
6 M

7 (a) What is structure? Explain with example how to declare a structure and how to initialize it.
4 M
7 (b) Write short notes on following (Any Two).
(i) File Operations in C
(ii) Data types in C
(iii) Scope and Lifetime of Variable.
10 M



More question papers from Computer Programming & Utilization
SPONSORED ADVERTISEMENTS