Skip to main content

Java Topic Practice

Methods and Parameters

Methods and Parameters MCQ Practice

Question 1 of 15

Answered 0 of 15

Choose one answer.

What is printed by the following code segment?

public class Main {
  public static int combine(int a, int b, int c) {
    return a + b * c;
  }
  public static void main(String[] args) {
    System.out.print(combine(18, 3, 5));
  }
}
Choose one answer.