GTU Question Paper Computer Programming and Utilization Dec 2011
GUJARAT TECHNOLOGICAL UNIVERSITY BE SEM- I / II
Examination-Dec.-2011 Subject code: 110003
Subject Name: Computer Programming and Utilization
Time: 10.30 am -1.00 pm Total marks: 70
- Attempt any five questions.
- Make suitable assumptions wherever necessary.
- Figures to the right indicate full marks.
Q.1 (a) Answer the following. 12
(i) Explain printf() and scanf() giving their syntex.
(ii) What is recursion? Explain it with suitable example.
(iii) Write short note on Pointer.
(iv) Explain switch.. .case statement.
(b) What is Algorithm? 02
Q.2 (a) Explain various symbols used in Flowchart and draw the flowchart for finding Smallest 07 number out of three given numbers.
(b) Write a program in C to generate Fibonacci series like following: 07
1, 1, 2, 3, 5, 8, 13 …
Generate 20 such numbers.
Q.3 (a) Draw the Block diagram of Computer System and explain. 07
(b) Write a program to display following pattern using nested for loops. 07
* * * *
* * *
Q.4 (a) Explain various operators used in C language. 07
(b) Explain how string is defined in C. Write user defined functions for the following: 07
(i) strlen() : to find length of string.
(ii) strcat() : to concate two strings.
Q.5 (a) Write a C program to Add two 3 X 3 Matrix. 08
(b) Define: Software, Hardware, Higher level Language, Operating System. 06
Q.6 (a) Write a C program to read 10 numbers from user and find Sum, Maximum and 08 Average of them.
(b) What is used defined function? Explain types of functions with example. 06
Q.7 (a) What is structure? Explain with example how to declare a structure and how to 04 initialize it.
(b) Write short notes on following (Any Two). 10
(i) File Operations in C.
(ii) Data types in C.
(iii )Scope and Lifetime of Variable.