Services
Discover
Homeschooling
Ask a Question
Log in
Sign up
Filters
Done
Question type:
Essay
Multiple Choice
Short Answer
True False
Matching
Topic
Computing
Study Set
Java Software Solutions
Quiz 1: Introduction
Path 4
Access For Free
Share
All types
Filters
Study Flashcards
Practice Exam
Learn
Question 41
Essay
What is wrong with the following class definition? public class Program1 { public static void main(String[ ] args) { System.out.println("My first Java program") } }
Question 42
Essay
Provide a brief explanation of the role of main memory, the control unit, the arithmetic logic unit, and registers. (see figure 1.13)
Question 43
True/False
Objects are defined by a class that describes the characteristics common to all instances of the class.
Question 44
Essay
Provide a brief description of the roles of the following hardware elements (that is, what each is used for): a) CPU b) Main memory c) Secondary memory devices d) Input/Output devices
Question 45
True/False
Inheritance is a form of software reuse.
Question 46
Essay
Given the following class definition, what are the reserved words and what are the identifiers? public class Program3 { public static void main(String[ ] args) { System.out.println("My third Java program"); } }
Question 47
True/False
In Java, identifiers may be of any length up to a limit determined by the compiler.
Question 48
True/False
Polymorphism is the idea that we can refer to multiple types of related objects in consistent ways.
Question 49
Essay
Examine figure 1.7 before answering this question. What 8-bit value comes immediately before and what 8-bit value comes immediately after 10010111?
Question 50
Essay
Rewrite the following comment so that it can appear over multiple lines. // This is one really enormously long comment that might run off the page
Question 51
True/False
During translation, the compiler puts its output (the compiled Java program) into ROM.
Question 52
Essay
Provide identifier names that would be used to represent a person's social security number, income tax withheld, and net pay.
Question 53
Essay
What is wrong with the following println statement? System.out.println("My fourth Java Program);
Question 54
Essay
There are a number of reserved words in Java that have no current meaning (denoted with an * in figure 1.18). Why?
Question 55
True/False
In a Java program, dividing by 0 is a syntax error.
Question 56
Essay
What is the output of the following when the main method is executed? public class Question4 { public static void main(String[ ] args) { System.out.println("hi there"); System.out.println(" "); System.out.println("how are you doing today? "); } }