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

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

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

Class members are public by default.

TRUE

FALSE

Xem đáp án

Chọn đáp án B

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

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

TRUE

FALSE

Xem đáp án

Chọn đáp án B

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

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

TRUE

FALSE

Xem đáp án

Chọn đáp án A

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

Friendship is commutative.

TRUE

FALSE

Xem đáp án

Chọn đáp án B

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

New and delete are operators.

TRUE

FALSE

Xem đáp án

Chọn đáp án A

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

We can implement generic classes using templates

TRUE

FALSE

Xem đáp án

Chọn đáp án A

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

Using operator overloading we can invent new operators.

TRUE

FALSE

Xem đáp án

Chọn đáp án B

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

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

TRUE

FALSE

Xem đáp án

Chọn đáp án A

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

A base class is never used to create objects.

TRUE

FALSE

Xem đáp án

Chọn đáp án B

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

Classes can be inherited privately.

TRUE

FALSE

Xem đáp án

Chọn đáp án A

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

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

TRUE

FALSE

Xem đáp án

Chọn đáp án B

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

Constructors can be virtual like virtual destructors

TRUE

FALSE

Xem đáp án

Chọn đáp án B

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

C++ is a pure object oriented programming language.

TRUE

FALSE

Xem đáp án

Chọn đáp án B

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

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

TRUE

FALSE

Xem đáp án

Chọn đáp án B

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

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

TRUE

FALSE

Xem đáp án

Chọn đáp án A

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

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

TRUE

FALSE

Xem đáp án

Chọn đáp án A

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

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

TRUE

FALSE

Xem đáp án

Chọn đáp án A

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

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

TRUE

FALSE

Xem đáp án

Chọn đáp án A

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

%= is not a operator in C++

TRUE

FALSE

Xem đáp án

Chọn đáp án B

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

std::cout is a standard input stream.

TRUE

FALSE

Xem đáp án

Chọn đáp án B

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

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

TRUE

FALSE

Xem đáp án

Chọn đáp án B

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

All C++ functions are recursive.

TRUE

FALSE

Xem đáp án

Chọn đáp án A

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

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

TRUE

FALSE

Xem đáp án

Chọn đáp án B

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

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

TRUE

FALSE

Xem đáp án

Chọn đáp án B

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

The heap storage is used for local objects.

TRUE

FALSE

Xem đáp án

Chọn đáp án B