Moderate

How do we create a FileSystemObject ?

Correct answer: A. Server.CreateObject("Scripting.FileSystemObject")

  • A. Server.CreateObject("Scripting.FileSystemObject")
  • B. Create Object:"Scripting.FileSystemObject"
  • C. Server.CreateObject("FileSystemObject")
  • D. Create("FileSystemObject")

Explanation

In classic ASP, Server.CreateObject creates COM objects, and the ProgID for the file-system object is Scripting.FileSystemObject. The shorter alternatives omit either the Server call or the required ProgID.

Last updated

Practise Web and Mobile Development

268 free Web and Mobile Development MCQs from Software Engineering, each with the correct answer and an explanation. Unlimited attempts, no account needed.

Exams that ask Software Engineering questions like this

Software Engineering is on this paper prepared for on TestUstad, and all of them draw the same bank, so this question is worth knowing for it.

Related questions