Independence Day Deal! Unlock 25% OFF Today – Limited-Time Offer - 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
12 days ago
Hopefully, the next version of this code will be cleaner.
upvoted 0 times
...
Chun
17 days ago
It's important to follow coding standards for better readability.
upvoted 0 times
...
Avery
27 days 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
1 months ago
It's important to follow coding standards for better readability.
upvoted 0 times
...
Kristian
1 months ago
I think the programmer could have done a better job with this code.
upvoted 0 times
...
Stephanie
1 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
2 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
2 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
2 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
2 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
25 days 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
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77