Computer Basics (C++)
Description: A Multiple Choice Test in Object Oriented based Programming Language C++ | |
Number of Questions: 25 | |
Created by: Trisha Prashad | |
Tags: C++ BBA / BBS / BCA Information Technology MCA Entrance Class Objects Data Hiding Function Overloading Function Overriding Operator Overloading Programming Fundamentals of Computer Programming Computers |
In C++, a function contained within a class is called ______.
The break statement causes an exit ______.
The && and || operators ____.
An array element is accessed using _______.
The function toascii() is declared in the header file _________.
Which of the following functions is used to input data from keyboard?
A stack is a linear data structure in which data is stored and retrieved in a _______.
A stack is a linear data structure in which data is stored and retrieved in a _____.
Which of the following statements is the terminator in C++?
The keyword 'void' is used to _____.
In C++, 'while' is a/an __________ control structure.
When a multi-dimensional array is accessed, each array index is ________.
Operator Overloading is _____.
On which of the following languages is C++ based?
Which of the following characters is known as a newline character?
What will be the output of the under given program? #include<iosteam.h> void main() { int k; cout<<”k=”<<k; }
Who developed C++?
Which of the following operators is used for modulus or remainder?
A pointer is _____.
What error would the following function give on compilation? f(int a, int b) { int a; a=20; return a; }
The 'goto statement' causes control to go to _____.
What will be the output of the given program? #include<iostream.h> void main ( ) { int a=5; cout<< ++a; }
The library function exit ( ) causes an exit from _____.
What will be the output of the given program? #include<iostream.h> void main ( ) { int a=1; for(;;) { cout<< a++; if(a>10) break; } }
What will be the output of the given program? #include<iostream.h> void main ( ) { cout<< 5+ “Hello world”; }