![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, 22.06.2019 04:30
There is a simple pattern for determining if a binary number is odd. what is it and why does this pattern occur? how many bits would you need if you wanted to have the ability to count up to 1000? how high could you count in binary if you used all 10 of your fingers as bits? (finger up means 1, finger down means 0)
Answers: 3
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 18:30
Which of the following commands is more recommended while creating a bot?
Answers: 1
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 19:00
In he example code, what does the title attribute create? a tool tip an element a source a markup
Answers: 1
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 12:40
According to the video what are some tasks petroleum engineers perform check all that apply
Answers: 2
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)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 29.10.2019 06:31
![question](/tpl/images/cats/fizika.png)
Physics, 29.10.2019 06:31
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/istoriya.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 29.10.2019 06:31
![question](/tpl/images/cats/biologiya.png)
Biology, 29.10.2019 06:31
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 29.10.2019 06:31
![question](/tpl/images/cats/mat.png)
Mathematics, 29.10.2019 06:31
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 29.10.2019 06:31
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/himiya.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 29.10.2019 06:31
![question](/tpl/images/cats/mat.png)
Mathematics, 29.10.2019 06:31
![question](/tpl/images/cats/istoriya.png)