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 37
Ngày làm bài: Hôm nay lúc 04:03:47 (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 one of the following options is correct?
  A - 
Friend function can access only public data members of the class.
  B - 
Friend function can access only protected data members of the class.
  C - 
Friend function can access only private data members of the class.
  D - 
All of the above.
2-
Which of the following statements is correct in C++?
  A - 
Classes cannot have data as protected members.
  B - 
Structures can have functions as members.
  C - 
Class members are public by default.
  D - 
Structure members are private by default.
3-
Which of the following statements is incorrect?
  A - 
main() cannot be declared as member function of any class.
  B - 
More than one main() can exist in the same program.
  C - 
main() can be declared as member function of any class.
  D - 
Both A and B are incorrect.
4-
Which of the following is used to make an abstract class?
  A - 
Declaring it abstract using static keyword.
  B - 
Declaring it abstract using virtual keyword.
  C - 
Making at least one member function as virtual function.
  D - 
Making at least one member function as pure virtual function.
5-
Which of the following access specifier is used as a default in a class definition?
  A - 
protected
  B - 
public
  C - 
private
  D - 
friend
6-
What is correct about the static data member of a class?
  A - 
A static member function can access only static data members of a class.
  B - 
A static data member is shared among all the object of the class.
  C - 
A static data member can be accessed directly from main().
  D - 
Both A and B.
7-
Which of the following provides a reuse mechanism?
  A - 
Abstraction
  B - 
Inheritance
  C - 
Dynamic binding
  D - 
Encapsulation
8-
Which of the following statement is correct?
  A - 
Class is an instance of object.
  B - 
Object is an instance of a class.
  C - 
Class is an instance of data type.
  D - 
Object is an instance of data type.
9-
Which of the following statement is correct?
  A - 
A constructor is called at the time of use of a class.
  B - 
A constructor is called at the time of declaration of an object.
  C - 
Transient polymorphism
  D - 
The types of arguments are different.
10-
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().
 
[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 Visual Basic - Bài 30
Trắc Nghiệm Ngôn Ngữ Lập Trình C ( English ) - Bài 06
Trắc Nghiệm Visual Basic - Bài 36
Trắc nghiệm Ngôn Ngữ Lập Trình C++ - Bài 48
Trắc Nghiệm ASP.NET (English) - Bài 10
Trắc Nghiệm ASP.NET - Bài 09
Trắc nghiệm XML - Bài 04
Trắc nghiệm Ngôn Ngữ Lập Trình C++ - Bài 01
Trắc Nghiệm Pascal - Bài 32
Trắc Nghiệm ASP.NET (English) - Bài 24
Trắc Nghiệm Ngôn Ngữ Lập Trình C ( English ) - Bài 54
Trắc nghiệm Ngôn Ngữ Lập Trình C++ - Bài 02
Trắc Nghiệm Visual Basic - Bài 42
Trắc nghiệm XML - Bài 15
Trắc Nghiệm C Sharp - Bài 12
Trắc Nghiệm Java - Bài 43
Trắc nghiệm Linux - Bài 54
Trắc nghiệm Ngôn Ngữ Lập Trình C++ - Bài 09
Trắc Nghiệm Thiết Kế Web (English) - Bài 32
Trắc nghiệm C++ - Bài 14
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