Download PTU ( I.K.Gujral Punjab Technical University (IKGPTU)) Bachelor of Vocational Education (B. Voc) 2020 December 1st Sem 77170 Programming Fundamentals In C++ Previous Question Papers
Roll No.
Total No. of Pages : 02
Total No. of Questions : 18
B.Voc. (Web Technology & Multimedia) (2019 Batch) (Sem. ?1)
PROGRAMMING FUNDAMENTALS IN C++
Subject Code : BVWM-102-19
M.Code : 77170
Time : 3 Hrs. Max. Marks : 60
INST RUCT IONS T O CANDIDAT ES :
1 .
SECT ION-A is COMPULSORY cons is ting of TEN questions carrying TWO marks
each.
2 .
SECT ION-B c ontains F IVE questions c arrying FIVE marks eac h and s tud ents
have to atte mpt any FOUR q ues tions.
3 .
SECT ION-C contains THREE questions carrying T EN marks e ach and s tudents
have to atte mpt any T WO questio ns.
SECTION-A
Answer briefly :
Q1. Why C++ is called object oriented programming?
Q2. Write the syntax of writing comments in C++.
Q3. What is polymorphism?
Q4. What are public and private keywords?
Q5. What do you mean by if-else ladder?
Q6. Write a program to find the mean of 5 numbers.
Q7. What is operator overloading?
Q8. What is the advantage of switch statement over If-Else statement?
Q9. Differentiate between private and protected class members.
Q10. Discuss any two disadvantages of Multiple inheritance.
1 | M-77170
(S2)-175
SECTION-B
Q11. What are operators in C++? Explain the types of operators. How is the precedence and
associativity of operators determined?
Q12. Explain the stages of program execution in C/C++.
Q13. Write short note on parameter passing in functions.
Q14. Write a C++ program to swap two numbers with and without the use of third variable.
Q15. Write a program to check whether a number is palindrome or not?
SECTION-C
Q16. Explain the following :
a) Polymorphism in C++
b) Classes in C++
c) Data Abstraction in C++
d) Inheritance in C++
Q17. Differentiate between the following :
a) Formal and actual arguments
b) Call by value and Call by reference.
Q18. Define Classes and Objects. Explain the different method to accessing members of class
using an example.
NOTE : Disclosure of Identity by writing Mobile No. or Making of passing request on any
page of Answer Sheet will lead to UMC against the Student.
2 | M-77170
(S2)-175
This post was last modified on 15 February 2021