MCQs > IT & Programming > Swift > Problem with code? import UIKit let fm = NSFileManager.defaultManager() fm.removeItemAtPath('file.old')

Swift MCQs

Execute below code and tell what can be problem? import UIKit let fm = NSFileManager.defaultManager() fm.removeItemAtPath("file.old")

Answer

Correct Answer: If it cannot find file, exception would be occurred, we need exception handling

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Swift Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Swift Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it