Java CS 170

¡Supera tus tareas y exámenes ahora con Quizwiz!

200MB

3K means about 3 thousand bytes. How would you express two hundred million bytes?

class files

A Java compiler translates source code into _____

Example1.java

A Java source file that contains the public class Example1 must be named ____________.

Hard disk

A device that stores information on rotating platters with magnetic coating.

Source file

A file containing instructions in a programming language such as Java.

Applet

A graphical Java program that executes inside a web browser or applet viewer.

Editor

A program for writing and modifying text files.

Virtual machine

A program that simulates a CPU that can be implemented efficiently on a variety of actual machines. A given program in Java bytecode can be executed by any Java virtual machine, regardless of which CPU is used to run the virtual machine itself.

IDE (Integrated Development Environment)

A programming environment that includes an editor, compiler, and debugger. software that allows a programmer to write, edit, and test programs

High-level programming language

A programming language that provides an abstract view of a computer and allows programmers to focus on their problem domain.

File

A sequence of bytes that is stored on disk.

Method

A sequence of statements that has a name, may have parameter variables, and may return a value. A method can be invoked any number of times, with different values for its parameter variables.

Directory

A structure on a disk that can hold files or other directories; also called a folder

Logic error

An error in a syntactically correct program that causes it to act differently from its specification. (A form of run-time error.)

Syntax error (aka. compile-time)

An instruction that does not follow the programming language rules and is rejected by the compiler. (A form of compile-time error.)

Network

An interconnected system of computers and other devices.

argument

Arguments are enclosed in parentheses. A value supplied in a method call, or one of the values combined by an operator.

An instruction

At each step of its operation, the input to a Central Processing Unit is

II, III, and IV only

Consider the following statements about computer programs: I. Computer programs can be written by someone who has a basic knowledge of operating a computer. II. Computer programs can complete complex tasks quickly. III. Large and complex computer programs are generally written by a group of programmers. IV. Computer programs are composed of extremely primitive operations. Which of the statements are correct?

.java

Files containing Java code must end with what "extension"?

Secondary

Flash drives, CDs, external disks are all examples of-----storage (memory) devices.

compiler

In order to translate a Java program to a class file, the computer needs to have software called a(n) _______________.

Source code

Instructions in a programming language that need to be translated before execution on a computer.

Machine code

Instructions that can be executed directly by the CPU.

Java

It was originally designed for programming consumer devices. It was designed to securely execute programs in a browser. It is portable enough to work with different processor types and operating systems.

Input

Mice, trackpads, keyboards, scanners, joysticks are all examples of------devices

Output

Monitors, printers, status lights are all examples of-----devices

applets

Small applications written in the Java programming language that can be located anywhere on the Internet are called __________.

the compiler does not give up when it finds the first error

Sometimes errors throw the compiler off track because __________________.

Secondary storage

Storage that persists without electricity, e.g., a hard disk.

library packages

The Java programming language is itself relatively simple, but also contains a vast set of _______________.

Portability

The ability of a language to let a programmer develop a program on computer system that can be run on other systems is called

Programming

The act of designing and implementing computer programs

determine the inputs and the outputs

The first step in describing an algorithm in pseudocode is ______________.

software

The intangible instructions and data that are necessary for operating a computer or another device.

Statement

The main method contains one or more instructions called statements. Each statement ends in a semicolon (;).

main method

The method that is first called when a Java application executes.

central processing unit (CPU)

The part of a computer that executes the machine instructions

hardware

The physical computer and peripheral devices

javac

The standard name of the Java compiler is

Pseudocode

These steps are not yet in a language that a computer can understand, informal description

Java

To run a Java program from a command line, we use the----command.

To find the largest of 50 numbers

What is the purpose of the following algorithm? someNum = 0 Repeat the following steps 50 times Input variables if variable1 > someNum someNum = variable1 Print someNum

on a disk

When a program is not running, it is stored

Main Memory (RAM)

When a program runs on a computer, it is stored in

CPU

When a program runs on a computer, the part of the computer that carries out the instructions is called the

I and III only

Which of the following statements regarding backup strategies for Java files are true? I. You should back up your projects often to prevent loss of valuable work. II. You should check your backups only in case of loss of data. III. You should pay attention to the backup direction.

semicolon

Which of the following symbols is used to terminate a Java program statement?

compiler

Which one of the following translates high-level descriptions into machine code? linker

a team of highly skilled programmers writing a large number of simple instructions

Writing the program for a computer game with motion, graphics, and sound effects usually requires _____

A bit is

a binary digit, like 0 or 1

compiler

a program that translates high-level instructions into more detailed instructions that can be executed by the CPU.

String

a sequence of characters enclosed in quotation marks.

A compile-time error (aka. syntax)

a violation of the programming language rules that is detected by the compiler.

Exception

an error message from the Java virtual machine. (Ex: 1/0)

A run-time error

causes a program to take an action that the programmer did not intend.

computer program

sequence of instructions and decisions.

Class

the fundamental building blocks of Java programs.

RAM, random-access memory, is called that because

you can pick any two random locations and it will take the same time to access the data


Conjuntos de estudio relacionados

Optional: Familiar with data analytics? Take our diagnostic quiz

View Set

info 360:Homework: Chapter 3 Video: Organizational Strategy, Information

View Set

chapters 10 and 11 for technology and management

View Set

P4S - Nov.26, 2018 -- take 1 (copy)

View Set

Chapter 5: Airplane performance and Weight& Balance

View Set

Chapter 6 - Discounted Cash Flows and Valuation

View Set