subject

Consider the classes below:
public class testa
{
public static void main(string args[])
{
int x = 2;
int y = 20
int counter = 0;
for (int j = y % x; j < 100; j += (y / x))
counter++;
}
}
public class testb
{ public static void main(string args[]) { int counter = 0; for (int j = 10; j > 0; --j) ++counter; }}
which of the following statements is true? a. the value of counter will be different at the end of each for loop for each class. b. the value of j will be the same for each loop for all iterationsc. both (a) and (b) are true. d. neither (a) nor (b) is true

ansver
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 19:20, mayaparness
Write a program that prompts the user to input a string. the program then uses the function substr to remove all the vowels from the string. for example, if str = "there", then after removing all the vowels, str = "thr". after removing all the vowels, output the string. your program must contain a function to remove all the vowels and a function to determine whether a character is a vowel.
Answers: 2
image
Computers and Technology, 23.06.2019 17:30, cxttiemsp021
Per the municipal solid waste report, what are the most common sources of waste (trash
Answers: 3
image
Computers and Technology, 23.06.2019 18:00, bubbles173883
While inserting images, the picture command is usually used to insert photos from a digital camera, and the clip art command is usually used to a. edit the sizes and other characteristics of photos that have been inserted. b. take a screenshot of an image and copy it to the clipboard for pasting. c. search for drawings or other images from a library of prepared pictures. d. make illustrations using lines and shapes that are easy to manipulate.
Answers: 1
image
Computers and Technology, 24.06.2019 02:20, isabelsmhl
Peter is thinking of a number which isless than 50. the number has 9 factors. when he adds 4 to the number, itbecomes a multiple of 5. what is thenumber he is thinking of ?
Answers: 1
You know the right answer?
Consider the classes below:
public class testa
{
public static void main(string a...

Questions in other subjects:

Konu
Mathematics, 26.06.2019 03:00