GTU First Year Engineering (Semester 1)
Computer Programming & Utilization
June 2014
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) What is Flowchart and Algorithm? Draw flowchart to print sum of numbers between 1 to 100 which are divisible by 3 and 5
7 M
1 (b) State and explain features of C language.
4 M
1 (c) Explain types of languages used
3 M

2 (a) Explain different types of operators with examples
7 M
2 (b) Explain C Tokens.
4 M
2 (c) Explain break statement with examples.
3 M

3 (a) Write a C Program that reads number from 1 to 7 and accordingly it Should print MONDAY to SUNDAY.
7 M
3 (b) Explain Switch case with examples.
4 M
3 (c) What is local and Global variable? Explain with examples.
3 M

4 (a) Write a C program check given string is palindrome or not.
7 M
4 (b) Explain while,do while and for loops with examples.
4 M
4 (c) Explain scope and life time of variable.
3 M

5 (a) What is recursive function? Explain with example.
7 M
5 (b) Write a function which accepts a string and returns the length of the string.
4 M
5 (c) Show the use of the malloc() function.
3 M

6 (a) Explain the difference between call by reference and call by value with suitable example.
7 M
6 (b) What is pointer? Clear it with examples and give its use.
4 M
6 (c) Explain difference between Structure and Union
3 M

7 (a) Explain the difference String functions used in C with suitable example
7 M
7 (b) Explain showing proper syntax, following file operations:
(i) fprintf() (ii) fscanf() (iii) putc() (iv) getc()
4 M
7 (c) List the different file management functions and explain various file modes.
3 M



More question papers from Computer Programming & Utilization
SPONSORED ADVERTISEMENTS