Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

iSQI Exam CTAL-ATT Topic 8 Question 39 Discussion

Actual exam question for iSQI's CTAL-ATT exam
Question #: 39
Topic #: 8
[All CTAL-ATT Questions]

You are ar teviemng the fdbwng Java furxton that deteimates whether a curb*. rput by the user. * Even or Odd Public das Oddorfven {

public state void mair^Strcg [ | args) (

Scarcer read - new ScanrerfSystem inje

System out prim ('Pease enter a rxmber'i;

int Number * reader nextfntO,

if(Number^20)

System out prrrtln "your input number 'Number * is even ).

else

System out prntirfyour input number 'Number * is odd*);

)

}

You are Qj>ded by '.he following checklist

* All variables must start with a Capital letter

* All output messages must start with a Capita letter

* There must De a comment bne e pla ning the purpose of the dess

How many checklist items Mve been fuelled7

SELECT ONE OPTION

Show Suggested Answer Hide Answer
Suggested Answer: D

Contribute your Thoughts:

Aretha
2 months ago
Haha, this code looks like it was written by a sleepy Java programmer. I'll go with A. 3 checklist items have been fulfilled, but that's not saying much considering the overall quality of the code.
upvoted 0 times
Irma
22 days ago
Hopefully, the next version of this code will be cleaner.
upvoted 0 times
...
Chun
27 days ago
It's important to follow coding standards for better readability.
upvoted 0 times
...
Avery
1 months ago
I think the programmer was in a rush when writing this.
upvoted 0 times
...
Lanie
1 months ago
I agree, this code definitely needs some improvement.
upvoted 0 times
...
Trina
2 months ago
It's important to follow coding standards for better readability.
upvoted 0 times
...
Kristian
2 months ago
I think the programmer could have done a better job with this code.
upvoted 0 times
...
Stephanie
2 months ago
I agree, this code definitely needs some improvement.
upvoted 0 times
...
...
Ashley
2 months ago
Hmm, this is a tricky one. I'll say C. Only 1 checklist item has been fulfilled, which is the capitalization of the variable 'Number'. The rest are not up to par.
upvoted 0 times
...
Elise
3 months ago
I'm going with B. None of the checklist items have been fulfilled. The variable 'read' doesn't start with a capital letter, and the output messages don't start with a capital letter either. Plus, there's no comment line.
upvoted 0 times
Jesusita
2 months ago
I agree, the variable 'read' doesn't start with a capital letter and the output messages don't start with a capital letter either.
upvoted 0 times
...
...
Lindsey
3 months ago
I think the answer is D) 2 because not only the purpose of the dess needs a comment line, but also all output messages must start with a Capital letter.
upvoted 0 times
...
Nydia
3 months ago
I agree with Mari, the purpose of the dess needs a comment line, so the answer is C) 1.
upvoted 0 times
...
Paulina
3 months ago
I think the correct answer is D. The code has 2 out of the 3 checklist items fulfilled - the variable 'Number' starts with a capital letter, and the output messages start with a capital letter. However, there is no comment line explaining the purpose of the class.
upvoted 0 times
Alesia
1 months ago
D
upvoted 0 times
...
Deandrea
2 months ago
C
upvoted 0 times
...
Valda
2 months ago
B
upvoted 0 times
...
Jaime
2 months ago
A
upvoted 0 times
...
...
Mari
3 months ago
I think the answer is C) 1 because only one checklist item has been fulfilled.
upvoted 0 times
...

Save Cancel