Computer Programming 2 Final Lab Exam Answer
Computer Programming 2 Final Lab Exam Answer
Flag question
Question text
What do you called a problem that arises during the execution of a program?
exception
Answer:
Question 2
Correct
Mark 1.00 out of 1.00
Flag question
Question text
Finally block defines following a try block or a catch block?
Select one:
True
False
Question 3
Correct
Mark 1.00 out of 1.00
Flag question
Question text
What is the short Object-Oriented Programming?
OOP
Answer:
Question 4
Correct
Mark 1.00 out of 1.00
Flag question
Question text
class Mathematics {
public void math() {
System.out.println("Mathematics Symbol");
}
}
class Main {
public static void main(String[] args) {
Mathematics myMath = new Mathematics(); // Create a Animal object
Mathematics myAdd = new Add(); // Create a Pig object
Mathematics mySubtract = new Subtract(); // Create a Dog object
myMath.____();
myAdd.____();
mySubtract.____();
}
}
Flag question
Question text
Match the following: