niusouti.com

如果目标文件存在,下面()语句建立的TextStream对象可以读取文件。A、Set tsm=fso.OpenTextFile("C:///inetpub/wwwroot/asptemp/chapter10/test.txt",1,True)B、Set tsm=fso.OpenTextFile("C:///inetpub/wwwroot/asptemp/chapter10/test.txt",1)C、Set tsm=fso.OpenTextFile("C:///inetpub/wwwroot/asptem

题目

如果目标文件存在,下面()语句建立的TextStream对象可以读取文件。

  • A、Set tsm=fso.OpenTextFile("C:///inetpub/wwwroot/asptemp/chapter10/test.txt",1,True)
  • B、Set tsm=fso.OpenTextFile("C:///inetpub/wwwroot/asptemp/chapter10/test.txt",1)
  • C、Set tsm=fso.OpenTextFile("C:///inetpub/wwwroot/asptemp/chapter10/test.txt")
  • D、Set tsm=fso.OpenTextFile("C:///inetpub/wwwroot/asptemp/chapter10/test.txt",,True)

相似考题
更多“如果目标文件存在,下面()语句建立的TextStream对象可以读取文件。A、Set tsm=fso.OpenTextFile("C:///inetpub/wwwroot/asptemp/chapter10/test.txt",1,True)B、Set tsm=fso.OpenTextFile("C:///inetpub/wwwroot/asptemp/chapter10/test.txt",1)C、Set tsm=fso.OpenTextFile("C:///inetpub/wwwroot/asptem”相关问题
  • 第1题:

    如果在chapter1下建立了一个子文件夹images,并且在其中放置了一个图片文件1.jpg,那么以下URL正确的是()。

    • A、http://localhost/asptemp/chapter1/images/1.jpg
    • B、http://127.0.0.1/asptemp/chapter1/images/1.jpg
    • C、http://localhost/inetpub/wwwroot/asptemp/chapter1/images/1.jpg
    • D、http://127.0.0.1/inetpub/wwwroot/asptemp/chapter1/images/1.jpg

    正确答案:A,B

  • 第2题:

    如果目标文件不存在,下面()语句能够自动建立文件。

    • A、Set tsm=fso.OpenTextFile("C:///inetpub/wwwroot/asptemp/chapter10/test.txt",1,True)
    • B、Set tsm=fso.OpenTextFile("C:///inetpub/wwwroot/asptemp/chapter10/test.txt",2,True)
    • C、Set tsm=fso.OpenTextFile("C:///inetpub/wwwroot/asptemp/chapter10/test.txt",8,False)
    • D、Set tsm=fso.OpenTextFile("C:///inetpub/wwwroot/asptemp/chapter10/test.txt",1,False)

    正确答案:A

  • 第3题:

    下面哪一个是正确格式的URL?()

    • A、//ServerA/Sharedfiles
    • B、http://www.scut.edu.cn/index.html
    • C、10.1.34
    • D、C:///inetPub/wwwroot/index.html

    正确答案:B

  • 第4题:

    填写适当的内容,以便在当前目录中创建一个名为“test.txt”的文本文件。  <%Dim fso , F  ’创建FSO对象实例  Set  fso = Server.CreateObject()  ’创建文件并返回textStream对象  Set  F = fso.CreateTextFile(Server.MapPath("./test.txt") ); F.() "Hello"  ’向文件中写入字符串后换行  F.()   ’向文件中输出1个空行  F.()  ’关闭 TextStream对象  %>


    正确答案:Scripting.FileSystemObject;WriteLine;WriteBlankLine(1);Close

  • 第5题:

    假设C:///Inetpub/wwwroot目录被设置为服务器的宿主目录,以下脚本的输出为()。

    • A、C:///Inetpub/wwwroot/asp/data.txt
    • B、C:///Inetpub/wwwroot/asp/asp/data.txt
    • C、C:///Inetpub/wwwroot/data.txt
    • D、系统报错

    正确答案:D

  • 第6题:

    Driver:/inetpuB/wwwroot是IIS服务器的()目录。

    • A、虚拟
    • B、子
    • C、其他选项都不对
    • D、默认

    正确答案:A

  • 第7题:

    在下划线上填写适当的内容,以便向当前目录中的文本文件“test.txt”中写入数据  <%  Dim fso , f , rc  rc = ()("txtContent")  ’接收表单提交的文本数据  ’创建FSO对象实例  Set  fso = ()("Scripting.FileSystemObject")    ’创建文件并返回textStream对象,以覆盖方式打开文件  Set  f = fso. CreateTextFile   (Server.MapPath("./test.txt"),true)     ’向文件中写入数据  f. WriteLine  rc&"()"    f. Close    ’关闭文件流对象 %>


    正确答案:Request.Form;Server.CreateObject;

  • 第8题:

    单选题
    在IIS中,系统所选择的默认WEB发布主目录是()。
    A

    C:///Intpub/wwwroot

    B

    D:///Intpub/wwwroot

    C

    C:///Inetpub/wwwroot

    D

    D:///Intepub/wwwroot


    正确答案: A
    解析: 暂无解析

  • 第9题:

    单选题
    IIS默认的主目录路径是()。
    A

    %SysemDrive%/wwwroot

    B

    %SysemDrive%/

    C

    %SysemDrive%/wwwroot/inetpub

    D

    %SysemDrive%/inetpub/wwwroot


    正确答案: A
    解析: 暂无解析

  • 第10题:

    单选题
    假设C:///Inetpub/wwwroot目录被设置为服务器的宿主目录,以下脚本的输出为()。
    A

    C:///Inetpub/wwwroot/asp/data.txt

    B

    C:///Inetpub/wwwroot/asp/asp/data.txt

    C

    C:///Inetpub/wwwroot/data.txt

    D

    系统报错


    正确答案: D
    解析: 暂无解析

  • 第11题:

    单选题
    如果目标文件不存在,下面()语句能够自动建立文件。
    A

    Set tsm=fso.OpenTextFile(C:///inetpub/wwwroot/asptemp/chapter10/test.txt,1,True)

    B

    Set tsm=fso.OpenTextFile(C:///inetpub/wwwroot/asptemp/chapter10/test.txt,2,True)

    C

    Set tsm=fso.OpenTextFile(C:///inetpub/wwwroot/asptemp/chapter10/test.txt,8,False)

    D

    Set tsm=fso.OpenTextFile(C:///inetpub/wwwroot/asptemp/chapter10/test.txt,1,False)


    正确答案: D
    解析: 暂无解析

  • 第12题:

    单选题
    下面哪一个是正确格式的URL?()
    A

    //ServerA/Sharedfiles

    B

    http://www.scut.edu.cn/index.html

    C

    10.1.34

    D

    C:///inetPub/wwwroot/index.html


    正确答案: D
    解析: 暂无解析

  • 第13题:

    如果要返回应用程序根目录的物理路径,那么MapPath方法的参数可以是()。

    • A、"/"
    • B、"/"
    • C、"."
    • D、"C:///Inetpub/wwwroot"

    正确答案:A,B

  • 第14题:

    某同学开发了一个显示来访时间的ASP文件,存放在C:///inetpub/wwwroot下,然后在Windows资源管理器中双击该文件,却不能正常显示,请问是什么原因?


    正确答案:ASP文件是不能直接双击运行的,必须通过浏览器访问,由服务器端来解释执行为标准的HTML代码,然后才可以显示在浏览器中。

  • 第15题:

    在C盘上安装Windows Server 2003的IIS后,默认网站缺省主目录路径为()

    • A、C:///Inetpub/wwwroot
    • B、C:///Winnt/Inetpub/ftproot
    • C、C:///Inetpub/ftproot
    • D、C:///Winnt/Inetpub/wwwroot

    正确答案:A

  • 第16题:

    配置IIS时,设置站点的主目录的位置,下面说法错误的是()。

    • A、只能在本机的c:/inetpub/wwwroot文件夹
    • B、只能在本机操作系统所在磁盘的文件夹
    • C、只能在本机非操作系统所在磁盘的文件夹
    • D、在本机任意位置都可以

    正确答案:A,B,C

  • 第17题:

    配置IIS时,设置站点的主目录的位置,下面说法正确的是()。

    • A、 只能在本机的c:/inetpub/wwwroot文件夹。
    • B、 只能在本机操作系统所在磁盘的文件夹。
    • C、 只能在本机非操作系统所在磁盘的文件夹。
    • D、 以上全都是错的。

    正确答案:D

  • 第18题:

    PWS服务器的默认根目录是()。

    • A、C:///Inetpub/wwwroot
    • B、C:///Inetpub/homepage
    • C、C:///wwwroot
    • D、D:///Inetpub/wwwroot

    正确答案:A

  • 第19题:

    单选题
    在C盘上安装Windows Server 2003的IIS后,默认网站缺省主目录路径为()
    A

    C:///Inetpub/wwwroot

    B

    C:///Winnt/Inetpub/ftproot

    C

    C:///Inetpub/ftproot

    D

    C:///Winnt/Inetpub/wwwroot


    正确答案: D
    解析: 暂无解析

  • 第20题:

    单选题
    Driver:/inetpuB/wwwroot是IIS服务器的()目录。
    A

    虚拟

    B

    C

    其他选项都不对

    D

    默认


    正确答案: B
    解析: 暂无解析

  • 第21题:

    多选题
    如果要返回应用程序根目录的物理路径,那么MapPath方法的参数可以是()。
    A

    /

    B

    /

    C

    .

    D

    C:///Inetpub/wwwroot


    正确答案: A,B
    解析: 暂无解析

  • 第22题:

    多选题
    如果目标文件存在,下面()语句建立的TextStream对象可以读取文件。
    A

    Set tsm=fso.OpenTextFile(C:///inetpub/wwwroot/asptemp/chapter10/test.txt,1,True)

    B

    Set tsm=fso.OpenTextFile(C:///inetpub/wwwroot/asptemp/chapter10/test.txt,1)

    C

    Set tsm=fso.OpenTextFile(C:///inetpub/wwwroot/asptemp/chapter10/test.txt)

    D

    Set tsm=fso.OpenTextFile(C:///inetpub/wwwroot/asptemp/chapter10/test.txt,,True)


    正确答案: C,D
    解析: 暂无解析

  • 第23题:

    单选题
    PWS服务器的默认根目录是()。
    A

    C:///Inetpub/wwwroot

    B

    C:///Inetpub/homepage

    C

    C:///wwwroot

    D

    D:///Inetpub/wwwroot


    正确答案: C
    解析: 暂无解析