Programming In C End Exam Model Paper – I.ll

advertisement
EE-406
BOARD DIPLOMA EXAMINATION.(C-14)
DEEE-FOURTH SEMESTER EXAMINATION
MODEL PAPER-1
PROGRAMMING IN C
Time : 3 hours
Total Marks:80
PART-A
Instructions:(1 )Answer all questions.
3x10=30
(2) Each question carries three marks
1.Explain the logical operators in C.
2.Write the syntax of Input and Output statements.
3.Differentiate break and continue statements.
4.What are conditional statements in C.
5.Define an array and give its syntax.
6.How we declare and initialize string variables.
7.What is the need of user defined functions.
8.How to pass parameters to function.
9.Define structure and write the syntax.
10.Define pointer and how to initialize a pointer.
PART-B
Instructions:(1 )Answer any five questions.
(2)Each question carries ten marks.
11. a)Write the steps involved in executing a C program.
b)List and explain data types in C.
12.a)Explain switch statement with syntax.
b) Write a C program to find the biggest of three numbers.
13.a)Explain the difference between while and do-while loop?
5X10=50
b)Write a C program to generate prime numbers.
14.a) How to declare and initialize 1D and 2D arrays.
b) Write a C program to add two matrices.
15.a) What are string handling functions? Explain with examples.
b) Write a program to find the length of a given string.
16.List and explain storage classes in C.
17.a)Define a function ?Explain the different categories of function.
b)Write a C program to find the sum of numbers 1 to n using functions.
18.a)Explain the difference between structure and union.
b)Define Structure and write the syntax and explain the accessing of structure members.
EE-406
BOARD DIPLOMA EXAMINATION.(C-14)
DEEE-FOURTH SEMESTER EXAMINATION
MODEL PAPER-2
PROGRAMMING IN C
PART-A
Instructions:(1)Answer all questions.
3x10=30
(2) Each question carries three marks
1. Write a program to calculate the area of a triangle of given three sides.
2.List the C keywords.
3.Explain unconditional statements in C.
4.Explain switch statement with syntax.
5.Define 1D and 2D arrays.
6.How we declare and initialize string variables.
7.Write about function prototype
8.What is the need of user defined functions?
9.How to declare a structure variable.
10.Define pointer & how to initialize a pointer.
PART-B
Instructions:(1 )Answer any five questions.
(2)Each question carries ten marks.
11. a)Explain about any four types of operators.
b)Write a C program to calculate real roots of a quadratic equation.
12.Explain conditional statements with syntax and examples.
13.a)List and explain iterative statements in C with syntax and example.
b)Write a C program to check the number is palindrome or not.
14.a)What are string handling functions. Explain with example.
5X10=50
b)Write a program to compare two strings.
15.How to initialize 1D and 2D arrays.Write a C program to sort array elements.
16.a)Define recursion.Write a C program for factorial number generation using functions.
b)Write the difference between address operator and dereference operator.
17.List and explain storage classes in C.
18.a)Explain the difference between structure and union.
b)Explain parameter passing by reference with an example.
Download