Masters of Computer Application (C++)
Description: C++ - An Objective Type Test for the Beginars Who Want to Start their Career in Object Oriented Programming Languages | |
Number of Questions: 30 | |
Created by: Chandra Bhatti | |
Tags: COMPUTER MCA Entrance Information Technology General Awareness and Computer Applications Computer Applications (New) Computer Basics Vocabulary in Context Purpose Inference Source/Identity Attitude or Tone Specific Detail Main Idea |
How many types of storage classes are there in C++?
What is the output of the following program? #include void main() { enum birds{parrot,crow,pigeon,sparrow}; birds b=pigeon; cout< }
A function may return a reference or a pointer variable also.
Which one of the following error handling functions of ios class returns true, when an input or an output operation on file has failed?
- is also called the _________.
State, if the following comment is valid or not. /* An apple /* a day keeps */ the doctor away */
Is it important to define a virtual function in a base class even though it may not be used?
When a derived class is the base class of some other class, then this type of inheritance is known as ___________.
What is the output of the following program?#include void main() { int x=7,y=6,z; z=x-- -y; cout< }
Suppose p, q, r are integer variables with value 10, 20, 30 respectively. What will be the value of the following expression? ! ((q+r)>(r-10))
What is the output of the following expression? int a=16,b= -8; cout<
What would be the output, if the input given to 'a' is Ram Krishan Verma?#include<iostream.h> void main() { char a[10]; cin.getline(a,10); cout<<a; }
The following expression evaluates to the value _____. 0 + 1 * 3 - 1 * 5
An object pointer can point to private members of a class.
Which one of the following file modes allows us to add data or to modify the existing data anywhere in the file?
What will be the output of the following program? void main() { int z[]={5,6,7,8,9,10}; int *p; p=z; cout<<*p+1; }
What is the output of the following expression? int a=16,b= -8; cout<
How many types of storage classes are there in C++?
External variable is automatically initialized to ___________.
How many times will the following statement be executed?void main() { int a; a=100; while(a>=100) { cout<< hello ; --a; } }
Which function in a stream sets the current get position?
What is the output of the following program? #include<iostream.h> void main() { enum birds{parrot,crow,pigeon,sparrow}; birds b=pigeon; cout<<b; }
What will be the output of the following program?
What is the output of the following program? void main() { int z[]={5,6,7,8,9,10}; int *p; p=z; cout<<*p+1; }
What is the output of the following program? void main() { int m=10; int *p=&m; (*p)++; cout<<(*p)++; }
What will be the output of the following program?#include<iostream.h> class sun { public: void result() { cout<< class sun ; } }; class moon { public: void result() { cout<< class moon ; } }; class stars:public sun,public moon { public: void show() { cout<< class stars ; } }; void main() { stars s; s.result(); }
What will be the output of the following program? #include<iostream.h> class sun { public: void result() { cout<< class sun ; } }; class moon { public: void result() { cout<< class moon ; } }; class stars:public sun,public moon { public: void show() { cout<< class stars ; } }; void main() { stars s; s.result(); }
Which one of the following languages is not an object oriented programming language?
By default, the members of a structure are __________.
External variable is automatically initialized to ___.