Solved

What Are the Values of Num1 and Num2 and Result

Question 38

Multiple Choice

What are the values of num1 and num2 and result after executing the code snippet below?
Public static int mystery (int firstNum, int secondNum)
{
FirstNum = firstNum * 2;
SecondNum = secondNum * 3;
Return firstNum + secondNum;
}
Public static void main(String[] args)
{
Int num1 = 10;
Int num2 = 11;
Int result = mystery(num1, num2) ;
}


A) num1 = 20, num2 = 33 and result is 53
B) num1 = 10, num2 = 11 and result is 53
C) num1 = 0, num2 = 0 and result is 0
D) num1 = 20, num2 = 33 and result is 0

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents