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, 22.06.2019 21:00
Kirk found a local community college with a two-year program and he is comparing the cost with that of an out-of-state two-year school. what is the expected total cost for one year at the local community college if kirk lives at home? what is the expected total cost for one year at the out-of-state school if kirk lives on campus?
Answers: 2
question
Computers and Technology, 24.06.2019 00:00
Visualizing a game of “tag” to remember the meaning of contagious
Answers: 3
question
Computers and Technology, 24.06.2019 16:00
Which type of cloud computing offers easily accessible software and applications on the machines
Answers: 1
question
Computers and Technology, 24.06.2019 18:30
What is the local portion of the e-mail address below? [email protected] a.) @ b.) biz c.) gumchewer d.) twrigley
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
Questions on the website: 13722363