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 38
Ngày làm bài: Hôm nay lúc 07:45: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-
Which of the following function prototype is perfectly acceptable?
  A - 
int Function(int Tmp = Show());
  B - 
float Function(int Tmp = Show(int, float));
  C - 
Both A and B.
  D - 
float = Show(int, float) Function(Tmp);
2-
Which of the following statement is correct?
  A - 
C++ enables to define functions that take constants as an argument.
  B - 
We cannot change the argument of the function that that are declared as constant.
  C - 
Both A and B.
  D - 
We cannot use the constant while defining the function.
3-
Which of the following statement is correct?
  A - 
Overloaded functions can have at most one default argument.
  B - 
An overloaded function cannot have default argument.
  C - 
All arguments of an overloaded function can be default.
  D - 
A function if overloaded more than once cannot have default argument.
4-
Which of the following statement is correct?
  A - 
Two functions having same number of argument, order and type of argument can be overloaded if both functions do not have any default argument.
  B - 
Overloaded function must have default arguments.
  C - 
Overloaded function must have default arguments starting from the left of argument list.
  D - 
A function can be overloaded more than once.
5-
Which of the following statement will be correct if the function has three arguments passed to it?
  A - 
The trailing argument will be the default argument.
  B - 
The first argument will be the default argument.
  C - 
The middle argument will be the default argument.
  D - 
All the argument will be the default argument.
6-
Which of the following statement is incorrect?
  A - 
Default arguments can be provided for pointers to functions.
  B - 
A function can have all its arguments as default.
  C - 
Default argument cannot be provided for pointers to functions.
  D - 
A default argument cannot be redefined in later declaration.
7-
Which of the following statement is correct?
  A - 
Constructors can have default parameters.
  B - 
Constructors cannot have default parameters.
  C - 
Constructors cannot have more than one default parameter.
  D - 
Constructors can have at most five default parameters.
8-
Which of the following function / type of function cannot be overloaded?
  A - 
Member function
  B - 
Static function
  C - 
Virtual function
  D - 
Both B and C
9-
Which of the following function declaration is/are incorrect?
  A - 
int Sum(int a, int b = 2, int c = 3);
  B - 
int Sum(int a = 0, int b, int c = 3);
  C - 
int Sum(int a = 5, int b);
  D - 
All are correct.
10-
Which of the following statement is incorrect?
  A - 
Compiler uses the prototype information to build a call, not the function definition.
  B - 
The default arguments are given in the function prototype and should be repeated in the function definition.
  C - 
The default arguments are given in the function prototype.
  D - 
The default value for an argument can be a global constant.
 
[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 27
Trắc Nghiệm Java - Bài 32
Trắc nghiệm Linux - Bài 65
Trắc nghiệm Linux - Bài 35
Trắc Nghiệm C Sharp - Bài 07
Trắc nghiệm Ngôn Ngữ Lập Trình C++ - Bài 16
Trắc nghiệm Linux ( English ) - Bài 28
Trắc Nghiệm Visual Basic - Bài 22
Trắc Nghiệm Visual Basic - Bài 39
Trắc Nghiệm Java - Bài 43
Trắc Nghiệm Java - Bài 18
Trắc Nghiệm Java - Bài 14
Trắc nghiệm Linux - Bài 51
Trắc Nghiệm Ngôn Ngữ Lập Trình C ( English ) - Bài 19
Trắc Nghiệm ASP.NET (English) - Bài 17
Trắc Nghiệm Thiết Kế Web - Bài 07
Trắc Nghiệm Pascal - Bài 04
Trắc nghiệm Ngôn Ngữ Lập Trình C++ - Bài 37
Trắc Nghiệm Visual Foxpro - Bài 01
Trắc Nghiệm Ngôn Ngữ Lập Trình C ( English ) - Bài 75
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