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, 22.06.2019 08:50
Can online classes such as gradpoint track your ip location like if im taking a final and i give somebody else my account and they take the final for me will it show where they are taking the final from? and can this be countered with a vpn
Answers: 1
question
Computers and Technology, 23.06.2019 07:30
What are ways to switch windows in excel? check all that apply. on the status bar, click the windows button, and then click the file name. on the task bar, click to display the excel jump list, and then click the file name. on the view tab, in the window group, click switch windows, and then click the file name. on the review tab, in the viewing group, click files, and then click the file name.
Answers: 1
question
Computers and Technology, 23.06.2019 09:30
Facial expressions and gestures are examples of messages.
Answers: 3
question
Computers and Technology, 23.06.2019 12:30
What is the difference between the internet and the world wide web?
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
Questions on the website: 13722363