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

Advanced_C-Programming - Paper I

The document outlines the paper pattern for an Advanced 'C' Programming exam, consisting of five questions with varying numbers of sub-questions. Students are required to answer a specific number of questions from each section, covering topics such as pointers, file handling, structures, and memory management. The exam assesses both theoretical knowledge and practical programming skills in C.

Uploaded by

jessicaroy3508
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

Advanced_C-Programming - Paper I

The document outlines the paper pattern for an Advanced 'C' Programming exam, consisting of five questions with varying numbers of sub-questions. Students are required to answer a specific number of questions from each section, covering topics such as pointers, file handling, structures, and memory management. The exam assesses both theoretical knowledge and practical programming skills in C.

Uploaded by

jessicaroy3508
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Advanced ‘C’ Programming Paper Pattern

Q1) Attempt any eight of the following. [8×1=8]

1. What is a pointer?
2. What is the role of the (.) dot operator?
3. What is free() used for?
4. Differentiate between text files and binary files.
5. Write any two file mode to open binary file?
6. Differentiate between structure and union.
7. What is a memory leak?
8. What are command line arguments in C?
9. Define an array of pointers.
10. File handling in C does not allow binary files to be opened and manipulated. Justify
True/False

Q2) Attempt any four of the following. [4×2=8]

1. Explain pointer arithmetic with an example.


2. Write a short note on malloc() and calloc().
3. What is a nested structure? Give an example.
4. Explain the use of macros in C.
5. What are the types of files in C?

Q3) Attempt any two of the following. [2×4=8]

1. Write a C program to accept an integer using a pointer and check whether it is even
or odd.
2. Write a program to create a structure customer(cno,cname,caddress) read and display
the information of three customers.
3. Explain different operations on file with file opening mode(Opening, Reading,
Writing, Closing).

Q4) Attempt any two of the following. [2×4=8]

1. Write a program to read two strings. If first string is greater than second then
concatenate second to first and display concatenated string, If first string is smaller
than second then concatenate first to second, other-wise display length of string. (use
strcmp)
2. Explain different types of pointer with example.
3. Write a C program to read and write to a file.

Q5) Attempt any one of the following. [1×3=3]

1. Explain the role of the preprocessor in C.


2. Write a program to accept N integers and store them dynamically and display them.

You might also like