MCQs > IT & Programming > Actionscript 3 > Given the following code snippet: public function helloWorld(value:int) : String { switch(value){ case 1: return 'One'; default: return 'No Match'; case 2: return 'Two'; case 3: return 'Three'; } } What will be returned if we pass call the above function as helloWorld(2):

Actionscript 3 MCQs

Given the following code snippet:
public function helloWorld(value:int) : String {
switch(value){
  case 1:
    return "One";
  default:
    return "No Match";
  case 2:
    return "Two";
  case 3:
    return "Three";
   }
}
What will be returned if we pass call the above function as helloWorld(2):


Answer

Correct Answer: Two

Explanation:

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

Actionscript 3 Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Actionscript 3 Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it