0% found this document useful (0 votes)
261 views6 pages

Pps Imp Questions PDF

Uploaded by

mettuvamshi76
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)
261 views6 pages

Pps Imp Questions PDF

Uploaded by

mettuvamshi76
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/ 6

UNIT_1

1. Write the algorithm to find the roots of a quadratic equation ax^2+bx+c=0


2. Write an algorithm to check whether the number is prime or not.
3. Explain about a flowchart?
4. What is a variable? Write the rules for constructing a variable?
5. How to declare and initialize a variable
6. Explain data types in -C?
7. What is an operator and list different categories of C operators based on their
functionality? Give examples?
8. Define precedence and associativity? Give
example? (or)

Explain the hierarchy(priority) and associativity(clubbing) of operators in -C with


examples?
9. What are different types of IF STATEMENTS available in c? Explain them
(or)
Describe all the variants of if statement with clear syntax and examples.
10. Explain the switch statement with example program.
11. What are different types of storage classes in c?
12. Explain the types of type conversations in c with examples?
13. Write in detail about different types of loop statements in C.
14. Explain jumping control-flow statements.
(or)
Differentiate between the following with examples?
(a) Break statement
(b) Continue statement
(c) Goto statement
UNIT_2

1. What is an array? How to declare and initialize array? explain with examples.

2. How can declare and initialize 2D arrays? Explain with examples

3. Explain how to dimensional arrays can be used to represent matrices.

(or)

Define an array and how the memory is allocated for a 2D array?

4. Write a program to perform matrix addition .

5. Write a program to perform matrix multiplication.

6. Explain about the following string handling functions with

example program a)strlen b)strcpy c)strcmp d)strcat

7. Define a structure? write the syntax for structure declaration with an

example

8. Declare the c-structure for the following cenario :

College contains the following fields: college code (2 characters),

college name , year of establishment ,number of courses .each course

is associated with course name (string),duration ,number of students

(a college can offer 1 to 50 such courses)

9. How to access the data for structure variable using member operator (“. )? explain with
example .

10. What is an array of structures? Declare a variable as array of structure and initialize it?

(or)

When the array of structures is used? Write syntax for array of structures.

11. Explain nested structure .

12. Explain brief about pointers and structures .


13. What is pointer in c programming? what are its benefits .

14. Explain the process of declaring and initialize pointers give an example .

15. Write a “c ” function using pointers to exchange the values stored in two locations in the
memory.

16. Explain in details how to access a one dimensional array using pointer. With an
example program

17. What is pointer to pointer? write syntax and explain with example program.

18. Write a short notes on enumeration data type.


UNIT_3

1. Briefly explain the pre-processor directives in detail.


2. Define file and explain about the types of files with examples.
3. Explain different modes of opening files with syntax and
examples?
4. Explain the creating and reading and writing text and binary
files.
5. Write a c program to append content of one text file to
another.
6. Explain about error handling in files?
7. Write a c program to read and display the contents of a file?
8. Write a c program to copy the contents of one file to another?
9. Explain about random access to files with example?
10. What are the file I/O functions in c . Give brief note about
the task performed bye each functions.
UN

UNIT_4
1. Explain the parameters passing Mechanisms in c-
language with examples.
2. How can we pass the whole array to functions?
Explain with examples programs.
3. Distinguish between library functions and user
defined functions in c and explain with examples.
4. What is recursive function? write syntax for
recursive functions.
5. Explain about malloc() and calloc() dynamic memory
management functions with an example.
6. Explain in brief on allocating memory for arrays in
different data types.
UN

UNIT_5
1. Write a c program to implement linear search
algorithm?
2. Explain linear search example.
3. Give an example for binary search.
4. What is sorting? Explain the bubble sort algorithm
with an example.
5. Write a c program to implement bubble sort
algorithm.
6. Explain the selection sort algorithm with an
example.
7. Explain the insertion sort algorithm with an example.
8. Write a c program to implement insertions sort
algorithm.

You might also like