Objects and Classes

Java Programming , Objects and Classes quiz

10
Created on By 52fd849a905aedf0249df9e69d61b55a?s=32&d=mm&r=gwefru

Objects and Classes

TEST YOUR SKILLS

1 / 10

If a class contains static variable, then every object of the class has its copy of static variable.

2 / 10

Which one is not valid identifier

3 / 10

To perfor file input / output operation in C++, we must include which header file ?

4 / 10

An exceptio in C++ can be generated using which keywords.

5 / 10

Pick up the valid declaration for overloading ++ in postfix form where T is the class name.

6 / 10

Which operator is used to resolve the scope of the global variable?

7 / 10

A structure defines a ____________type.

8 / 10

A _____________is an instance of class

9 / 10

What is the output of the following program?

#include <iostream>using namespace std; int main () {   // local variable declaration:   int x = 1;   switch(x) {   case 1 :      cout << "Hi!" << endl;       break;   default :      cout << "Hello!" << endl;   }}

10 / 10

______________is a stream connected to standard output.

Your score is

The average score is 45%

0%

Leave a Reply

Your email address will not be published. Required fields are marked *