C++ Sample paper for CGI - placement paper

C++ Sample paper for CGI - placement paper


Q. Which of the following cannot be reasonably passed on to a function

a) a variable
b) a structure
c) a constant
d) a header file

Q. In C++, to perform a stream I/O with disk files, one has to

a) use classes derived from IOS
b) use library functions of C language to read and write the data
c) open and close files as same as procedural languages
d) include IOSTREAM.H header file

Q. Find out the values of a and b for the following program?

while(3a+2b<100)
{
s=s+a;
a=a+2;
b=b-1;
}
Post your comment