INTRO TO COMPUTER SCIENCE,
CHAPTER 1-8 MULTIPLE CHOICE
QUESTIONS ANSWERED
A Java program is best classified as - software
6 bits can be used to represent ________ distinct items or values - 64
When executing a program, the processor reads each program instruction from - main
memory
Which memory capacity is the largest? - 12,000,000 megabytes
Binary numbers are composed entirely of - 0s and 1s
Volatility is a property of - 0s, 1s and 2s
The ability to directly obtain a stored item by referencing its address is known as -
random access
Which phase of the fetch-decode-execute cycle might use a circuit in the arithmetic-
logic unit? - execute
For a computer to be accessible over a computer network, the computer needs its own -
network address
For a computer to communicate over the Internet, it must use - the combined TCP/IP
protocol
A URL (Universal Resource Locator) specifies the address of - the TCP protocol
, It is important to dissect a problem into manageable pieces before trying to solve the
problem because - most problems are too complex to be solved as a single, large
activity
Once we have implemented the solution, we are not done with the problem because -
all of the above
Java is an example of a(n) - both C and D
In the following list, which statement is not true regarding Java as a programming
language? - It is a language whose programs do not require translating into machine
language before they are executed
Comments should - be insightful and explain what the instruction's intention is
The main method for a Java program is defined by - public static main(String[ ] args)
The line of Java code "// System.out.println("Hello");" will - do nothing
The instruction: System.out.println("Hello World"); might best be commented as - // used
to demonstrate an output message
Which character below is not allowed in an identifier? - ^
Which of the following is not syntactically legal in Java? - s t a t i c main(String[ ] args)
Which of the following is a legal Java identifier - i
A unique aspect of Java that allows code compiled on one machine to be executed on a
machine of a different hardware platform is Java's - bytecodes
Java is similar in syntax to what other high level language? - c++
An error in a program that results in the program outputting $100 instead of the correct
answer, $250 is - a logical error
Which of the following is true regarding Java syntax and semantics? - a Java compiler
can determine if you have followed proper syntax but not proper semantics
Following Java naming convention, which of the following would be the best name for a
class about store customers - StoreCustomer
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller Knowledgekings. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $3.49. You're not tied to anything after your purchase.