vb文件试题及答案.docxVIP

  • 0
  • 0
  • 约6.04千字
  • 约 13页
  • 2026-10-30 发布于云南
  • 举报

vb文件试题及答案

一、选择题(本题型共20题,每题2分,共40分)

1.在VB中,用于表示文件系统对象的类是以下哪个?

A.FileSystemObject

B.FolderObject

C.FileObject

D.DirectoryObject

2.VB中要打开一个顺序文件进行读取操作,应使用的文件打开模式是?

A.OpenfilenameForInputAsfileNum

B.OpenfilenameForOutputAsfileNum

C.OpenfilenameForAppendAsfileNum

D.OpenfilenameForRandomAsfileNum

3.以下哪个VB函数用于返回指定路径的文件名(不含扩展名)?

A.FileTitle

B.FileName

C.GetFileTitle

D.PathName

4.在VB中,二进制文件的打开模式通常使用哪种?

A.ForInput/Output/Append

B.ForBinary

C.ForRandom

D.ForSystem

5.使用FileSystemObject的DeleteFile方法删除文件时,若文件不存在,默认情况

文档评论(0)

1亿VIP精品文档

相关文档