若上传文件的名字为userfile,则下列选项中可以用于判断上传文件类型的是()。A、$_FILES[’userfile’][’name’]B、$_FILES[’userfile’][’type’]C、$_FILES[’userfile’][’tmp_name’]D、$_FILES[’userfile’][’size’]

题目

若上传文件的名字为userfile,则下列选项中可以用于判断上传文件类型的是()。

  • A、$_FILES[’userfile’][’name’]
  • B、$_FILES[’userfile’][’type’]
  • C、$_FILES[’userfile’][’tmp_name’]
  • D、$_FILES[’userfile’][’size’]
如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

在窗体上画一个通用对话框,其名称为CommonDialog1,然后画一个命令按钮,并编写如下事件过程:

Private Sub Command1_Click()

CommonDialog1.Flags=vbOFNHideReadOnly

CommonDialog1.Filter= "All Files(*.*) |*.*|Text Files(*.*) |*.txt|" _

& Batch Files(*.bat) |*.bat"

CommonDialog1.FilterIndex=1

CommonDialog1.ShowOpen

MsgBox CommonDialog1.FileName

End Sub

程序运行后,单击命令按钮,将显示一个"打开"对话框,此时在"文件类型"框中显示的是( )。

A.All Files(*.*)

B.Text Files(*.*)

C.Batch Files(*.bat)

D.All Files(*.*) |Text Files(*.*)


正确答案:A

第2题:

请用下列适当的单词填空:

Alphabetical / sort / company / files / keep

1.It will not work on directories which have__________in them.

2.Please help me________ the files by size.

3.It's a good idea to_________ duplicate files on disk.

4.We open the files in _________order.

5.We will arrange files on all staff in our__________.


参考答案:1. files; 2.sort; 3. keep; 4. alphabetical; 5.company

第3题:

在窗体上画一个通用对话框,其名称为 CommonDialog1 ,然后画一个命令按钮,并编写如下事件过程:

Private Sub Command1_Click()

CommonDialog1.Filter="All Files(*.*)|*.*Text Files"&_

"(*.txt)|*.txt| Executable Files(*.exe)|*.exe"

CommonDialog1.Filterindex=3

CommonDialog1.Show Open

MsgBox CommonDialog1.FileName

End Sub

程序运行后,单击命令按钮,将显示一个“打开”对话框,此时在“文件类型”框中显示的是( )。 A.All Files(*.*)

B.Text files(*.txt)

C.Executable Files(*.ext)

D.不确定


正确答案:C
文件对话框的Filter属性用来指定在对话框中显示的文件类型;文件对话框的FilterInDex属性用来指定默认的过滤器,注意FilterInDex属性的最小值为1。

第4题:

在窗体上画一个通用对话框,其名称为CommonDialogl,然后画一个命令按钮,并编写如下事件过程。 Private Sub Command1_Click() CommonDialog1.Flags=vbOFNHideReadOnly CommonDialog1.Filter="All Files(*.*)|*.*|Text Files(*.txt)|*.txt CommonDialog1.FilterIndex=1 CommonDialog1.ShowOpen MsgBox CommonDialog1.FileName End Sub 程序运行后,单击命令按钮,将显示一个“打开”对话框,此时在“文件类型”框中显示的是

A.All Files(*.*)

B.Text Files(*.txt)

C.*.txt

D.All Files(*.*)|Text Files(*.*)


正确答案:A
解析:通用对话框控什的CommonDialogl的Filter属性用来指定在对话框中显示的文件类型。利用该属性可以设置多个文件类型,供用户在对话框的“文件类型”的下拉列表中选择。Filter的属性值由一对或多对文本字符串组成,每对字符串用管道符“|”隔开,在管道符“|”前面的部分称为描述,后面的部分一般为通配符和文件扩展名,称为“过滤器”。如“*.txt”等,各对字符串之间也用管道符隔开。其格式如下:[窗体.]对话框名.Filter=“描述符1|过滤器1|描述符2|过滤器2……”如果省略窗体,则为当前窗体。本题执行语句后,可以在文件类型栏内通过下拉列表选择要显示的文件类型,而最初默认显示的文件类型(过滤器)可以由FilterIndex属性来指定,该属性是一个整数。用Filter属性设置多个过滤器后,每个过滤器都有一个值,第1个过滤器的值为1,第2个过滤器的值为2……,用FilterIndex属性可以指定作为默认显示的过滤器,本题中的值是1,所以显示AllFiles(*.*)。注意:通用对话框的Filter属性是用来显示打开和保存文件类型的。注意:通用对话框的FileName属性和DilogTitle属性的作用。

第5题:

Which options must you configure while performing an automated Tablespace Point-in-Time Recovery (TSPITR) by using Recovery Manager (RMAN)?()

A. New channels for restore and recovery tasks

B. New name for the data files of the tablespace

C. Auxiliary name for the data files of the tablespace

D. Auxiliary destinations for an auxiliary set of data files


参考答案:D

第6题:

在窗体上画一个通用对话框,其名称为CommonDialog1,然后画一个命令按钮,并编写如下事件过程。

Private Sub Command1_Click()

CommonDialog1.Flags=vbOFNHideReadOnly

CommonDialog1.Filter= "All Files(*.*) |*.*|Text Files(*.txt)|*.txt

CommonDialog1.FilterIndex=1

CommonDialog1.ShowOpen

MsgBox CommonDialog1.FileName

End Sub

程序运行后,单击命令按钮,将显示一个"打开"对话框,此时在"文件类型"框中显示的是

A.All Files(*.*)

B.Text Files(*.txt)

C.Batch Files(*.bat)

D.All Files(*.*) |Text Files(*.txt)


正确答案:A
解析:通用对话框控件CommonDialog1的Filter属性用来指定在对话框中显示的文件类型。利用该属性可以设置多个文件类型,供用户在对话框"文件类型"的下拉列表中选择。Filter的属性值由一对或多对文本字符串组成,每对字符串用管道符"|"隔开,在管道符"|"前面的部分称为描述,后面的部分一般为通配符文件扩展名,称为"过滤器"。如"*.txt"等,各对字符串间也用管道符隔开。其格式如下:
[窗体.]对话框名.Filter="描述符1|过滤器1|描述符2|过滤器2厖"
如果省略窗体,则为当前窗体。本题执行语句后,可以在文件类型栏内通过下拉列表选择要显示的文件类型,而最初默认显示的文件类型(过滤器) 可以由FilterIndex属性来指定,该属性是一个整数。用Filter属性设置多个过滤器后,每个过滤器都有一个值,第一个过滤器的值为1,第二个过滤器的值为2厖,用FilterIndex属性可以指定作为默认显示的过滤器,本题中的值是1,所以显示 All Files(*.*)。

第7题:

在某32位系统中,若声明变量char* files[]={"f1 ","f2 ",”f3 ,"f4 "},则files占用内存大小为______字节。

A.4

B.8

C.12

D.16


正确答案:D
解析:本题考查编程语言方面的知识。变量files是包含4个字符型指针的数组变量,在32位系统中,一个字符型指针占用4个字节的空间,所以files共占用16个字节的内存空间。

第8题:

( 31 )在窗体上画一个通用对话框,其名称为 CommonDialog1 ,然后画一个命令按钮,并编写如下事件过程:

Private Sub Command1_Click()

CommonDialog1.Filter = "All Files (*.*)|*.*|Text Files" & _

"(*.txt)|*.txt| Executable Files(*.exe)|*.exe"

CommonDialog1.FilterIndex = 3

CommonDialog1.ShowOpen

MsgBox CommonDialog1.FileName

End Sub

程序运行后,单击命令按钮,将显示一个 “ 打开 ” 对话框,此时在 “ 文件类型 ” 框中显示的是

A ) All Files(*.*)

B ) Text Files(*.txt)

C ) Executable Files(*.exe)

D ) 不确定


正确答案:C

第9题:

You are managing the APPPROD database as a DBA which is not using the Oracle-managed files. You plan to duplicate this database in the same system with the name DUPDB.You want to create the same directory structure for duplicate database files as of the target database.You executed the following RMAN commands:What are the implications of this command?()

A. It creates database files for the duplicate database under the Oracle base with a different directory for the duplicate database.

B. It overwrites data files of the target database because a different location for data files is not mentioned for the duplicate database.

C. It creates database files for the duplicate database under the same Oracle home as that of the target database with the same directory structure.

D. It creates database files for the duplicate database under the same Oracle home as that of the target but with a different directory for the duplicate database.


参考答案:B

第10题:

在窗体上画一个通用对话框,其名称为CommonDialog1,然后画一个命令按钮,并编写如下事件过程:

Private Sub Command1_Click()

CommonDialog1.Flags=vbOFNHideReadOnly

CommonDialog1.Filter="All Files(*.*)|*.*|Text Files(*.txt)|*.txt

CommonDialog1.FiherIndex=1

CommonDialog1.ShowOpen

MsgBox CommonDialog1.FileName

End Sub

程序运行后,单击命令按钮,将显示一个“打开”对话框,此时在“文件类型”框中显示的是

A.All Files(*.*)

B.Text Files(*.*)

C.*.txt

D.All Files(*.*)|Text Files(*.*)


正确答案:A
解析:通用对话框控件的CommonDialog1的Filter属性用来指定在对话框中显示的文件类型。利用该属性可以设置多个文件类型,供用户在对话框的“文件类型”的下拉列表中选择。Filter的属性值由一对或多对文本字符串组成,每对字符串用管道符“1”隔开,在管道符“|”前面的部分称为描述,后面的部分一般为通配符和文件扩展名,称为“过滤器”。如“*.txt”等,各对字符串之间也用管道符隔开。其格式如下:
[窗体.]对话框名.Filter="描述符1|过滤器1|描述符2|过滤器2……"
如果省略窗体,则为当前窗体。本题执行语句后,可以在文件类型栏内通过下拉列表选择所要显示的文件类型,而最初默认显示的文件类型(过滤器)可以由FiherIndex属性来指定,该属性是一个整数。用Filter属性设置多个过滤器后,每个过滤器都有一个值,第1个过滤器的值为1,第2个过滤器的值为2……用FiherIndex属性可以指定作为默认显示的过滤器,本题中的值是1,所以显示All Files(*.*) 。

更多相关问题