Computer Programming (2017)
Computer Programming (2017)
COMPUTER PROGRAMMING
Instructions to Candidates :—
(1) All questions carry equal marks.
(2) Solve any Two sub–questions from each question except question no. Five.
(3) Illustrate your answers wherever necessary with the help of neat sketches.
(4) Assume suitable data wherever necessary.
1. (a) What do you mean by algorithm ? Propose an algorithm to find the minimum
of three numbers. 5(CO 1)
(b) State the differences between the followings :
(i) Procedure oriented and object oriented language.
(ii) Compiler and interpreter. 5(CO 1)
(c) Convert the following octal numbers into its equivalent decimal, binary and
hexadecimal number :
(i) 326.32
(ii) 12.76. 5(CO 1)
2. (a) Write short note on storage class available in C. Mention storage, default
initial value, scope and life for each of these classes. 5(CO 2,CO 3)
(b) If the three sides of a triangle are entered through the keyboard, write
a program to check whether the triangle is valid or not. The triangle is
valid if the sum of two sides is greater than the largest of the three
sides. 5(CO 2,CO 3)
(c) Write a C program to check whether an alphabet is vowel or consonant
using switch case. 5(CO 2,CO 3)