Java Chapter 1-Introduction

Ace your homework & exams now with Quizwiz!

18. What is the parameter in the given method call? System.out.println("Welcome");

"Welcome"

15. Parameters to methods are enclosed by these symbols.

( )

20. What is the output of the following Java statement?

10

19. What is the output of the following Java statement?

4 + 6

12. In Java, every statement must end with this symbol.

;

1. The statement that best describes a computer program.

A program is a sequence of instructions and decisions that the computer carries out.

7. What is the JVM?

A virtual machine that runs compiled Java code on any CPU.

23. What does a class file contain?

Instructions for the Java Virtual Machine.

21. The statement that is true about a Java program.

Java is case sensitive.

24. What precaution can save you from a losing files corrupted by a virus infecting your computer?

Make regular backups of all your important files.

16. What is the object in the given method call? System.out.println("Welcome");

System.out

9. The statement that best describes the portability characteristics of Java.

The same Java class files will run on different operating systems without change.

data type is a single 16-bit Unicode character.

char

22. The Java compiler translates source code into what type of file?

class

13. What term used to refer to text in a program that helps human readers understand the program?

comments

8. What translates high-level descriptions into machine code?

compiler

29. A step sequence that can be carried out in practice is _____.

executable

4. Which type of secondary storage consists of rotating platters, which are coated with a magnetic material, and read/write heads

hard disk

is a 32-bit signed two's complement integer, which has a minimum value of -231 and a maximum value of 231-1.

int

11. What contains sequences of instructions to perform a particular task?

method

17. What is the name of the method in the given method call? System.out.println("Welcome");

println

27. Who/what is responsible for inspecting and testing the program to guard against logic errors?

programmer

14. What term is used to refer to a sequence of characters enclosed in quotation marks?

string

26. What is the term used to describe an error detected by the compiler that is a violation of the programming language rules?

syntax error

30. A step sequence that eventually comes to an end is _____.

terminating


Related study sets

AP Lang Rhetorical Devices (Satire to Zeugma)

View Set

Human Growth and Development module 8

View Set

Marketing Midterm Practice Questions

View Set

Adjective suffixes - ive, -y, -ous, -ful,- less, -able, -ible, -al

View Set

Chapter 14 Risk of Infectious and Communicable Diseases

View Set

Chapter 55 - Listening Guide Quiz 44: Glass: Symphony No. 4 (Heroes), I

View Set

Med Surg I Prep U Chapter 49: Assessment and Management of Patients With Hepatic Disorders

View Set