Tuesday, July 14, 2009

JAVA! true/false questions?

a) A while statement iterates once before evaluating the condition.





b) A counter is incremented by a constant amount.





c) An accumulator signifies that a loop should stop iterating.





d) Sentinel values must always be the value -1.





e) A variable declared in a for statement can be used again anywhere in the program code.





f) String variable are primitives data types.





g)The first charactr of the string has index position 1.





h) Strings are compared using relational operators such as %26gt;.





i) The string class includes a method for determining the location of a substring within a string.

JAVA! true/false questions?
a.) false


b.) false.


c.) false, but this might be semantics.


d.) ?


e.) false


f.) true


g.) false


h.) ? false ?


i.) true


No comments:

Post a Comment