Important Questions

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

Kartheek V

IMPORTANT QUESTIONS

UNIT – III
1. Write a Program that uses a function to sort the elements given by the user using
selection Sort.
2. Write a Program that uses a function to sort the elements given by the user using bubble
Sort.
3. Explain about the Parameter passing in functions with examples.
4. Can you pass an array to a function? Justify your answer with example.
UNIT – IV

1. Define Recursion? What are the rules of recursion?


2. Write C Programs for the following using recursion.
a) Factorial of a number
b) Fibonacci Series with an range
c) GCD
3. Explain about the declaration, definition and accessing a structure with example.
4. How do you define a structure with a structure with example?
5. Why do you need an array of structure? Justify with an example.
6. What is Bit field in structures? Explain with an example.
7. How a structure data type is is different from an array? Explain with an example.

UNIT – V

1. Define a pointer. Explain about the declaration, definition and accessing a pointer with
syntax and example.
2. What are the arithmetic operations that can be performed on pointers?
3. Explain about the void pointer with an example.
4. Why do you need a NULL pointer? With an example.
5. Explain about the wild pointer with example.
6. Why pointers should have data types when their size is always 4 bytes (in a 32-bit
machine), irrespective of the variable they are pointing to?
7. What are self-referential structures?.Explain with an example.
8. Explain about the notion of linked list with an example.
9. What is a file? Write the different types of files.
10. Explain about the different File functions with syntax and examples.
11. Write a C program to copy the content of one file to another file.
12. Write a C Program to count the vowels, constant, spaces, tabs, special symbols and
number of lines in a file.

You might also like