subject

Question 1
errors can be syntax errors or logic errors (the code works, but not as intended).

which of the following statements contains an error?

string lotteryfrontpair = lotterynum. substring(0, 1);
string lotterybackpair = lotterynum. substring(2);
string userbackpair = userpick. substring(1, 2);

a) i only
b) ii only
c) iii only
d) i and ii only
e) i, ii, and iii

question 2
errors can be syntax errors or logic errors (the code works, but not as intended).

which of the following statements contains an error?

for(int n = 1; n < = lotnumlength; n++)
for(int n = 0; n < = lotnumlength; n++)
for(int n = 0; n < lotnumlength; n++)
a) i only
b) ii only
c) iii only
d) i and ii only
e) i and iii only

question 3
errors can be syntax errors or logic errors (the code works, but not as intended).

which of the following statements contains an error?

else if( userbackpair. equals(lotterybackpair) )
else if( ! userfrontpair. equals(lotteryfrontpair) )
else if( userpick == lotterynum )
a) i only
b) ii only
c) iii only
d) i and ii only
e) ii and iii only

question 4
errors can be syntax errors or logic errors (the code works, but not as intended).

which of the following statements contains an error?

int digit = (int) (math. random() * 9);
lotterynum += digit;
//system. out. println(lotterynum);
a) i only
b) ii only
c) iii only
d) i and iii only
e) ii and iii only

question 5
errors can be syntax errors or logic errors (the code works, but not as intended).

which of the following statements contains an error?

if(userpick. equals(lotterynum))
if(userfrontpair. equals(lotteryfrontpair))
if(userbackpair. compareto(lotterybackpair) < 0)

a) i only
b) ii only
c) iii only
d) i and ii only
e) ii and iii only

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 24.06.2019 00:50
Which player type acts on other players? a. killer b. achiever c. explorer d. socializer
Answers: 1
question
Computers and Technology, 24.06.2019 13:00
Ais a built in formula in spread spread a is any math process such as addition or subtraction. options are function and operation
Answers: 1
question
Computers and Technology, 24.06.2019 18:10
Most information security incidents will occur because of select one: a. users who do not follow secure computing practices and procedures b. increases in hacker skills and capabilities c. poorly designed network protection software d. increasing sophistication of computer viruses and worms
Answers: 1
question
Computers and Technology, 25.06.2019 01:00
What phrase indicates someone has knowledge and understanding of computer,internet,mobile devices and related technologies?
Answers: 1
You know the right answer?
Question 1
errors can be syntax errors or logic errors (the code works, but not as intended).<...
Questions
question
Mathematics, 12.01.2021 06:00
Questions on the website: 13722367