vietjack.com

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

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

V
VietJack
Đại họcTrắc nghiệm tổng hợp6 lượt thi
25 câu hỏi
1. Trắc nghiệm
1 điểmKhông giới hạn

Class members are public by default.

TRUE

FALSE

Xem đáp án
2. Trắc nghiệm
1 điểmKhông giới hạn

Friend functions have access only to public members of the class.

TRUE

FALSE

Xem đáp án
3. Trắc nghiệm
1 điểmKhông giới hạn

A function designed as public can be accessible by non-members of a class.

TRUE

FALSE

Xem đáp án
4. Trắc nghiệm
1 điểmKhông giới hạn

Friendship is commutative.

TRUE

FALSE

Xem đáp án
5. Trắc nghiệm
1 điểmKhông giới hạn

New and delete are operators.

TRUE

FALSE

Xem đáp án
6. Trắc nghiệm
1 điểmKhông giới hạn

We can implement generic classes using templates

TRUE

FALSE

Xem đáp án
7. Trắc nghiệm
1 điểmKhông giới hạn

Using operator overloading we can invent new operators.

TRUE

FALSE

Xem đáp án
8. Trắc nghiệm
1 điểmKhông giới hạn

Inheritance helps in making a general class into a more specific class.

TRUE

FALSE

Xem đáp án
9. Trắc nghiệm
1 điểmKhông giới hạn

A base class is never used to create objects.

TRUE

FALSE

Xem đáp án
10. Trắc nghiệm
1 điểmKhông giới hạn

Classes can be inherited privately.

TRUE

FALSE

Xem đáp án
11. Trắc nghiệm
1 điểmKhông giới hạn

It Is legal to return local variables from a function which returns by reference.

TRUE

FALSE

Xem đáp án
12. Trắc nghiệm
1 điểmKhông giới hạn

Constructors can be virtual like virtual destructors

TRUE

FALSE

Xem đáp án
13. Trắc nghiệm
1 điểmKhông giới hạn

C++ is a pure object oriented programming language.

TRUE

FALSE

Xem đáp án
14. Trắc nghiệm
1 điểmKhông giới hạn

In C++ one can define a function within another function.

TRUE

FALSE

Xem đáp án
15. Trắc nghiệm
1 điểmKhông giới hạn

A class encapsulates the implementation and interface of a user-defined data type and constitutes an abstract data type.

TRUE

FALSE

Xem đáp án
16. Trắc nghiệm
1 điểmKhông giới hạn

In c++ an identifier can begin with a $ sign.

TRUE

FALSE

Xem đáp án
17. Trắc nghiệm
1 điểmKhông giới hạn

“My Variable” is a valid identifier in C++.

TRUE

FALSE

Xem đáp án
18. Trắc nghiệm
1 điểmKhông giới hạn

In C++ one can get the memory addresses of variables and functions.

TRUE

FALSE

Xem đáp án
19. Trắc nghiệm
1 điểmKhông giới hạn

%= is not a operator in C++

TRUE

FALSE

Xem đáp án
20. Trắc nghiệm
1 điểmKhông giới hạn

std::cout is a standard input stream.

TRUE

FALSE

Xem đáp án
21. Trắc nghiệm
1 điểmKhông giới hạn

Preprocessor #define macro and inline functions use the same mechanism.

TRUE

FALSE

Xem đáp án
22. Trắc nghiệm
1 điểmKhông giới hạn

All C++ functions are recursive.

TRUE

FALSE

Xem đáp án
23. Trắc nghiệm
1 điểmKhông giới hạn

The ‘break’ keyword is only used in the switch..case statement.

TRUE

FALSE

Xem đáp án
24. Trắc nghiệm
1 điểmKhông giới hạn

The new operator returns the address and size of the memory block that it allocates.

TRUE

FALSE

Xem đáp án
25. Trắc nghiệm
1 điểmKhông giới hạn

The heap storage is used for local objects.

TRUE

FALSE

Xem đáp án
© All rights reserved VietJack