• ¿Documento equivocado? Cámbialo gratis
  • Escrito por estudiantes que aprobaron
  • Inmediatamente disponible después del pago
  • Leer en línea o como PDF
Vender
¿Dónde estudias?
Tu idioma
Document preview thumbnail
Vista previa 3 fuera de 25 páginas
Examen

100 TOP C++ Programming Multiple Choice Questions and Answers

Document preview thumbnail
Vista previa 3 fuera de 25 páginas

100 TOP C++ Programming Multiple Choice Questions and Answers 1. If the class name is X, what is the type of its “this” pointer (in a nonstatic, non-const member function)? a. const X* const b. X* const c. X* d. X& 2. Which classes allow primitive types to be accessed as objects? a. Storage b. Virtual c. Friend d. Wrapper

Vista previa del contenido

1/14/2017 100 TOP C++ Programming Multiple Choice Questions and Answers C++ Programming Questions and Answers




Engineering Interview Questions.com
Engineering interview questions,multiple choice questions,objective type
questions,seminor topics,lab viva questions and answers ,online quiz test
pdf free download for freshers.

HOME interview Questions MCQs *LAB VIVA CLASS NOTES
SEMINAR TOPICS ONLINE TEST GATE IIT JEE CAT


Home » C++ Programming Questions and Answers » Search

100 TOP C++ Programming Multiple Choice
Questions and Answers


100 TOP C++ Programming
Multiple Choice Questions
and Answers


Posted on November 17, 2015 by engineer 4
Comments




C++ Programming Multiple Choice
Questions and Answers :-
1. If the class name is X, what is the type of its “this”
pointer (in a nonstatic, non-const member function)?


a. const X* const

b. X* const
http://engineeringinterviewquestions.com/c-programming-multiple-choice-questions-and-answers/ 1/25

,1/14/2017 100 TOP C++ Programming Multiple Choice Questions and Answers C++ Programming Questions and Answers

c. X*

d. X&

2. Which classes allow primitive types to be accessed as
objects?


a. Storage

b. Virtual

c. Friend

d. Wrapper


3. When is std::bad_alloc exception thrown?

a. When new operator cannot allocate memory
Engineering
Questions
b. When alloc function fails
Facebook

c. When type requested for new operation is considered
bad, thisexception is thrown Find us on
d. When delete operator cannot delete the allocated Google Plus
(corrupted) object
Engineering inte

Follow
4. Which one of the following is not a fundamental data
type in C++ 430 followers



a. float

b. string

c. int


d. wchar_t

5. Which of the following is a valid destructor of the class
http://engineeringinterviewquestions.com/c-programming-multiple-choice-questions-and-answers/ 2/25

, 1/14/2017 100 TOP C++ Programming Multiple Choice Questions and Answers C++ Programming Questions and Answers

name “Country”

a. int ~Country()

b. void Country()


c. int ~Country(Country obj)

d. void ~Country()

6. Which of the following correctly describes C++
language?

a. Statically typed language


b. Dynamically typed language

c. Both Statically and dynamically typed language

d. Type-less language

7. Which of the following keyword supports dynamic
method resolution?

a. abstract


b. Virtual

c. Dynamic

d. Typeid

8. Which of the following is the most preferred way of
throwing and handling exceptions?


a. Throw by value and catch by reference.

b. Throw by reference and catch by reference.

http://engineeringinterviewquestions.com/c-programming-multiple-choice-questions-and-answers/ 3/25

Información del documento

Subido en
18 de marzo de 2024
Número de páginas
25
Escrito en
2023/2024
Tipo
Examen
Contiene
Preguntas y respuestas
$14.98

¿Documento equivocado? Cámbialo gratis Dentro de los 14 días posteriores a la compra y antes de descargarlo, puedes elegir otro documento. Puedes gastar el importe de nuevo.
Escrito por estudiantes que aprobaron
Inmediatamente disponible después del pago
Leer en línea o como PDF

Vendido
8
Seguidores
1
Artículos
20
Última venta
1 año hace



Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes