Test: JFo Section 2 Test
Review the answers, results, and scores of the
questions shown below. The correct answers
are marked with an asterisk (*).
Section 2 Quiz
(Answer all the questions in this section)
1. Which of the following three statements about the point of
Are the ruptures real?
Points
Help with debugging. (*)
Stops the execution of code. (*)
It can be used to check the current status of the program. (*)
Introduce break statements.
Abruptly ends with the code execution.
Correct
2. A Java program can be written in a single line.
Points
TRUE (*)
FALSE
Correct
3. The code between the braces is called a 'code block'.
Points
TRUE (*)
FALSE
Correct
4. What is the purpose of adding comments in the code?
(1/1) Points
Improve the appearance of the code.
Increase the execution time of the code.
Provide greater security to the program.
Provide an explanation about the code to the programmer.
Correct
5. To define a breakpoint, you need to click on the number.
from the left margin of the IDE. When clicked again, it gets removed.
breaking point.
Points
TRUE (*)
FALSE
Correct
6. You can define the number of breakpoints you want for your
program.
(1/1) Points
TRUE (*)
FALSE
Correct
7. An object can interact with another through the call of
methods.
Points
TRUE (*)
FALSE
Correct
He has a beautiful garden at his house. On Sunday he decides to transplant.
a rosebush to obtain more samples of rosebushes and transplant them in its
garden. Can you classify this scenario as it would be represented
with classes and instances?
Points
The rosebush is the class and the samples generated from the rosebush are the
instances of the class.
The rosebush is the object and the samples are not instances of the plant.
because they have not germinated yet.
The samples with the class and the rosebush are the instances of the
samples.
The samples of the rose bush are the classes, not the real rose bush.
Correct
9. In the following code example, identify the methods:
public class Employee {
Duke
public int empId = 12105;
public float salary;
public void displaySalary(){
Employee Salary:
}
}
Points
name
salary
displaySalary() (*)
empId
Correct
10. Which of the following languages is called a language of
procedure?
Points
C++
Java
C (*)
Java C
Correct
Previous
Section 2 Quiz
(Answer all the questions in this section)
11. In object-oriented programming, an object consists of
properties and behaviors, where the properties are
are represented as fields of the object and the behavior is
represents as a method.
Points
TRUE (*)
FALSE
Correct
The spiral model reflects an iterative development process.
(1/1) Points
TRUE (*)
FALSE
Correct
13. During the software development testing phase, what are
Does the programmer perform the following tasks?
Points
Planning the implementation order of the functions.
Creation of lists with the necessary functions.
Fix bugs. (*)
Bug search. (*)
Correct
14. If the requirements phase of the spiral development model is forgotten,
What could happen?
(0/1) Points
Fundamental software functions of the program would be missing.
It would generate dirty code.
It would be very complicated to find the solutions.
The program would yield inaccurate results.
Incorrect. Please refer to section 2 of lesson 1.
15. Which of the following definitions of the components of
Are the spiral model of development correct?
(1/1) Points
Requirements: start of development
Design: planning the approach (*)
Test: Code execution and result verification (*)
Development: gathering of all specified instructions
Correct