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 47
Ngày làm bài: Hôm nay lúc 23:55:16 (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 constructor of a derived class can access any public and protected member of the base class.
  B - 
Constructor cannot be inherited but the derived class can call them.
  C - 
A constructor of a derived class cannot access any public and protected member of the base class.
  D - 
Both A and B.
2-
Destructors __________ for automatic objects if the program terminates with a call to function exit or function abort.
  A - 
are called
  B - 
are inherited
  C - 
are not called
  D - 
are created
3-
Which of the following statements are correct?
  A - 
Constructor is always called explicitly.
  B - 
Constructor is called either implicitly or explicitly, whereas destructor is always called implicitly.
  C - 
Destructor is always called explicitly.
  D - 
Constructor and destructor functions are not called at all as they are always inline.
4-
How many times a constructor is called in the life-time of an object?
  A - 
Only once
  B - 
Twice
  C - 
Thrice
  D - 
Depends on the way of creation of object
5-
Which of the following gets called when an object is being created?
  A - 
Constructor
  B - 
Virtual function
  C - 
Destructor
  D - 
Main
6-
To ensure that every object in the array receives a destructor call, always delete memory allocated as an array with operator __________ .
  A - 
destructor
  B - 
delete
  C - 
delete[]
  D - 
kill[]
7-
Which of the following statement is correct about constructors?
  A - 
A constructor has a return type.
  B - 
A constructor cannot contain a function call.
  C - 
A constructor has no return type.
  D - 
A constructor has a void return type.
8-
Which of the following statement is correct whenever an object goes out of scope?
  A - 
The default destructor of the object is called.
  B - 
The parameterized destructor is called.
  C - 
The default constructor of the object is called.
  D - 
None of the above.
9-
Which of the following statement is correct?
  A - 
The default value for an argument cannot be function call.
  B - 
C++ allows the redefinition of a default parameter.
  C - 
C++ does not allow the redefinition of a default parameter.
  D - 
Both B and C.
10-
What happens if the base and derived class contains definition of a function with same prototype?
  A - 
Base class object will call base class function and derived class object will call derived class function.
  B - 
Only derived class function will get called irrespective of object.
  C - 
Only base class function will get called irrespective of object.
  D - 
Compiler reports an error on compilation.
 
[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 C# - Bài 34
Trắc Nghiệm C Sharp - Bài 20
Trắc Nghiệm Visual Foxpro - Bài 07
Trắc Nghiệm Thiết Kế Web - Bài 09
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 15
Trắc Nghiệm Thiết Kế Web - Bài 06
Trắc Nghiệm Ngôn Ngữ Lập Trình C - Bài 23
Trắc Nghiệm ASP.NET (English) - Bài 28
Trắc Nghiệm Java - Bài 31
Trắc Nghiệm Visual Basic - Bài 23
Trắc Nghiệm Visual Foxpro - Bài 09
Trắc nghiệm Linux - Bài 36
Trắc nghiệm C++ - Bài 10
Trắc Nghiệm Visual Foxpro - Bài 01
Trắc Nghiệm Ngôn Ngữ Lập Trình C ( English ) - Bài 84
Trắc Nghiệm C Sharp - Bài 21
Trắc Nghiệm Java - Bài 20
Trắc nghiệm Ngôn Ngữ Lập Trình C++ - Bài 12
Trắc Nghiệm Java - Bài 44
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