Tạo Trắc Nghiệm

700+ câu trắc nghiệm Ngôn ngữ lập trình C có đáp án - Phần 16

25 câu · Đề ôn tập tổng hợp

Xem trước: đọc nhanh mọi câu dạng chữ, chưa tính giờ, chưa hiện đáp án.
Luyện tập: chọn đáp án là biết đúng sai ngay, kèm lời giải.
Thi thử: nộp bài mới chấm điểm và hiện lời giải.

Câu 1

The size of a class with no data members and member functions is ___ bytes

Đáp án và lời giải

Đáp án: A

Câu 2

A class is called as abstract base class if it has a ___ function

Đáp án và lời giải

Đáp án: A

Câu 3

Run-time or dynamic allocation of memory may be done using the C++ operator ___ .

Đáp án và lời giải

Đáp án: A

Câu 4

Operator overloading permits to extend the applicability of existing C++ operators so that they work with new ___ or ___.

Đáp án và lời giải

Đáp án: A

Câu 5

A ___ is a set of instance or values.

Đáp án và lời giải

Đáp án: B

Câu 6

C++ programming language was designed and developed by ___ at ___.

Đáp án và lời giải

Đáp án: B

Câu 7

C++ is a ___ programming language with ___ extensions.

Đáp án và lời giải

Đáp án: A

Câu 8

Pointers are ___ that contain the addresses of other variables and ____ .

Đáp án và lời giải

Đáp án: C

Câu 9

A program can use the address of any variable in an expression, except variables declared with the ___ storage class.

Đáp án và lời giải

Đáp án: B

Câu 10

New operator allocates memory blocks from the ___.

Đáp án và lời giải

Đáp án: B

Câu 11

The new operator throws a ___ when heap is exhausted.

Đáp án và lời giải

Đáp án: A

Câu 12

The (assert.h) header is used for ___ .

Đáp án và lời giải

Đáp án: A

Câu 13

The constructor and destructor of a class in C++ are called ___

Đáp án và lời giải

Đáp án: A

Câu 14

Two or more functions may have the same name, as long as their ___ are different.

Đáp án và lời giải

Đáp án: B

Câu 15

A constructor with default arguments for all its parameters is called a ___ constructor.

Đáp án và lời giải

Đáp án: C

Câu 16

Static member functions can access only the ___ data members of a class.

Đáp án và lời giải

Đáp án: B

Câu 17

The two types of polymorphism is : ____ & ____ .

Đáp án và lời giải

Đáp án: A

Câu 18

A file stream is an extension of a ___ stream.

Đáp án và lời giải

Đáp án: A

Câu 19

The Standard Template Library(STL) is a library of ___ templates.

Đáp án và lời giải

Đáp án: A

Câu 20

Run time polymorphism is ___ than the compile time polymorphism.

Đáp án và lời giải

Đáp án: B

Câu 21

With private inheritance, public and protected members of the base class become ___ members of the derived class.

Đáp án và lời giải

Đáp án: A

Câu 22

The STL Container adapters contains the ___ , ___ and ___ STL containers.

Đáp án và lời giải

Đáp án: C

Câu 23

The ___ block contains code that directly or indirectly might cause an exception to be thrown.

Đáp án và lời giải

Đáp án: B

Câu 24

When writing function or class template, one use a ___ to specify a generic data type.

Đáp án và lời giải

Đáp án: A

Câu 25

Data items in a class may be public.

Đáp án và lời giải

Đáp án: A