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: 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: | ]
C++ Online Test
Compile C++ code here
Browse C++ Categories
Loops Conditional Functions Operators Structure Enum Data Types Inheritance Pointers Classes & Objects Vtable Type Casting New & Delete Namespaces Virtual Functions Abstract Class STL Singleton Class Exceptions C++11 C++17 C++20 Time & Space Complexity othersSwitch to C Questions