Professional Documents
Culture Documents
PB 11 CS
PB 11 CS
12. Which of the following is not an invariant of the assignment m, n := m+2, n+3
a. m mod 2 b. n mod 3 c. 3xm - 2xn d. 2xm - 3 x n
13. What is the return type of function prototype add(int, int)?
a. void b. int c. char d. undefined
14. The term used to describe a programming approach based on class and object
a. procedural approacch b. user defined approach c. OOP d. PLP
15. The variables declared inside the class are known as
a. data types b. prototypes c. fields d.. attributes
II. Answer any 6. Q No 24 is compulsory. 6x2=12
16. Expand i. CPS ii. PPM
17. What is overload resolution? Give an example.
18. Can we find 1’s complement for 10010? Justify with reason
19. List the key features of operating system.
20. Distinguish algorithm and process.
21. What is a reference variable? What is it’s use?
22. Write about strlen()
23. What is a base class?
24. List the different parts of real constants in exponential form with example
III . Answer any 6. Q.No. 33 is compulsory. 6x3=18
25. Write a note on ISCII
26. Give an example for outline definition for a member function.
27. What are qualifiers? List its types.
28. What information a prototype provides to the compiler?
29. What parameters influence the characteristics of a microprocessor?
30. Write the specification of an algorithm to compute minimum of two numbers.
31. What is the difference between keyword and identifier?
32. What is operator overloading? List the operators that can be overloaded.
33. Identify output(1) and the rule(2) applied in getting the output
#include <iostream>
using namespace std;
int main()
{
int a=6;
float b=3.14;
cout << a+b;
}
IV. Answer in detail 5x5=25
34 a. Explain the different types of gates with their TT
(or)
34 b. Explain the concept of distributed operating system.
35 a. Explain the different versions of windows.
(or)
35 b. Write an algorithm and trace the step by step execution of it to compute factorial(3)
36 a. What are the types of errors in C++?
(or)
36 b. Explain any 5 built-in functions under ctype.
37 a. Write a note on basic concepts that support OOPS.
(or)
37 b. What are the restrictions on operator overloading? What operators cannot be
overloaded?
38 a. Explain the different types of inheritance in detail
(or)
38 b. What is piracy? Mention its types. How can it be prevented?