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

Important Questions C PRogramming

Important questions CPRPrograming

Uploaded by

masssubin781
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
680 views

Important Questions C PRogramming

Important questions CPRPrograming

Uploaded by

masssubin781
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

24CS201- PROGRAMMING FOR PROBLEM SOLVING USING C

UNIT WISE IMPORTANT QUESTIONS


PART B
UNIT 1
1) Write Algorithm, Flowchart and Pseudocode for the problems
(i) To find square root of a number
(ii) To check for leap year
(iii) To find biggest among two numbers
iv) To convert temperature
v) To Swap two numbers
vi) To Area of the circle
vii) To Find biggest among three numbers
viii) To reverse the digits of a number

2) Explain the structure of C Program, State the use of different components


3) What is mean by Datatypes Explain the various datatypes Supported by C
4) How the variables are declared and initialized in a program, Explain the types of
variables
5) What is mean by Token, Explain the various Tokens available in C Language and State
their features.

UNIT II
1. What is mean by Function, how to call and Define function explain with example
program
2. What is mean by Looping, Apply the various looping statements to solve example
problems.
3. Explain the various Decision Making /Conditional statements available in c
4. Write C Programs to demonstrate the difference between Function Call by value and Cal
by Reference (Parameter passing methods)
5. What are the different operators available in C, Explain their usage with example
programs?
6. Write C programs for some example problems
(i) Write a Program to find biggest among three numbers
(ii) Write a Program to find GCD of a number
(iii) Factorial of a number using recursion
(iv) Sum of n digits using for loop
(v) Print sum of integers using while loop

UNIT III
1) Define arrays and its types how to declare and Define Arrays, Explain with examples.
2) Explain the various String handling functions (Various operations on strings)
3) Explain the types of Arrays with example programs (one dimensional, two dimensional)
4) Write a C program to sort n number of Elements in an Array
5) Write a program for Linear search (Searching an Element in an Array)
6) Write a program to perform Matrix Addition and Matrix Multiplication
7) Write a program to find sum of elements in an Array
8) C Program to Check if a Given String is Palindrome

UNIT IV
1) What is mean by pointer, how to declare and assign pointers, show the use of pointers
with example program
2) Explain the various Arithmetic operations that can be performed on pointers (Pointer
Arithmetic)
3) Explain the different functions used to perform dynamic memory allocations with
programs
4) Explain how pointers are used to access One dimensional arrays and two dimensional
arrays (Pointers and arrays)
5) How can we create pointer to a pointer variable, explain with example programs?
6) Describe Array of pointers with example programs
7) Pointer programs
UNIT V
1) Explain the various file handling operations in c. Apply the necessary functions in
programs
2) What is the use of Structures in C, Explain Array of structures in C with example
program?
3) Write C Program to Store Information of a Student Using Structure
4) Explain union with example program
5) How can we access Structure members using pointers, Explain with example program?
6) Demonstrate the functions used for Random accessing of files with example programs.
(ftell(), fseek(), rewind())

You might also like