Output of this code ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
1st Feb 2018, 4:52 PM
Gajendra Parmar
Gajendra Parmar - avatar
7 Answers
+ 2
It throws an exception before printing anything. since you have not handled the exception using a try catch block, your program is abnormally terminated.
1st Feb 2018, 4:55 PM
Ravi Chandra Enaganti
Ravi Chandra Enaganti - avatar
+ 2
so in solo quiz we consider " no output " option as an answer
1st Feb 2018, 5:18 PM
Gajendra Parmar
Gajendra Parmar - avatar
+ 1
Ummmm yeah that’s weird we need @Ace
1st Feb 2018, 4:54 PM
Ole113
Ole113 - avatar
+ 1
so, when I run in solo it shows error that contact app admin
1st Feb 2018, 4:56 PM
Gajendra Parmar
Gajendra Parmar - avatar
+ 1
so in quiz they give option is (1) 29,(2) 36, (3) no output
1st Feb 2018, 4:57 PM
Gajendra Parmar
Gajendra Parmar - avatar
+ 1
so that output is " no output" but in solo app give error
1st Feb 2018, 5:02 PM
Gajendra Parmar
Gajendra Parmar - avatar
0
actually the answer should be 'it throws an error'
1st Feb 2018, 4:59 PM
Ravi Chandra Enaganti
Ravi Chandra Enaganti - avatar