Nothing Special   »   [go: up one dir, main page]

Technical Test 03

Download as pdf or txt
Download as pdf or txt
You are on page 1of 13

Technical test 03

Technical Test

vishal.chaudhari.cs@ghrcem.raisoni.net Switch account

Draft saved

Your email will be recorded when you submit this form

* Required

Email Address *

vishal.chaudhari.cs@ghrcem.raisoni.net

College *

GHRCEM

GHRIET

Branch *

Computer

IT

Name *

Vishal Bharat Chaudhari


Roll no *

SCOB140

1. Data members and member functions of a class are private by default. 1 point

True or False?

True

False

Depends on code

None of the above

Clear selection

2. Among the following, which statement is correct about the Modularity? 2 points

Modularity means hiding the parts of the program

Modularity refers to dividing a program into subsequent small modules or


independent parts

It refers to overloading the program's part

Modularity refers to wrapping the data and its functionality into a single entity

Clear selection
3. An expression A.B in C++ means ____ 1 point

.A is member of object B

B is member of Object A

Product of A and B

None of these

Clear selection

4. Among the following, which shows the Multiple inheritances? 1 point

X,Y->Z

X->Y->Z

X->Y;X->Z

None of the above

Clear selection

5. Mangling in C++ can be stop by using? 1 point

It is not possible

It is possible only with C code

By Converting C++ code to C

By using extern "C" keyword

Clear selection
6. Dynamic cast can't be used only with pointers and references to objects 1 point

True

False

Clear selection

7. What happens if the following program is executed in C and C++? 1 point

#include <stdio.h> int main(void) { int new = 5; printf("%d", new); }

Error in C and successful execution in C++

Error in both C and C++

Error in C++ and successful execution in C

A successful run in both C and C++

Clear selection
8. What is the output of the below program? 2 points

Dcon DDest

Dcon DDest BCon BDest

BCon DCon BDes DDest

BCon DCon DDest BDest

Clear selection
9. How many times CppBuzz.com is printed? 2 points

Error

5 times

4 times

6 times

Clear selection
10. What is the output of the below program? 2 points

5020--5020--

5020--70120200--5020

5020--7012020--12020--

5020--7050200--5020--

Clear selection
11. What is the output of the below program? 2 points

10

12

Not defined

Clear selection

12. What is the output of below program? 2 points

Hi

Bye

HiBye

Compiler Error

Clear selection
13. What is the output of the below program? 2 points

XY~X~Y

X~X~YY

X~XY~Y

XY~Y~X

Clear selection

14. Polymorphism means the ability to not to take many forms 1 point

True

False

Clear selection
15. What is the output of the below program? 2 points

100

No compliation Error

Compilation Error

Clear selection
16. What is the output of the below program? 2 points

Runtime Error

Compilation Error

Nothing is printed

CppBuzz.com

Clear selection

17. Choose the option below which is not a member of class. 1 point

Friend function

Static function

Virtual function

Const function

Clear selection
18. What will be the output of the following C++ program? 2 points

Segmentation fault

“Constructor called” five times and then “Destructor called” five times

“Constructor called” five times and then “Destructor called” once

Error

Clear selection

19. What is the benefit of c++ input and output over c input and output? 1 point

Both Type safety & Exception

Sequence container

Exception

Type safety

Clear selection
20. Which of the following is not a standard exception built in C++? 1 point

std::bad_creat

std::bad_alloc

std::bad_cast

std::bad_typeid

Clear selection

Submit Clear form

Never submit passwords through Google Forms.

This form was created inside of Raisoni Group of Institutions. Report Abuse

Forms

You might also like