Methodology of Programming in C-B.C.A 2019-2022-oct-2019

                                                                       



Name   ……………………………
Roll No ……………………….


SAINTGITS COLLEGE OF APPLIED SCIENCES
SECOND INTERNAL ASSESSMENT EXAMINATION, OCTOBER 2019
Department of BCA, Semester I
Methodology of programming and C Language
Answer Key
Total   : 80 marks                                                                        Time:3Hours
Section A
Answer any 10 questions. Each question carries 2 marks.

1. write four advantages of C? (2 mark)
2. Definition for arrays? (1 mark)
    Definition for pointers? (1 mark)
3. write four difference between recursion vs iteration? (2 mark)
4. Define compiler? (1 mark)
    Define interpreter? (1 mark)
5. write two formatted functions in C with syntax and example? (2 mark)
6. syntax and example for conditional operators? (2 mark)
7. Write a program to find factorial of a number using recursion? (2 mark)
8. Define recursion (1 mark)?
   Define typedef datatypes? (1 mark)?
9. write the algorithm and draw the flowchart to find the smallest of two numbers? (2 mark)
10. Define malloc () with syntax and example? ( 1 mark)
      Define calloc () with syntax and example? (1 mark)
11.write four difference between break and exit statement in C? (2 mark)
12. write four difference between structure and union in C? (2 mark)
                                                                                                                        (10 X 2 = 20 marks)
Section B
Answer any 6 questions. Each question carries 5 marks.

13. write different data types in C with example? (5 mark)
14. Explain each string functions with syntax and example? (5 mark)?
15. Define array of structure with syntax and example? (5 mark)
16. Explain merging operation in one dimensional array with example program? (5 mark)
17. Define array of pointers with syntax and example? (5 mark)
18. Explain compiler, assembler and interpreter in C? (5 mark)
19. Define functions and Explain 3 different parts of functions in C with example? (5 mark)
20. Explain any two types of user-defined function with example? (5 mark)
21. write note on call by value and call by reference with example program? (5 mark)        (6 X 5 = 30marks)

Section C
Answer any 2 questions. It carries 15marks.

22. Explain 4 different storage classes in C with examples? (15 mark)
23. Explain selection, iteration and jump statements in C with syntax and example? (15 mark)
24. Explain insertion and deletion operations in two dimensional arrays with example program? (15 mark)
25. Explain identifiers, constants, operators, keywords, strings, special symbols ..etc in C? (15 mark)

                                                           
                                                                                                                        (2 X 15 = 30 marks)
_____________________

Comments

Post a Comment

Popular posts from this blog

UG, S1 BCA, First internal examination, Introduction to Problem Solving and Web Designing, September 2024