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.

Question Paper( Question Bank-1)

                    Question Paper to solve
Sub:  Programming in C
 Date of Checking: 17 April 2020
___________________________________________________________

1. Attempt  FIVE of the following : 10 Marks
(a) Define type casting. Give any one example.
(b) Declare a structure student with element roll-no and name. (c) Distinguish between call by value and call by reference.
(d) State difference between array and string.
 (e) Declare a structure student with element roll-no and name.
2. Attempt  THREE of the following : 12 Marks
 (a) Develop a simple ‘C’ program for addition and multiplication of two integer numbers.
 (b)  State four arithmetic operations perform on pointer with example.
 (c) Draw flowchart for checking weather given number is prime or not.
3. Attempt  THREE of the following : 12 marks
(a )Explain function with example
(b)Explain structure with example
(c) What is String explain its function
4. Attempt  THREE of the following : 12 Marks
(a) Write a program to swap the values of variables a = 10, b = 5 using function.
(b) Develop a program using structure to print data of three students having data members name, class, percentage.
(c) Design a program to print a message 10 times.
5. Attempt TWO of the following : 12 Marks
(a) Develop a program to find diameter, circumference and area of circle using function.
(b) Write a program to perform addition, subtraction, multiplication and division of two integer number using function.
6. Attempt  TWO of the following : 12 Marks
(a) Enlist different format specifiers with its use.

(b) Explain any four library functions under conio.h header file.