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

Advanced_C-Programming - Paper II

The document outlines the paper pattern for an Advanced 'C' Programming exam, detailing the structure of questions across five sections. It includes a variety of topics such as predefined string functions, pointers, structures, file handling, and memory management. Each section specifies the number of questions to attempt and their respective marks.

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)
7 views

Advanced_C-Programming - Paper II

The document outlines the paper pattern for an Advanced 'C' Programming exam, detailing the structure of questions across five sections. It includes a variety of topics such as predefined string functions, pointers, structures, file handling, and memory management. Each section specifies the number of questions to attempt and their respective marks.

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 are predefined string functions?


2. What is dereferencing a pointer?
3. Explain #define directive with example.
4. Syntax of strcmp()
5. Explain array of structures.
6. What is a dangling pointer?
7. How is a union different from a structure in memory usage?
8. Explain the use of typedef in structures.
9. What is a file pointer in C?
10. What is the output of #ifdef when the macro is defined?

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

1. Explain pointer to array with an example.


2. Describe realloc () function with syntax and example.
3. What is a string? How to declare string & initialize string.
4. Write a program to accept the number and define a macro-CUBE for calculating cube
of number using nested macro.
5. Explain the concept of random access to files.

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

1. Write a C program to read two integers using pointers and perform all arithmetic
operations.
2. Write a program to create a structure person(pid, pname, page, psalary,pcontactno)
read and display the information for ‘n’ number of person.
3. What are the difference between malloc() and calloc()?

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

1. What is structure? Write the difference between Structure & Union.


2. Write a C program to accept n numbers, store them dynamically, and display them in
reverse order.
3. Write a C program to read a file and display its contents by changing case of file
content.

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

1. Differentiate between Macros and Function.


2. Write a program to concatenate two strings using pointers.

You might also like