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:

Elise
4 days 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
...
Lindsey
5 days 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
7 days ago
I agree with Mari, the purpose of the dess needs a comment line, so the answer is C) 1.
upvoted 0 times
...
Paulina
8 days 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
...
Mari
12 days ago
I think the answer is C) 1 because only one checklist item has been fulfilled.
upvoted 0 times
...

Save Cancel