C1 - T
1) All information is stored in the computer using binary numbers.< T/F > ? - answerT
(Explanation: The computer is a digital device meaning that it stores information in one
of two states using binary. We must determine then how to represent meaningful
information (such as a name or a program instruction or an image) in binary. )
2) Java is an object-oriented programming language.< T/F > ? - answerT (Explanation:
Java is classified as a high-level programming language but it is also classified as an
object-oriented programming language because it allows the programmer to implement
data structures as classes.)
3) System.out.print is used in a program to denote that a comment follows.< T/F > ? -
answerF (Explanation: Comments follow // marks or are embedded between /* and */.
System.out.print is an instruction used to output a message to the screen (Java console
window).)
4) Java byte codes are directly executable whereas Java source code is not.< T/F > ? -
answerF (Explanation: Neither Java source code nor Java byte codes are executable.
Both must be compiled or interpreted into machine code. Java byte codes are useful
however in that they are machine-independent but semi-compiled code that allows your
Java code to be transmitted over the Internet and executed on another computer even if
that other computer is a completely different type.)
5) The Java compiler is able to find all programmer errors.< T/F > ? - answerF
(Explanation: The Java compiler can find syntax errors but cannot find either logical
errors (errors that are caused because of poor logic in writing the program) or run-time
errors (errors that arise during the execution of the program).)
6) Java is a case-sensitive language meaning that Current, current, and CURRENT will
all reference the same identifier.< T/F > ? - answerF (Explanation: Java is case
sensitive which means that Current, current, and CURRENT will all be recognized as
different identifiers. This causes problems with careless programmers who do not spell
an identifier consistently in terms of upper and lower case characters.)
7) Code placed inside of comments will not be compiled and therefore will not execute.<
T/F > ? - answerT (Explanation: The compiler discards comments, therefore, any code
inside of comments is discarded and not compiled. Your executable program consists
only of the code that is compiled. )
8) The word "Public" is a reserved word.< T/F > ? - answerF (Explanation: "public" is a
reserved word, but since Java is case sensitive, "Public" differs from "public" and
"Public" is not a reserved word.)
1) All information is stored in the computer using binary numbers.< T/F > ? - answerT
(Explanation: The computer is a digital device meaning that it stores information in one
of two states using binary. We must determine then how to represent meaningful
information (such as a name or a program instruction or an image) in binary. )
2) Java is an object-oriented programming language.< T/F > ? - answerT (Explanation:
Java is classified as a high-level programming language but it is also classified as an
object-oriented programming language because it allows the programmer to implement
data structures as classes.)
3) System.out.print is used in a program to denote that a comment follows.< T/F > ? -
answerF (Explanation: Comments follow // marks or are embedded between /* and */.
System.out.print is an instruction used to output a message to the screen (Java console
window).)
4) Java byte codes are directly executable whereas Java source code is not.< T/F > ? -
answerF (Explanation: Neither Java source code nor Java byte codes are executable.
Both must be compiled or interpreted into machine code. Java byte codes are useful
however in that they are machine-independent but semi-compiled code that allows your
Java code to be transmitted over the Internet and executed on another computer even if
that other computer is a completely different type.)
5) The Java compiler is able to find all programmer errors.< T/F > ? - answerF
(Explanation: The Java compiler can find syntax errors but cannot find either logical
errors (errors that are caused because of poor logic in writing the program) or run-time
errors (errors that arise during the execution of the program).)
6) Java is a case-sensitive language meaning that Current, current, and CURRENT will
all reference the same identifier.< T/F > ? - answerF (Explanation: Java is case
sensitive which means that Current, current, and CURRENT will all be recognized as
different identifiers. This causes problems with careless programmers who do not spell
an identifier consistently in terms of upper and lower case characters.)
7) Code placed inside of comments will not be compiled and therefore will not execute.<
T/F > ? - answerT (Explanation: The compiler discards comments, therefore, any code
inside of comments is discarded and not compiled. Your executable program consists
only of the code that is compiled. )
8) The word "Public" is a reserved word.< T/F > ? - answerF (Explanation: "public" is a
reserved word, but since Java is case sensitive, "Public" differs from "public" and
"Public" is not a reserved word.)