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:
Verified
Q33: Which of the following options represents the
Q34: Which of the following is true about
Q35: Which of the following is not legal
Q36: The Math.ceil method in the Java standard
Q37: What are the values of x and
Q39: What is the output of the following
Q40: What can be used as an argument
Q41: What step should you take after implementing
Q42: Given the following code, what is the
Q43: What is incorrect in the following code
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents