0% found this document useful (0 votes)
2K views2 pages

IP Unit Wise Important Questions

Uploaded by

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

IP Unit Wise Important Questions

Uploaded by

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

Unit Wise Important Questions:

UNIT -1
1)a) What is an algorithm ? Give its properties .Explain with example
b) What is a flowchart ? Give an example of flowchart and brief notes on Dia tool.
2)a) What are time and space complexities of an algorithm?
b) Explain problem solving strategies.
3) How do you create, compile and execute a C program?
4)Explain the features of C program. Give the structure of a C program with example
5)Explain a) variable/identifiers b) constants c)datatypes
d) input/output
6) Write in detail about a)arithmetic operators b)relational operators
c)logical operators d)Assignment Operators
7) Write in detail about a)increment/decrement operators b)conditional operator
c)bitwise operators d)Special Operators
8) What is operator associativity and precedence ? Explain expression evaluation with
example.
9) What is type conversion? Explain its types with example program.

UNIT - II
1) Give the syntax, sample flowchart and programming example for all the selection
statements .
2) Give the syntax, sample flowchart and programming example for all the
looping/iterative/repetitive statements .
3) Explain the concept of nested loops with an example.
4) Write about jumping statements (break, continue)
5) Tabulate the differences between for ,while and do while
(pretest and posttest loops / entry controlled and exit controlled loops ).
6) Tabulate the differences between break and continue
7) Tabulate the differences between two-way and multi-way selection statements.

Unit – III (Functions & Pointers)


1. Explain the following with respect to functions :
i) Function declaration ii) Function Call iii) Function Definition.
2. Write in detail about the usage of void / generic pointer with suitable program.
3. Define Recursion. Develop a program to find factorial of a given number using
recursion.
4. What are command line arguments ? Give an example program.
5. What is a pointer? How to declare and initialise a pointer, and access a variable
through its pointer?
6. Write in detail about how to access a 1D array using a pointer.
7. Develop a C program to add and multiply 2 integer variables through their pointers.
8. Demonstrate the concept of parameter passing techniques with respect to swapping
of 2 integers.

Unit – IV (Arrays & Strings)


1. Define an array. How to create, initialize and access a 1D array.
2. Develop a C program to reverse all the elements in a 1d array without using another
array
3. Discuss any 2 matrix operations with the help of 2D arrays.
4. Define String. List out all the string handling functions.
5. State the difference between using scanf() and gets() for reading a String (with
example program).
6. Develop a C program to concatenate 2 strings without using built-in function.
7. Write a C program to find sum of n elements using the concept of dynamic memory
allocation.
8. Tabulate the differences between malloc() and calloc().

Unit – V (Structures & Files)


1. What is a Structure? How to define a structure, declare structure variables and
access data?
2. Write a C program to store and print details of 4 students using the concept of array
of Structures
3. Compare and contrast structures and unions.
4. Give the difference between variable and constant.
5. What is self referential structure? Create one node in a single linked list using the
concept.
6. Define Bit fields. Explain the advantage of bit fields with an example program.
7. What is a file? Write C program to write text into and read text from a text file.
8. Discuss in detail about random access of files

** PROGRAM FOR TOWERS OF HANOI.

You might also like