Question: 966694 Figure 1 4896944 value-input( Input value:-) try print Result -, end value int (value) result20/value print result, end fp open (data.txt except ValueErrort except
966694 Figure 1 4896944 value-input( Input value:-) try print Result -", end value int (value) result20/value print result, end fp open ("data.txt" except ValueErrort except ZeroDivisionErzor: except XxXx: print "value Erroend- print ( "Zero Division Error, end print( "File doesn't exist!end 07. What is printed by Figure 1 when the value entered 1s 07 A) Resuit-o B) Result-0.0 C) ResultValue Error D) Result zero Division Error E) None of the above 08. What is printed by Figure 1 when the value entered is 0.17 A) Result- B) Result 0.0 C) Result -Value Erroz D) Result Zero Division Error E) None of the above 09. What is an appropriate replacement or xxxx to catch the exception if file doesn't exist? A) IOException B) OpenFileError C) FileError D) FileNotFoundError E) None of the above 10. which of the tollowing opens the tile "data.txt tor wEiting? A) open ("data.txt") B) open ("data.txt",r C) open ("data.txt"," D) All of the above E) None of the above
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
