Tìm kiếm:
TRANG NHÀ
Giới thiệu VNEDU.ORG
Điều khoản và bản quyền
Liên lạc VNEDU
TRẮC NGHIỆM TRỰC TUYẾN
---Công Cụ:---
Soạn Biểu thức
Bảng màu HTML
Ký hiệu đặc biệt 01
Ký hiệu đặc biệt 02
Ký hiệu đặc biệt 03
Ký hiệu đặc biệt 04
Ký hiệu đặc biệt 05
Ký hiệu đặc biệt 06
Ký hiệu đặc biệt 07
Ký hiệu đặc biệt [Toán]
Tin Học   ||  Căn Bản    Văn Phòng    Hệ Thống - Mạng    Phần Mềm Ứng Dụng    Kỹ thuật số    Lập trình    SQL  

Trắc nghiệm Ngôn Ngữ Lập Trình C++ - Bài 41
Ngày làm bài: Hôm nay lúc 02:07:04 (Server time)
Số câu hỏi: 10.   Tổng điểm: 10
Yêu cầu hoàn thành: 60 phút.
Thời gian còn lại: 
Cỡ chữ câu hỏi:  Cỡ chữ đáp án:


1-
Which of the following statement is correct?
  A - 
A reference is a constant pointer.
  B - 
A reference is not a constant pointer.
  C - 
An array of references is acceptable.
  D - 
It is possible to create a reference to a reference.
2-
Which of the following statement is correct?
  A - 
A reference is declared using * operator.
  B - 
Once a reference variable has been defined to refer to a particular variable it can refer to any other variable.
  C - 
A reference must always be initialized within classes.
  D - 
A variable can have multiple references.
3-
Which of the following statement is correct?
  A - 
An array of references is acceptable.
  B - 
Once a reference variable has been defined to refer to a particular variable it can refer to any other variable.
  C - 
An array of references is not acceptable.
  D - 
Reference is like a structure.
4-
Which of the following statements is correct?
1/ Pointer to a reference and reference to a pointer both are valid.
2/ When we use reference, we are actually referring to a referent.
  A - 
Only 1 is correct.
  B - 
Only 2 is correct.
  C - 
Both 1 and 2 are correct.
  D - 
Both 1 and 2 are incorrect.
5-
Which of the following statements is incorrect?
  A - 
Friend keyword can be used in the class to allow access to another class.
  B - 
Friend keyword can be used for a function in the public section of a class.
  C - 
Friend keyword can be used for a function in the private section of a class.
  D - 
Friend keyword can be used on main().
6-
Which of the following statement is correct regarding destructor of base class?
  A - 
Destructor of base class should always be static.
  B - 
Destructor of base class should always be virtual.
  C - 
Destructor of base class should not be virtual.
  D - 
Destructor of base class should always be private.
7-
Which of the following two entities (reading from Left to Right) can be connected by the dot operator?
  A - 
A class member and a class object.
  B - 
A class object and a class.
  C - 
A class and a member of that class.
  D - 
A class object and a member of that class.
8-
How can we make a class abstract?
  A - 
By making all member functions constant.
  B - 
By making at least one member function as pure virtual function.
  C - 
By declaring it abstract using the static keyword.
  D - 
By declaring it abstract using the virtual keyword.
9-
Which of the following statements is correct when a class is inherited publicly?
  A - 
Public members of the base class become protected members of derived class.
  B - 
Public members of the base class become private members of derived class.
  C - 
Private members of the base class become protected members of derived class.
  D - 
Public members of the base class become public members of derived class.
10-
What happens when we try to compile the class definition in following code snippet?

  A - 
It will not compile because class body of Birds is not defined.
  B - 
It will not compile because class body of Eagle is not defined.
  C - 
It will not compile because a class cannot be protectedly inherited from other class.
  D - 
It will compile succesfully.
 
[Người đăng: Thành Lãm - ST]
Ghé thăm Kênh của Vị Sư "hai lần chết đi sống lại"
Tu Si Chau Soc Thon

https://www.youtube.com/channel/UCoyC9WTTVR-M3qpTKKEXGnQ

Chau Soc Thon Official Channel


Phong Bảo Official
Phong Bao Official
Xem Nhiều nhất
Trắc Nghiệm Pascal - Bài 20
Trắc Nghiệm ASP.NET - Bài 12
Trắc Nghiệm Ngôn Ngữ Lập Trình C - Bài 16
Trắc Nghiệm ASP.NET - Bài 01
Trắc Nghiệm ASP.NET - Bài 03
Trắc nghiệm C++ - Bài 18
Trắc Nghiệm C# - Bài 53
Trắc Nghiệm ASP.NET - Bài 02
Trắc Nghiệm C# - Bài 42
Trắc Nghiệm Java - Bài 01
Trắc Nghiệm ASP.NET - Bài 04
Trắc Nghiệm Pascal - Bài 22
Trắc Nghiệm ASP.NET - Bài 13
Trắc Nghiệm ASP.NET - Bài 09
Trắc Nghiệm ASP.NET - Bài 08
Trắc nghiệm PHP - Bài 01
Trắc Nghiệm ASP.NET - Bài 06
Trắc Nghiệm ASP.NET - Bài 11
Trắc Nghiệm ASP.NET - Bài 05
Trắc Nghiệm ASP.NET - Bài 23
Đề Xuất
Trắc Nghiệm Ngôn Ngữ Lập Trình C ( English ) - Bài 45
Trắc Nghiệm C# - Bài 37
Trắc Nghiệm Ngôn Ngữ Lập Trình C ( English ) - Bài 70
Trắc Nghiệm Ngôn Ngữ Lập Trình C ( English ) - Bài 46
Trắc Nghiệm Ngôn Ngữ Lập Trình C ( English ) - Bài 75
Trắc nghiệm XML - Bài 02
Trắc nghiệm Ngôn Ngữ Lập Trình C++ - Bài 12
Trắc Nghiệm Ngôn Ngữ Lập Trình C - Bài 11
Trắc Nghiệm Thiết Kế Web Và Flash - Bài 32
Trắc Nghiệm Ngôn Ngữ Lập Trình C ( English ) - Bài 87
Trắc nghiệm Ngôn Ngữ Lập Trình C++ - Bài 31
Trắc Nghiệm Java - Bài 26
Trắc Nghiệm C Sharp - Bài 10
Trắc Nghiệm C# - Bài 48
Trắc Nghiệm Thiết Kế Web (English) - Bài 02
Trắc Nghiệm Ngôn Ngữ Lập Trình C ( English ) - Bài 78
Trắc Nghiệm Ngôn Ngữ Lập Trình C - Bài 03
Trắc Nghiệm Ngôn Ngữ Lập Trình C ( English ) - Bài 14
Trắc Nghiệm ASP.NET - Bài 18
Trắc Nghiệm Ngôn Ngữ Lập Trình C ( English ) - Bài 37
Phát triển hệ thống: TRƯƠNG HỮU ĐỨC - Phiên bản 3.0 - © Copyright 2013 - 2024 - VNEDU.ORG

free counters