Computer Programming & Utilization - Jun 2014
First Year Engineering (Semester 1)
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) What is Flowchart and Algorithm? Draw flowchart to print sum of numbers between 1 to 100 which are divisible by 3 and 5(7 marks) 1 (b) State and explain features of C language.(4 marks) 1 (c) Explain types of languages used(3 marks) 2 (a) Explain different types of operators with examples(7 marks) 2 (b) Explain C Tokens.(4 marks) 2 (c) Explain break statement with examples.(3 marks) 3 (a) Write a C Program that reads number from 1 to 7 and accordingly it Should print MONDAY to SUNDAY.(7 marks) 3 (b) Explain Switch case with examples.(4 marks) 3 (c) What is local and Global variable? Explain with examples. (3 marks) 4 (a) Write a C program check given string is palindrome or not.(7 marks) 4 (b) Explain while,do while and for loops with examples. (4 marks) 4 (c) Explain scope and life time of variable.(3 marks) 5 (a) What is recursive function? Explain with example. (7 marks) 5 (b) Write a function which accepts a string and returns the length of the string. (4 marks) 5 (c) Show the use of the malloc() function. (3 marks) 6 (a) Explain the difference between call by reference and call by value with suitable example.(7 marks) 6 (b) What is pointer? Clear it with examples and give its use.(4 marks) 6 (c) Explain difference between Structure and Union(3 marks) 7 (a) Explain the difference String functions used in C with suitable example (7 marks) 7 (b) Explain showing proper syntax, following file operations:
(i) fprintf() (ii) fscanf() (iii) putc() (iv) getc()(4 marks) 7 (c) List the different file management functions and explain various file modes.(3 marks)