C++
Description: C++ Programming Language Concepts for for MCA Entrance and Information Technology Placement Papers | |
Number of Questions: 25 | |
Created by: Prabha Kade | |
Tags: Computer Information Technology Placement Papers C++ Programming Language Concepts MCA Entrance C++ Basic Concepts C Basic Concepts Programming Fundamentals of Computer Programming Computer Basics |
A function can also return an object.
Inline functions make a program run faster because the overhead of a function call & return is eliminated.
State whether the following function declaration with default values is valid or not? int sum (int a=10,int b);
Which one of the following is a user defined data type?
A protected member inherited in a public mode becomes _____________.
Which one of the following statements is incorrect about static member functions?
The size of operator is a __________ operator.
Given the following definition: int i=10; int *p; Which of the following assignments is invalid?
An object is a self-contained abstraction of an item.
What will be the output for the following? #include<iostream.h> { int x[6]={62,45,7,10,82,90}; cout<<*x; }
There are certain rules that must be followed during function calls, which are listed below. Read them carefully & find out which one of them is incorrect.
The variables which are associated with function name during function call are called _________.
Name the header file which is needed for the functions like read() and open()?
What will be the output for the following? int i=2; if(i) cout<<i++; else cout<< --i;
Polymorphism means a function with one name & many forms.
Destructors has the same name as that of a class, but with a prefix ' ~'.
Till the array elements are not given any specific values, they are supposed to contain garbage values.
What will be the output for the following? enum color{pink,yellow,blue,black}; #include<iostream.h> void main() { cout<<blue; cout<<black; }
Array elements are always stored in contiguous memory locations.
Give the output for the following: #include int g=10; void fun(int &x,int y) { x=x-y; y=x*10; cout<<x<<,<<y; } void main() { int g=5; fun(::g,g); }
Consider the following program & name the base class & the derived class. #include class A { int a; public: void getdata(); void putdata(); }; class B { int b; public: void cal(); }; class C: public A,B { public: void show(); };
The closing braces of structure are followed by a __________.
How many values can be returned by a function?
C++ allows us to declare a variable anywhere in the program.