Which of the following could have resulted in the error being - ProProfs Discuss
Topics
Products
Follow Us:

Which of the following could have resulted in the error being generated?
Average.java:14: else without if else^



A. Scott used an infinite loop within his program
B. Scott placed a semicolon at the end of an If statement
C. Scott used an incorrect looping structure
D. Scott omitted a line of code below the If statement such as a System.out.pritnln or a Keybaord.readInt();

This question is part of Computer Programming II Exam (Multiple Choice)
Asked by Justinsmith, Last updated: Mar 10, 2020

+ Answer
Request

1 Answer

John Smith

John Smith

Answered Jan 26, 2017

Scott placed a semicolon at the end of an If statement
 

Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer

Email Sent
We have sent an email to your address "" with instructions to reset your password.