Question:Given the following code snippet, what will be the output when helloWorld() is run? public function helloWorld() : void { trace("Line 1" ); var num : Number=25; try{ num=num/0; trace ("Value of num in try: "+num.toString()); }catch (err : IOError) { trace("Value of num in catch: "+num.toString()); }finally{ num=0; } trace("Value of num: "+num.toString()); } 

A Line1 Value of num in try: 25 Value of num in catch: 25 Value of num: 0 

B Line1 Value of num in catch: 25 Value of num: 0 

C Line1 Value of num in try: 25 Value of num in catch: 25 

D Line 1 Value of num in try: Infinity Value of num: 0 

+ Answer
+ Report
Total Preview: 419

Copyright © 2025. Powered by Intellect Software Ltd