Quizne

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

Đề gồm 25 câu trắc nghiệm một lựa chọn môn Ngôn ngữ lập trình C; cả 25 câu đều có đáp án. Chọn Luyện tập để biết đúng sai từng câu, hoặc Thi thử có đồng hồ để lấy điểm thang 10.

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

Bảng đáp án (25 câu)
  1. 1. A
  2. 2. A
  3. 3. A
  4. 4. A
  5. 5. B
  6. 6. B
  7. 7. A
  8. 8. C
  9. 9. B
  10. 10. B
  11. 11. A
  12. 12. A
  13. 13. A
  14. 14. B
  15. 15. C
  16. 16. B
  17. 17. A
  18. 18. A
  19. 19. A
  20. 20. B
  21. 21. A
  22. 22. C
  23. 23. B
  24. 24. A
  25. 25. A