C++ Model Test Paper 1 - Lecture notes C++-Overivew PDF

Title C++ Model Test Paper 1 - Lecture notes C++-Overivew
Author Juan Huertas
Course Computer Information Systems Internship
Institution Baruch College CUNY
Pages 35
File Size 517.8 KB
File Type PDF
Total Downloads 24
Total Views 144

Summary

C++-Overivew...


Description

Roll No.: -------------------------------

MCA – SECOND SEMESTER MODEL TEST PAPER-I Object Oriented Programming in C++ MCA-104

Time: 3 Hrs

Total Marks: 60

Instructions: 1. Write your class roll no at the top, immediately on receipt of this Q/Paper. 2. Attempt five questions in all including Q1 which is compulsory.

Q1:

Short answer type:

(10*2=20)

a) Justify the need of scope resolution operator. Ans:-There are two uses of the scope resolution operator in C++. The first use being that a scope resolution operator is used to unhide the global variable that might have got hidden by the local variables. Hence in order to access the hidden global variable one needs to prefix the variable name with the scope resolution operator (::). e.g. int i = 10; int main () { int i = 20; cout...


Similar Free PDFs