如果你想要自动加载类,下面哪种函数声明是正确的?()A、function autoload($class_name)B、function__autoload($class_name,$file)C、function__autoload($class_name)D、function_autoload($class_name)E、function autoload($class_name,$file)

题目

如果你想要自动加载类,下面哪种函数声明是正确的?()

  • A、function autoload($class_name)
  • B、function__autoload($class_name,$file)
  • C、function__autoload($class_name)
  • D、function_autoload($class_name)
  • E、function autoload($class_name,$file)
参考答案和解析
正确答案:C
如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

下列函数原型声明中,错误的是

A.int function(int m,int n);

B.int function(int,int);

C.int function(int m=3,int n);

D.int function(int&m,int&n);


正确答案:C
解析:在函数原型中指定默认参数值时,如果函数中有多个参数,则默认参数应从右至左定义,否则就是无效的,故本题选C。

第2题:

以下PHP常量中,属于魔术常量的有()。

A.__FILE__

B.__ROOT__

C.__LINE__

D.__FUNCTION__


参考答案:A, C, D

第3题:

Which function is used to lock a file in FoxPro DBMS?

A.FLOCK( )

B.RLOCK( )

C.LOCK( )

D.LOCK


正确答案:A

第4题:

要在代码编辑器的“通用/声明”段部分定义私有Function函数,则正确的是()。

A. Public Sub

B. Public Function

C. Private Sub

D. Private Function


正确答案:D

第5题:

Which of the following server types performs the same function as the HOSTS file?()

A. FTP

B. DHCP

C. DNS

D. WINS


参考答案:C

第6题:

设有以下函数过程

Private Function Fun(a()As Integer,b As String)As Integer

Ehd Function

若已有变量声明:

Dim x(5)As Integer,n As Integer,ch As String

则下面正确的过程凋用语句是

A.x(0)=Fun(x,“ch”)

B.n=Fun(n,ch)

C.Call Fun x,“ch”

D.n=Fun(x(5),ch)


正确答案:A

第7题:

哪个方法可以实现PHP中类的自动加载功能?()

A.implements

B.extends

C.__autoload()

D.interfaces


参考答案:C

第8题:

YoucreateaWebpagethatcontainsthefollowingcode.Youneedtoprovidethefollowingimplementation.EachtimetheAddFilebuttonisclicked,anewdivelementiscreated.ThenewdivelementisappendedaftertheotherfileuploaddivelementsandbeforetheAddFilespan.Eachnewelementhasauniqueidentifier.Whichcodesegmentshouldyouuse?()

A.$("#AddFile").click(function(){varid="File"+++lastId;varitem=$(".File:first").clone(true);$("input:file",item).attr({id:id,name:id});item.insertBefore("#AddFile");});

B.$("#AddFile").click(function(){varid="File"+++lastId;$(".File:first").clone(true).attr({id:id,name:id}).insertBefore("#AddFile");});

C.$("#AddFile").click(function(){varid="File"+++lastId;});

D.$("#AddFile").click(function(){varid="File"+++lastId;varitem=$(".File:first").clone(true);$("input:file",item).attr({id:id,name:id});item.insertAfter("input[type=file]");});


参考答案:A

第9题:

设A是一个类的类名,下面函数的参数的引用形式是( )。

A.function(A &p)

B.function(A p)

C.function(A *p)

D.function(constA)


正确答案:A
解析:重载的语法。

第10题:

要在代码编辑器的“通用/声明”段部分定义私有Function函数,则正确的是()。D

A. Public Sub

B. Public Function

C. Private Sub

D. Private Function


正确答案:D

更多相关问题