Wednesday, April 8, 2020

Question Paper (Question Bank-2)

                    Question Paper to solve
Sub:  Programming in C
_______________________________________
1. Attempt any FIVE of the following :       10  Marks
(a) State use of while loop with syntax.
(b) List any four keywords used in ‘C’ with their use.
 (c) Write the syntax of switch case statement.
 (d) State any two differences between while and do-while      statement.
(e) State any four math functions with its use.
2. Attempt  THREE of the following : 12 Marks
(a) If the value of a number (N) is entered through keyboard. Write a program using recursion to calculate and display factorial of number (N).
(b) Explain any four bit-wise operator used in ‘C’ with example.
(c) Write a program to accept marks of four subjects as input from user. Calculate and display total and percentage marks of student.
3. Attempt  THREE of the following : 12 Marks
(a) Explain strlen( ) and strcpy( ) function with example.
(b) Draw a flowchart for checking whether given number is prime or not.
(c) Implement a program to demonstrate logical AND operator.
4. Attempt  THREE of the following : 12 Marks
(a) Describe generic structure of ‘C’ program.
(b) With suitable example, explain how two dimensional arrays can be created.
(c) Write a program to accept a string as input from user and determine its length. [Don’t use built in library function strlen()]
5. Attempt  TWO of the following : 12  Marks
(a) Write a program using switch statement to check whether entered character is VOWEL or CONSONANT.
(b) Develop a program to find diameter, circumference and area of circle using function.
6. Attempt  TWO of the following : 12  Marks
(a) Write a program using switch statement to check whether entered character is VOWEL or CONSONANT.

(b) Define Array. Write a program to accept ten numbers in array. Sort array element and display.

No comments:

Post a Comment