C++
Description: Practice questions for IT companies | |
Number of Questions: 25 | |
Created by: Prabha Kade | |
Tags: STL Templates Array Classes IT Companies Computer Basics |
Which of the following data structures is not implemented by STL (Standard Template Library)?
What is the notation of scope resolution operator?
Which of the following is involved in implementation of the concept of generic programming?
The member function can be defined outside class using
Which of the following is not an unary operator?
POD is used to describe
What is the name of the term given to derived data type in which all data elements share the same location in memory?
What is the name of the non-member function that can access all the private and protected members of a class?
In C++, what are the names given to the functions which are not actually called rather their codes are substitued every time they are invoked?
When we are making all data members of class private, which property of OOP are we using?
What is the size of a far pointer?
What is the output of the following code snippet?
#include <iostream>
using namespace std;
int main ()
{
int numbers[5];
int * p; p = numbers; *p = 10; p++; *p = 20;
p = &numbers[2]; *p = 30;
p = numbers + 3; *p = 40;
p = numbers; *(p+4) = 50;
for (int n=0; n<5; n++) cout << numbers[n] << , ;
return 0;
}
Which of the following statements about abstract class is false?
Which of the following is not a built-in stream in C++?
Which of the following is not a type of iterator?
Identify the problem with the following function declaration.
int sum(int a = 0,int b);
Which language has exercised the greatest influence in the development of C++?
What is the output of the following C code?
#include<stdio.h> int main() { short int i=0; for(i;++i;i>=99) printf(%d,i); return 0; }
What is the output of the following C++ code?
#include <iostream> using namespace std; int main() { cout.setf(ios::hex,ios::basefield); cout<<100; return 0; }
Which of the following cast operators is used to override volatile attribute of variable?
Which of the following keywords is not defined in C++?
What is the output of the following C code?
#include<stdio.h> int main() { int i=0; for(;i++;printf(%d,i)); printf(%d,i); return 0; }
What is the output of the following C++ code?
#include <stdio.h>
int main()
{
int a,b;
a = (b=2,b+3);
printf(%d,a);
return 0;
}
Which of the following is not a reserved word in Standard C++?
What is the output of the following C++ code?
#include <iostream> using namespace std; int main () { int a; for (a = 1; a <= 1; a++) cout << a++; cout<< <<a; return 0; }