22POP13 Modulewise QP
22POP13 Modulewise QP
MODULE—I
1. Explain the components of computer with a neat diagram.
2. Discuss the generations of computer in detail.
3. Explain the input and output devices with three examples for each in detail.
4. Illustrate the files used in c program with a neat diagram.
5. Explain each phase in designing and implementing the efficient program
with a neat diagram
6. Define pseudocode. Write a pseudocode to find sum and average of given 3
numbers.
7. Define algorithm and flowchart. Write an algorithm to perform area of circle
and draw the flowchart for area of circle.
8. What is an identifier? What are the rules to construct identifiers? With
example.
9. Define token. Illustrate the different tokens used in C program.
10. Explain the structure of C program with example.
11. List the data types with examples.
12. Explain the coding constants with example.
13. Define a variable. Explain how it is declared, defined and initialized with
syntax and example.
14. Define program
a) Write a C program to find area of rectangle?
b) With a c program to calculate simple interest.
15. Explain printf() function with example.
16. Explain scanf() function with example.
17. What are escape sequences? List the different escape sequences and explain.
18. Write a C Program to display the ASCII value of given character
19. Write a C program to swap two numbers without using temp variable.
20. Write C Program to read and display a character using unformatted input
and output function.
MODULE –II
1. List all the operators used in C. Give examples and indicate their
precedency.
2. Define precedence and associativity.
a) Evaluate the fallowing based on precedence and associativity
i. e=(a+b-c)*d/a a=2,b=2,c=3,d=4
ii. e=(d+c)/(c+b) a=1,b=2,c=3,d=4
3. Explain the type casting with example.
4. Define expression and operator. Illustrate the following expressions with
example
i. postfix expression
ii. prefix expression
iii. expression with logical operator
iv. ternary expression
v. unary operator
vi. bitwise operators
5. write a c program to evaluate the given expressions(take a=3,b=4,c=5)
i. x=a*4+b/2-c*b;
ii. y=--a*(3+b)/2-c++*b;
6. Define the fallowing with simple example and flow chart.
a) simple if b) nested if c) if-else d)else-if-ladder
7. Demonstrate if-else statement with syntax. Write a C program to find
whether year is a leap year or not.
8. Explain the syntax of nested if-else statement. Write a C program to find
largest of 3 numbers using nested if- else statement.
9. Explain syntax of else-if ladder. With example.
10. Explain unconditional statement with example.
11. Define looping? List the different looping techniques.
12. Explain the working of while loop. Build a C program to reverse of a
number and determine whether a given number is a palindrome or not
13. Differentiate the fallowing.
a)While and do while b)else-if and switch
14. Illustrate switch statement with syntax and example
15. Explain while loop with syntax and example. Construct a c program to
compute sum of series 1+2+3+…+n using while loop).
16. Illustrate the nested for loop with syntax. Write a C program to print the
output in the following pattern, using nested for looping technique.
*****
*****
*****
*****
17. Explain the following unconditional statements with examples.
1) break
2) continue
18. Explain do-while loop with syntax and write a C program to print ‘N’ even
numbers using do-while loop.
19. Program to calculate areas of different geometrical shapes using switch
statement.
20. Design a C program to generate multiplication table using for loop.