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

PPSC Imp Qtsns

Uploaded by

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

PPSC Imp Qtsns

Uploaded by

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

C Programming Important Questions for Mid-I

UNIT-I
1. Define an algorithm? Explain its characteristics with suitable examples.
2. Write an algorithm for finding biggest of three numbers
3. Write an algorithm for finding factorial of given number
4. Write an algorithm for finding area and perimeter of triangle.
5. Write an algorithm for checking palindrome number or not
6. Write an algorithm for generating fibanocci series
7. Define flow chart? Explain different symbols used in flowcharts with suitable
examples.
8. Draw a flow chart for finding sum and average of three number
9. Draw a flow chart for finding area and perimeter of rectangle
10. Draw a flow chart for testing given number is EVEN or ODD
11. Draw a flow chart for testing given number is PRIME or NOT
12. Differentiate top-down and bottom-up approaches.
13. Space complexity vs Time complexity?
14. Describe the structure of C program briefly?
15. Discuss about fundamental/Primitive data types in C?
16. Write about basic input and output functions in C?
17. Explain in detail about C Tokens.?
(ANS: Keywords, Identifiers, Constants, Operators, special characters, string )
18. Explain about bitwise operators in C with an example program
19. Define Operator? Explain about different operators used in C.
20. Define Constant? Explain about different constants in C.
21. Define Identifier? Write the rules for declaring an identifier?
22. What is ternary operator in C? Write a program to find biggest of three numbers using
ternary operator?
23. Discuss the role of operator precedence and operator associativity for evaluating
different expressions.
24. Describe the concept of Type Casting in C? Explain different types of type casting
techniques.

Programs:
1. Write a C Program to find area and perimeter of circle, triangle, cube, cylinder,
rectangle, square
2. Write a C Program to calculate simple and compound interest.
3. Write a C Program to convert celcius to fahrein heat and vice-versa
UNIT-II
1. Explain about different control structures in C? Briefly.
(Ans: conditional/branching/decision making statements , loop/iterative statements,
jump statements)
2. What are different Conditional/branching/decision making statements in C explain
their syntax with an example program.
(Ans: simple if, if else, nested if else, else if ladder and switch case)
3. Write the syntax and flowchart for if-else-if statement with an Example
4. How switch-case statement works in C? Write its syntax and flowchart?
5. What are multi way decision making statements in C? Explain with an example
program
(Ans: if-else-if ladder, switch-case)
6. Explain about iterative/loop statements in C?
(Ans: while, do…while, for)
7. Differentiate while and do…while with suitable example.
8. Write the syntax of for loop statement in C? Explain the working process of for loop
with an example program.
9. Define Nested loops in C? Write the syntax and flow of execution of Nested for?
10. Discuss in detail about jumping statements in C?
(Ans: break, continue, goto)
11. Differentiate entry controlled /Pre Test statements and exit controlled loop/Post test
statements in C

Programs:
1. Write a C Program to check the given number is EVEN or ODD
2. Write a C Program to check the given year is Leap Year or not
3. Write a C Program to find biggest and smallest of Three numbers
4. Write a C Program to find Electricity bill
5. Write a C Program to find roots of quadratic equation
6. Write a C Program to calculate grade of a student
7. Write a C Program to Develop a calculator using switch-case
8. Write a C Program to print given digit in a word using switch-case/ if-else-if ladder
(Hint: input 5 output five, input 7 output seven, input 23 output invalid)
9. Write a C Program to find factorial of a given number
10. Write a C Program to find multiplication table for given number
11. Write a C Program to generate numbers between two given integers
(Hint: a=5 b=13, output 5 6 7 8 9 10 11 12 13)
12. Write a C Program to generate fibanocci series
13. Write a C Program to check the given number is a fibonacci number or not
14. Write a C Program to check the given number is a Armstrong number or not
15. Write a C Program to check the given number is a palindrome or not
16. Write a C Program to generate Pallindrome number series up to given range?
17. Write a C Program to check the given number is a Prime or not
18. Write a C Program to generate Prime number series up to given range?
19. Write a C Program to check the given is a Perfect number or not
20. Write a C Program to generate Perfect number series up to given range?
21. Write a C program to print the following formats

1 1 54321 A 1
12 12 5432 AB 23
123 123 543 ABC 456
1234 1234 54 ABCD 7 8 9 10
12345 12345 5 ABCDE

You might also like