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

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

A
Admin
Đại họcTrắc nghiệm tổng hợp60 lượt thi
25 câu hỏi
1. Trắc nghiệm
• 1 điểm

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

0

1

4

Xem đáp án

Chọn đáp án A

2. Trắc nghiệm
• 1 điểm

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

pure virtual

static

private

Xem đáp án

Chọn đáp án A

3. Trắc nghiệm
• 1 điểm

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

new

alloc

malloc

Xem đáp án

Chọn đáp án A

4. Trắc nghiệm
• 1 điểm

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

data types, objects

data types, constant

data types, pointer

Xem đáp án

Chọn đáp án A

5. Trắc nghiệm
• 1 điểm

A ___ is a set of instance or values.

class

object

function

Xem đáp án

Chọn đáp án B

6. Trắc nghiệm
• 1 điểm

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

Steven Job, AT&T Bell Labs

Bjarne Stroustrup, AT&T Bell Labs

Guido van Rossum, M&D Lab

Xem đáp án

Chọn đáp án B

7. Trắc nghiệm
• 1 điểm

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

procedural, object oriented

object, procedural

procedural, STL

Xem đáp án

Chọn đáp án A

8. Trắc nghiệm
• 1 điểm

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

value, object

object, class

variables, functions

Xem đáp án

Chọn đáp án C

9. Trắc nghiệm
• 1 điểm

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

static

register

auto

Xem đáp án

Chọn đáp án B

10. Trắc nghiệm
• 1 điểm

New operator allocates memory blocks from the ___.

Stack

Heap

Register

Xem đáp án

Chọn đáp án B

11. Trắc nghiệm
• 1 điểm

The new operator throws a ___ when heap is exhausted.

runtime exception

syntax error

logic error

Xem đáp án

Chọn đáp án A

12. Trắc nghiệm
• 1 điểm

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

debugging

checking memory leak

library for time

Xem đáp án

Chọn đáp án A

13. Trắc nghiệm
• 1 điểm

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

automatically

manually

none of above

Xem đáp án

Chọn đáp án A

14. Trắc nghiệm
• 1 điểm

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

return type

parameter lists

none of above

Xem đáp án

Chọn đáp án B

15. Trắc nghiệm
• 1 điểm

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

static

run-time

default

Xem đáp án

Chọn đáp án C

16. Trắc nghiệm
• 1 điểm

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

dynamic

static

public

Xem đáp án

Chọn đáp án B

17. Trắc nghiệm
• 1 điểm

The two types of polymorphism is : ____ & ____ .

Run time and compile time

Preprocessor, compile time

Preprocessor, Linker

Xem đáp án

Chọn đáp án A

18. Trắc nghiệm
• 1 điểm

A file stream is an extension of a ___ stream.

console

windows

none of above

Xem đáp án

Chọn đáp án A

19. Trắc nghiệm
• 1 điểm

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

container class

time class

none of above

Xem đáp án

Chọn đáp án A

20. Trắc nghiệm
• 1 điểm

Run time polymorphism is ___ than the compile time polymorphism.

less flexible

more flexible

none of above

Xem đáp án

Chọn đáp án B

21. Trắc nghiệm
• 1 điểm

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

private

public

protected

Xem đáp án

Chọn đáp án A

22. Trắc nghiệm
• 1 điểm

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

Stack, Queue, Priority_queue

Set, Multiset, Map

vectors, lists, deques

Xem đáp án

Chọn đáp án C

23. Trắc nghiệm
• 1 điểm

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

catch

try

none of above

Xem đáp án

Chọn đáp án B

24. Trắc nghiệm
• 1 điểm

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

template parameters

keyword

none of above

Xem đáp án

Chọn đáp án A

25. Trắc nghiệm
• 1 điểm

Data items in a class may be public.

TRUE

FALSE

Xem đáp án

Chọn đáp án A

Bạn có thích hoạt động này không?

Bắt đầu ngay
Khám phá các nguồn tài nguyên miễn phí, phù hợp với tiêu chuẩn trong vài giây
Giải tích 1Giải tích 2Giải tích 3Cơ học kĩ thuậtKiến thức máy tínhNgôn ngữ lập trình CKĩ thuật đoTruyền động điệnKỹ thuật đo lườngNgắn mạch trong Hệ thống điệnToán tài chính đại cươngLý luận TDTTHóa lýHệ điều hành Unix (Linux)Kỹ thuật vi xử lýQuá trình và thiết bị chuyển khối (Hóa công 3)Quá trình và thiết bị truyền nhiệt (Hóa công 2)Phân tích thành phần lý hóa thực phẩmMáy điện IAnten và Truyền SóngCông nghệ Web và dịch vụ trực tuyếnHệ Điều hànhLuật hàng khôngLinux và phần mềm mã nguồn mởCấu tạo ô tôChế tạo phôiMáy nâng chuyểnCông nghệ khung vỏ ô tôCấu trúc máy tínhThông tin di độngThiết kế VLSIHệ thống thông tin y tếCông nghệ sản xuất giấyCông nghệ sinh học trong hoá dượcHoá dược & KT tổng hợp 1Bơm quạt máy nénKỹ thuật mạngTương tác Người – MáyPhân tích yêu cầu phần mềmQuản trị cơ sở dữ liệu phân tánNgôn ngữ mô hình hóa UMLCác kỹ thuật chuyển mạchKỹ thuật cháyCông nghệ lên men công nghiệpCông nghệ sinh học thực vậtHóa học IIQuá trình và thiết bị cơ họcKĩ thuật thủy khíKĩ thuật điện tử sốMáy điện 2Thiết bị điệnCơ sở tự động hóaCung cấp điệnHệ thống thông tin công nghiệpLý thuyết thông tinXử lý số tín hiệuCơ sở đo lường điện tửProfessional skillsNhững NLCB của CN Mác-Lênin I (Tự luận)Tư tưởng Hồ Chí Minh (Tự luận)Đường lối CM của Đảng CSVN (Tự luận)Pháp luật đại cương (Tự luận)Bơi lội (Tự luận)Đường lối quân sự của Đảng (Tự luận)Công tác quốc phòng, an ninh (Tự luận)