Introduction

c++ programming quiz in that you have to check yours knowledge

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

Introductions

TEST YOUR SKILLS

1 / 10

Wrapping data and its related functionality into a single entity is known as _____________

2 / 10

What does polymorphism in OOPs mean?

3 / 10

Which of the following shows multiple inheritances?

4 / 10

C++ is ______________

5 / 10

Which of the following feature of OOPs is not used in the following C++ code?

class A{    int i;    public:    void print(){cout<<"hello"<<i;}} class B: public A{    int j;    public:    void assign(int a){j = a;}}

6 / 10

What will be the output of the following C++ code?

#include <iostream>using namespace std; class A {   int a;   A() { a = 5;}}; int main(){    A *obj = new A;    cout << obj->a;}

7 / 10

Constant variables can be created in CPP by using ________ .

8 / 10

Object oriented programming employs_________ programming approach.

9 / 10

_________________are used for generic programming.

10 / 10

 In CPP, the size of the character array should be one larger than the number of characters in the string.

Your score is

The average score is 33%

0%

Leave a Reply

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