![subject](/tpl/images/cats/informatica.png)
Computers and Technology, 30.01.2020 16:01 richaeviney
With some questions. you!
question 1:
errors can be syntax errors or logic errors (the code works, but not as intended).
which of the following is equivalent to while(userguess ! = secretnumber)?
while( userguess < secretnumber & & userguess > secretnumber)
while( userguess < secretnumber || userguess > secretnumber)
while( ! (userguess == secretnumber) )
a: i only
b: ii only
c: iii only
d: i and iii only
e: ii and iii only
question 2:
errors can be syntax errors or logic errors (the code works, but not as intended).
in the guess my number game, there is a lower limit and an upper limit for the range of possible numbers to guess. if the lower limit were inclusive and the upper limit exclusive, which expression would properly generate values for the secret number?
a: (int)(math. random() * (upper β lower) ) + lower
b: (int)(math. random() * (upper β lower + 1) ) + lower
c: (int)(math. random() * (upper β lower) ) + lower + 1
d: (int)(math. random() * (upper β 1 β lower) ) + lower + 1
e: (int)(math. random() * (upper β lower + 1) ) + lower β 1
question 3:
errors can be syntax errors or logic errors (the code works, but not as intended).
what conclusion can be made about the state of the program when the while loop terminates? assume answer is a declared and initialized string.
while(! answer. equals( "n"))
{
// code not shown
}
a: the value of answer is n
b: the value of answer is n or n
c: the value of answer is not n
d: the value of answer is y
e: nothing can be determined
question 4:
errors can be syntax errors or logic errors (the code works, but not as intended).
in the guess my number program, the user continues guessing numbers until the secret number is matched. assuming numguesses is initialized to 1, how would the while statement be modified to include an extra criterion limiting the number of guesses to 15?
a: while( (userguess == secretnumber) || numguesses < 14 )
b: while( (userguess== secretnumber) & & numguesses < = 15 )
c: while( ! (userguess == secretnumber) || numguesses < 15 )
d: while( ! (userguess == secretnumber) & & numguesses < 15 )
e: while( ! (userguess == secretnumber) & & numguesses < = 15 )
question 5:
errors can be syntax errors or logic errors (the code works, but not as intended).
after execution of the following code segment, what will be displayed?
int x = 1;
while(x < 18)
{
x += 5;
}
system. out. println(x);
a: 16
b: 20
c: 21
d: 22
e: 26
![ansver](/tpl/images/cats/User.png)
Answers: 3
![](/tpl/images/ask_question.png)
![](/tpl/images/ask_question_mob.png)
Another question on Computers and Technology
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 00:30
Which one of the following is the most accurate definition of technology? a electronic tools that improve functionality b electronic tools that provide entertainment or practical value c any type of tool that serves a practical function d any type of tool that enhances communication
Answers: 1
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 18:40
Johnson enterprises uses a computer to handle its sales invoices. lately, business has been so good that it takes an extra 3 hours per night, plus every third saturday, to keep up with the volume of sales invoices. management is considering updating its computer with a faster model that would eliminate all of the overtime processing.
Answers: 2
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 19:30
Of the following pieces of information in a document, for which would you most likely insert a mail merge field?
Answers: 3
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 24.06.2019 00:10
Read each statement below. if the statement describes a peer-to-peer network, put a p next to it. if the statement describes a server-based network, put an s next to it. p - peer-to-peer s - server-based
Answers: 1
You know the right answer?
With some questions. you!
question 1:
errors can be syntax errors or logi...
question 1:
errors can be syntax errors or logi...
Questions
![question](/tpl/images/cats/mat.png)
Mathematics, 17.07.2019 01:00
![question](/tpl/images/cats/istoriya.png)
![question](/tpl/images/cats/geografiya.png)
Geography, 17.07.2019 01:00
![question](/tpl/images/cats/en.png)
English, 17.07.2019 01:00
![question](/tpl/images/cats/en.png)
English, 17.07.2019 01:00
![question](/tpl/images/cats/mat.png)
Mathematics, 17.07.2019 01:00
![question](/tpl/images/cats/mat.png)
Mathematics, 17.07.2019 01:00
![question](/tpl/images/cats/istoriya.png)
History, 17.07.2019 01:00
![question](/tpl/images/cats/biologiya.png)
Biology, 17.07.2019 01:00
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/obshestvoznanie.png)
Social Studies, 17.07.2019 01:00
![question](/tpl/images/cats/biologiya.png)
Biology, 17.07.2019 01:00
![question](/tpl/images/cats/obshestvoznanie.png)
Social Studies, 17.07.2019 01:00
![question](/tpl/images/cats/health.png)
Health, 17.07.2019 01:00
![question](/tpl/images/cats/health.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 17.07.2019 01:00
![question](/tpl/images/cats/obshestvoznanie.png)
![question](/tpl/images/cats/biologiya.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 17.07.2019 01:00
![question](/tpl/images/cats/mat.png)
Mathematics, 17.07.2019 01:00