Test Bank For Absolute Java 6th Edition By Walter Savitch, Chapters 1-20
3 views 0 purchase
Module
Absolute Java, 6e Walter Savitch
Institution
Absolute Java, 6e Walter Savitch
Test Bank For Absolute Java 6th Edition By Walter Savitch, Chapters 1-20. Full Chapters Include;....Chapter 1: GETTING STARTED Chapter 2: CONSOLE INPUT AND OUTPUT Chapter 3: FLOW OF CONTROL Chapter 4: DEFINING CLASSES I Chapter 5: DEFINING CLASSES II Chapter 6: ARRAYS Chapter 7: INHERITANCE Chapter...
, Chapter 1 Getting Started 1
ST
Chapter 1
Getting Started
UV
1 Multiple Choice
I
1) Java is an object-oriented programming language. An object-oriented language
A.
(a) Uses structured programming.
(b) Views a program as consisting of objects which communicate through interactions.
(c) Functionally breaks down problems into smaller, more manageable problems.
(d) All of the above.
AP
Answer: B
2) In Java, the equal sign is used as the ___________ operator.
(a) increment
PR
(b) decrement
(c) assignment
(d) negation
Answer: C
OV
3) In Java, source code is compiled into object code called ______________.
(a) Bit-code
(b) Class code
ED
(c) Method code
(d) Byte-code
Answer: D
4) The hardest kind of error to detect in a computer program is a:
??
(a) Syntax error
(b) Run-time error
(c) Logic error
(d) All of the above
?
Answer: C
10) The value of the expression (int) 27.6 evaluates to:
(a) 28
(b) 27
(c) 26
(d) None of the above.
ST
Answer: B
11) Which operator is used to concatenate two strings?
(a) +
UV
(b) –
(c) *
(d) /
Answer: A
I A.
12) Which operator returns the remainder of integer division?
(a) %
(b) /
(c) *
AP
(d) none of the above
Answer: A
13) What is the value of the variable c in the statements that follow?
PR
String phrase = "Make hay while the sun is shining.";
char c = phrase.charAt(10);
(a) w
OV
(b) h
(c) i
(d) None of the above
Answer: B
ED
14) The escape sequence the represents the new-line character is:
(a) \r
(b) \t
(c) \n
??
(d) \\
Answer: C
?
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 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 MedGeek. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for £16.73. You're not tied to anything after your purchase.