subject

1.When will the loop in the following code snippet stop? java. util. Scanner in = new java. util. Scanner(System. in); double sum = 0; int count = 0; System. out. print("Enter values, Q to quit: "); do { double value = in. nextDouble(); sum = sum + value; count++; System. out. print("Enter values, Q to quit: "); } while (in. hasNextDouble() && count < 100)

; I. When the user enters an integer

II. When the user enters an alphabetic character

III. After the user enters 100 numbers

Select one: a. I or II b. II only c. III only d. II or III

2.How many times does the following loop execute?

int upperCaseLetters = 0;
String str = "abcdEfghI";
boolean found = false;
for (int i = 0; i < str. length() && !found; i++)
{
char ch = str. charAt(i);
if (Character. isUpperCase(ch))
{
found = true;
}
}
Select one:

a. 9 times

b. 8 times

c. 5 times

d. 1 time

3.Which of the following statements is correct about a sentinel?

Select one:

a. A sentinel is a value that creates a bridge between a data set and unrelated input.

b. A sentinel is a value that is part of the data to be processed by the program.

c. A sentinel is a value that terminates a program.

d. A sentinel is a value that indicates the end of an input sequence.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 18:20
Write a javascript program that reads three integers named start, end, and divisor from three text fields. your program must output to a div all the integers between start and end, inclusive, that are evenly divisible by divisor. the output integers must be separated by spaces. for example, if a user entered 17, 30, and 5, your program would output "20 25 30" (without the quotes) because those are the only integers between 17 and 30 (including 17 and 30) that are evenly divisible by 5.
Answers: 2
question
Computers and Technology, 23.06.2019 13:50
Explain how email technologies enable the exchange of messages between users. find out the typical parts of an email address and explain each part.
Answers: 1
question
Computers and Technology, 23.06.2019 18:00
Freya realizes she does not have enough in her bank account to use the debit card. she decides to use a credit card instead. which questions should freya answer before using a credit card? check all that apply. can i pay at least the minimum payment each month? can i make payments on time and avoid late fees? will i have to take out a loan? how much in finance charges can i afford to pay? should i talk to a consumer credit counseling service?
Answers: 1
question
Computers and Technology, 23.06.2019 18:00
Which finger presses the h key on the keyboard? index finger on the left hand pinky finger on the right hand index finger on the right hand thumb on the left hand
Answers: 1
You know the right answer?
1.When will the loop in the following code snippet stop? java. util. Scanner in = new java. util. Sc...
Questions
question
Mathematics, 21.12.2019 21:31
question
Mathematics, 21.12.2019 21:31
question
Social Studies, 21.12.2019 21:31
Questions on the website: 13722367