Masters of Computer Applications (C++)
Description: Free online study material for MCA Entrance Exam covers notes and and practice materials, you can get the study material of all languages like C, C++, JAVA, Information Technology | |
Number of Questions: 30 | |
Created by: | |
Tags: MCA MCA Entrance Masters in Computer Applications BCA Application Programming C C++ Java IT Information Technology Programming |
By default, which value is assigned to enumerated data type?
The program which we write in the edit window is known as ______.
In inheritance, when a protected member is inherited in public mode, it becomes ______ in the derived class.
What is the output of the following program? void main() { int z=-1; cout<<z+5<< , <<z+3<< , <<z; }
Member functions can be defined
How many types of inheritance are there?
What type of error is encountered when the following program is executed?
#include<iostream.h> void mail() { cout<< have a nice day ; }
What is the output of the following program? void main(); { int a=5,b=5; cout<<a++; cout<< -> ; cout<<++a; cout<< -> ; cout<<b++; }
The arrow operator accesses structure member via a pointer to object
What is the use of linker?
Which one of the following is a scope resolution operator?
The function 'fputs' is declared in which header file?
The function 'isascii' is declared in which header file?
Is the following definition valid? int array1={34,69};
Give output of the following int i=1,j=1; j++; if (i==11) cout<<' its eleven' ; else cout<<' its not eleven ';
How many levels of accessibility are offered by classes?
Virtual functions enable the possibility for a function to be polymorphic when it is overridden in one or more inherited classes.
Element 'myarray[4]' is which element of the array?
What is the output of the following program? #include<iostream.h> void fun(int &a,int &b) { a=a*b; b=b-a; a=a-b; } void main() { int a=6,b=30; fun(a,b); cout<<a<< , <<b; }
Which of the following is true about the static member variable?
Select wildcard characters from the following?
Which one of the following can't be used as variable name?
Which one of the following is not a de-referencing operator?
Give output of the following, if the input given is 'a'. cin>>choice; switch(choice) { case ' b' :cout<< banana ; break; case ' a' :cout<< apple ; case ' g' :cout<< grapes ; default :cout<< invalid choice ; }
The operator << is called the ______________.
What is the output of the following program? #include<iostream.h> static int j=10; void value() { static int j=40; cout<< now= <<j<< , ; } void value() { static int j=5; value(); cout<< next= <<j; }
Which one of the following operators can't be overloaded?
Which one of the following statements is incorrect about friend functions?
Which one of the following is a default constructor? A. class star { private: int a; public: star(int a) { a=0; } }
B. class star { private: int a; public: star() { a=0; } } C. class star { private: int a,b; public: star(int a,int b) { a=0; b=0; } }
Justify: cout<<++x; cout<< , ; cout<<++y; cout<< , ; cout<<- x; cout<< , ; cout<<y++; }