Menu

(Solved) : 26 Attempt Delete Directory Exist Ioexception Thrown Directorynotfoundexception B Securit Q44119326 . . .

26. If you attempt to delete adirectory that does not exist, what IOException isthrown?

a. DirectoryNotFoundException b.SecurityException c. IOException d. PathTooLongException

27. Which of the following isnot a property of the FileInfo class?

a. CreationTime b. lastAccessedTime c.LastWriteTime d. DirectoryKey

28. What property is used toidentify if the file is not to be modified by theuser?

a. ReadOnly b. Compressed c.NotContentIndexed d. Archive

29. If you want to copy a fileto a new location, and delete the original file, which method ofthe FileInfo class should you use?

a. CopyTo b. MoveTo c. Delete d.MakeFile

30. Which method returns aStreamWriter object?

a. CreateText b. Create c. CreateFiled. Both a and b

31. Compare the classes andmethods to create directories and files?

32. What security featuresshould you build into your Web applications when you allow users tosend e-mail through a Web page?

33. What security featuresshould you build into your Web applications when you allow users tomanage files and folders through a Web page?

34. Describe how you might usea database to populate a Calendar control?

35. Describe possible uses forthe AdRotator control?

Expert Answer


Answer to 26. If you attempt to delete a directory that does not exist, what IOException is thrown? a. DirectoryNotFoundException …

OR