0% found this document useful (0 votes)
42 views1 page

POP Question Bank

Download as pdf or txt
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 1

POP question bank

1. What is Computer. Describe the various generations of computers?


2. Discuss basic data types used in C?
3. Explain the basic structure of a C program with an example?
4. What is an identifier (variable)? What are the rules to construct identifier (variable)?
5. Classify the following as valid/invalid Identifiers.
a. i)num2 ii) $num1 iii) +add iv) a_2 v) 199_space vi) _apple vii) #12
6. Define variable. Explain the rules for constricting variables in C language
7. Define i) variable ii) Constant iii) Associativity iv) Precedence
8. Explain the following operators in C language
i. Relational ii) Logical iii) Conditional
9. What is an expression? Evaluate the following expressions
i. 100 % 20 < = 20 – 5 + 100 % 10 – 20 = = 5 > = 1!= 20
ii. a + = b * = C - = 5 where a=3, b=5 and c=8
10. Interpret the following mathematical expression into C equivalent
i. area= s(s-a)(s-b)(s-c)
ii. x = -b + b2-4ac
11. What is an assignment statement? Give the general form of an assignment statement
12. Write a C program that reads from the user an arithmetic operator and two operands,
perform the corresponding arithmetic operation on the operands using switch
statement
13. List the Operators in c and explain in brief?
14. Explain Hybrid Computers in detail?
15. Explain the organization of basic computer model with a neat diagram.
16. Explain preprocessor directives in detail?
17. Discuss input/output Statements in detail? Define
a. getchar(), putchar(), gets(), puts(), with an example.
18. Explain formatted input and unformatted input functions with an example for each.
19. Explain Type conversions in detail?
20. Define Special operators with an example?
21. Discuss Conditional operator with an example ?
22. Explain increment and decrement operators in detail?
23. Write a program to convert a floating-point number into the corresponding integer?
24. What will be the value of X and Y after following statements are executed?
i. X=5;
ii. Y=(X++) + (++X) + (X++);
25. 25.What is the difference between | and || operator?

You might also like