0% found this document useful (0 votes)
20 views

C Model Question Paper

Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views

C Model Question Paper

Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

JAYA COLLEGE OF ENGINEERING AND TECHNOLOGY

DEPARTMENT OF Computer Science and Engineering

Second Semester

MODEL EXAMINATION

CS3251- PROGRAMMING IN C

Time:3 Hours Maximum:100 Marks

Answer all Questions

PART-A (10x2=20 marks)

1. What is the use of preprocessor directives?


2. “Keywords cannot be used as Identifiers”-Justify the correctness of the statement?
3. Write down the syntax and give example for array initialization?
4. How to identify the length of the string?
5. How is pointer arithmetic done?
6. What are the difference between Use-defined function and derived function?
7. Differentiate Structure and union?
8. What do you mean by self-referential Structure?
9. Why files are needed?
10. Given an example for fseek?

PART-B (5x16=80 marks)

11.(a) Explain the various data types being supported by C language? (16)

(Or)

(b) Explain the concepts of Preprocessor directives? (16)

12. (a) Write a C program to multiply two matrices?(16)

(Or)

(b) Write the concepts of String Handling function with example program? (16)
13. (a) Classify the Function prototype with an example? (16)

(Or)

(b) (i)Explain pointer arithmetic with an example program?(8)

(ii) Explain the program for pass by value and pass by reference? (8)

14. (a) Explain the concepts of self-referential structure? (16)

(Or)

(b) (i) Can linked list grow dynamically? Justify your answer with example program? (8)

(ii)Explain the need for nested structure with appropriate example? (8)

15.(a)How does random accessing of files are done in C language? Explain in detail? (16)

(Or)

(b) (i) Mention the purpose of fseek () function in random files.(5)

(ii) When to use fread() and fwrite() functions in file processing?(6)

(iii)List out the mode in which a C file can be opened. Specify purpose of each mode?(5)

You might also like