Home C C++ Java Python Perl PHP SQL JavaScript Linux Selenium QT Online Test

Home » C++ » Questions on typecasting in C++

Interview Questions on typecasting in C++ : (9)


Question: 1

(A) static_cast
(B) const_cast
(C) reinterpret_cast
(D) dynamic_cast

Compiler
Level: ExpertCategory: typecasting
[Posted by: | ]



Question: 2

(A) True
(B) False

Compiler
Level: PractitionerCategory: typecasting
[Posted by: | ]



Question: 3

(A) True
(B) False

Compiler
Level: PractitionerCategory: typecasting
[Posted by: | ]



Question: 4

(A) True
(B) False

Compiler
Level: PractitionerCategory: typecasting
[Posted by: | ]



Question: 5

(A) True
(B) False

Compiler
Level: PractitionerCategory: typecasting
[Posted by: | ]



Question: 6

(A) True
(B) False

Compiler
Level: PractitionerCategory: typecasting
[Posted by: | ]



Question: 7

(A) True
(B) False

Compiler
Level: PractitionerCategory: typecasting
[Posted by: | ]



Question: 8

(A) Hello Derived
(B) Hello Base
(C) Hello Derived Hello Base
(D) Hello Base Hello Derived

Compiler
Level: PractitionerCategory: typecasting
[Posted by: | ]



Question: 9

(A) Hello Derived
(B) Hello Base
(C) Hello Derived Hello Base
(D) Error: not matching func to call ‘derived::derived(cppbuzz_base&)’

Compiler
Level: PractitionerCategory: typecasting
[Posted by: | ]