Answer:
d. int x = 7; displayValue(x);
Step-by-step explanation:
Only option D is correct.
The declaration of the method displayValue() has a single int parameter.
When this method is called an int value is to passed as an argument terminated with a semi colon as given in option D.
- Option A displayValue(int x); is wrong because it declaring x again at the method call
- Option B displayValue(x) has a syntax error "Missing semi colon"
- Option C void displayValue(x); is wrong, when calling a function its return type is not written.