written 8.1 years ago by |
Computer Programming & Utilization - Jun 2013
First Year Engineering (Semester 2)
TOTAL MARKS: 100
TOTAL TIME: 3 HOURS
(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 | |||
1 |