Will the snippet of code compile?
 
try 
{ 
       FileStream F = newFileStream("myfile.txt"); 
       string s = F.ReadLine(); 
} 
catch (IOException) { }
 finally 
{ 
     F.Close(); 
}
 
Explanation
A compiler will show an error because variable F is not defined in the place of call F.Close()

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Cosmo
Sign Up Now
or Subscribe for future quizzes