Computer Programming & Utilization : Question Paper Jun 2013 - First Year Engineering (Semester 2) | Gujarat Technological University (GTU)

Computer Programming & Utilization - Jun 2013

First Year Engineering (Semester 2)

(1) Question 1 is compulsory.
(2) Attempt any four from the remaining questions.
(3) Assume data wherever required.
(4) Figures to the right indicate full marks.
1 (a) Draw block diagram of computer system. Explain each part of it(5 marks) 1 (b) List and explain types of computer languages.(5 marks) 1 (c) What is flow chart? Draw the flow chart to add first 20 odd numbers(4 marks) 2 (a) List and explain fundamental data types of C language.(5 marks) 2 (b) Explain different types of operators used in C .(5 marks) 2 (c) What is Type conversion and Type casting? State difference between them.(4 marks) 3 (a) What is looping? Explain Entry control and Exit control loops with appropriate flowchart and syntax.(7 marks) 3 (b) Write a program to reverse the number. (e.g. 456 ? 654)(7 marks) 4 (a) State the syntax of Switch-case statement. Explain it with appropriate example.(7 marks) 4 (b) Write a C program to count ODD and EVEN numbers from given 10 numbers.(7 marks) 5 (a) Explain various string functions.(7 marks) 5 (b) Write a C program to count number of words in a given string(7 marks) 6 (a) Explain the difference between call by value and call by reference with suitable examples.(7 marks) 6 (b) What is recursive function? Explain with suitable example.(7 marks) 7 (a) What is pointer? Explain how pointers are declared and initialized.(4 marks)

Attempt any two :-

7 (b) (i) Difference between Structure and Union.(5 marks) 7 (b) (ii) Write a C program to print following pattern.

5 4 3 2 1
  4 3 2 1
    3 2 1
      2 1
(5 marks) 7 (b) (iii) Explain if-else-if ladder with appropriate flow chart and C syntax(5 marks)


Continue reading

Find answer to specific questions by searching them here. It's the best way to discover useful content.

Find more