Answer:
The answer is "Option d".
Explanation:
In the given code, two class "TestA and TestB" is defined, that calculates some values which can be described as follows:
- In class "TestA", three integer variable "x, y, and counter" is declared, that initializes with a value, that is "2, 20, and 0", inside the class for loop is declare that uses variable j which starts from and ends when the value of j is less than 100, it will increment the value of counter variable by 1.
- In the class "TestB", an integer "counter" variable is initializes a value with 0, inside the class the for loop is used that uses variable j, which starts from 10, and ends when j is less than 0. in the loop it increments the value of "counter" variable by 1. that's why in this question except "option d" all were wrong.
True you cant win if you dont know what you got right
Re-read what you've typed in that cell see if you typed it correctly.
It helps spread the word about certain candidates in an upcoming election.
The top layer will appear.