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 43
Ngày làm bài: Hôm nay lúc 02:49:02 (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-
What does the class definitions in following code represent?

  A - 
kind of relationship
  B - 
has a relationship
  C - 
Inheritance
  D - 
Both A and B
2-
Which of the following statements is correct when a class is inherited privately?
  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 private members of derived class.
  D - 
Public members of the base class become public members of derived class.
3-
Which of the following statements is correct?
  A - 
Constructor of a class cannot be private.
  B - 
Member functions of a class must be private.
  C - 
Both data and functions can be either private or public.
  D - 
Data items in a class must be private.
4-
What does a class hierarchy depict?
  A - 
It describes "kind of" relationships.
  B - 
It describes "has a" relationships.
  C - 
It shows the relationships between the classes in the form of an organization chart.
  D - 
It shows the same relationship as a family tree.
5-
Which of the following can be overloaded?
  A - 
Object
  B - 
Functions
  C - 
Operators
  D - 
Both B and C
6-
Which of the following means "The use of an object of one class in definition of another class"?
  A - 
Encapsulation
  B - 
Inheritance
  C - 
Composition
  D - 
Abstraction
7-
Which of the following is the only technical difference between structures and classes in C++?
  A - 
Member function and data are by default protected in structures but private in classes.
  B - 
Member function and data are by default private in structures but public in classes.
  C - 
Member function and data are by default public in structures but private in classes.
  D - 
Member function and data are by default public in structures but protected in classes.
8-
Which of the following statements is correct about the program given below?

  A - 
The program reports an error as pointer to member function cannot be defined outside the definition of class.
  B - 
The program reports an error as pointer to static member function cannot be defined.
  C - 
The program reports an error as pointer to member function cannot be defined without object.
  D - 
The program reports linker error.
9-
Which of the following statements are correct for a static member function?
1/ It can access only other static members of its class.
2/ It can be called using the class name, instead of objects.
  A - 
Only 1 is correct.
  B - 
Only 2 is correct.
  C - 
Both 1 and 2 are correct.
  D - 
Both 1 and 2 are incorrect.
10-
A constructor that accepts __________ parameters is called the default constructor.
  A - 
no
  B - 
two
  C - 
one
  D - 
three
 
[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 XML - Bài 08
Trắc Nghiệm ASP.NET - Bài 21
Trắc nghiệm Linux - Bài 38
Trắc Nghiệm Thiết Kế Web (English) - Bài 08
Trắc Nghiệm Pascal - Bài 34
Trắc Nghiệm ASP.NET (English) - Bài 07
Trắc nghiệm Ngôn Ngữ Lập Trình C++ - Bài 48
Trắc Nghiệm Ngôn Ngữ Lập Trình C ( English ) - Bài 04
Trắc Nghiệm Ngôn Ngữ Lập Trình C ( English ) - Bài 01
Trắc Nghiệm Ngôn Ngữ Lập Trình C - Bài 27
Trắc Nghiệm Ngôn Ngữ Lập Trình C - Bài 24
Trắc Nghiệm C Sharp - Bài 12
Trắc nghiệm Ngôn Ngữ Lập Trình C++ - Bài 32
Trắc Nghiệm C# - Bài 36
Trắc Nghiệm Ngôn Ngữ Lập Trình C ( English ) - Bài 47
Trắc nghiệm Ngôn Ngữ Lập Trình C++ - Bài 28
Trắc nghiệm PHP - Bài 02
Trắc Nghiệm Thiết Kế Web (English) - Bài 34
Trắc nghiệm Ngôn Ngữ Lập Trình C++ - Bài 41
Trắc nghiệm Ngôn Ngữ Lập Trình C++ - Bài 15
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