PPL QB Int 24-25
PPL QB Int 24-25
Paper pattern:
Total marks: 20
{
F(1);
return 0;
F(int n)
{
printf (n);
if(n<=100)
F(3Xn-1);
printf(n);
}
Hint: See the Tracing below:
Fig. 2.26
11. Using all 4 types of scope rules try to find output for following code,
n : integer – – global declaration
procedure first
n := 14.
procedure second
n : integer – – local declaration
first()
n := 28.
if read integer() > 0
second()
else
first()
write integer(n)
12. Explain issues for initialization and finalization.
13. Explain inheritance and its types .Explain multiple inheritance with implementation.
14. Explain actual parameters, formal parameters and keyword parameters.
15. Differentiate between replicated and shared inheritance with proper example.
16. Explain malloc and calloc with example.
17. Write a short note on: (i) Encapsulation, (ii) Polymorphism.
18. What is dangling pointer? What is the solution to dangling pointer problem? Explain in
detail.
19. What is heap management? How it is done?
20. Explain the Discriminated versus free unions.Explain difference between structure and
union.
21. Explain character string length options in details.
22. What is array slice? Explain Design issues of arrays. Explain the different array types.
23. What are the different Primitive data Types?
24. What are the different non-Primitive data Types?
25. Define precedence, associativity, orthogonality.