chap 1 java

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/57

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

58 Terms

1
New cards

hardware, software

a computer include both _____ and ______

2
New cards

CPU, main memory, secondary storage devices, input and output devices

5 major hardware components

3
New cards

CPU

brain of the computer

4
New cards

control unit and arithmetic and logic unit

What does the CPU consist of?

5
New cards

switches

Today’s CPUs are built on small silicon semiconductor chips that contain millions of tiny electric ___________.

6
New cards

bits, binary digits

1s and 0s of switches are called _____.

7
New cards

minimum

A byte is the _____ storage unit.

8
New cards

8

How many bits is a byte composed of?

9
New cards

main memory

used to store data and program instructions for CPU to execute

10
New cards

unique address

used to locate the byte for storing and retrieving the data; every byte in the memory has one

11
New cards

keyboards and mice

What are the most common input devices?

12
New cards

monitors and printers

What are the most common output devices?

13
New cards

flash drives, magnetic disk drives, optical disk drives

Three main types of secondary storage devices

14
New cards

Machine language

set of primitive instructions built into every computer; 1s and 0s

15
New cards

programming languages

programs are written using

16
New cards

binary code

the instructions of machine language are in the form

17
New cards

assembly language

was developed to make programming easy; includes symbols

18
New cards

assembler

used to convert assembly language programs into machine code

19
New cards

high-level language

English-like and easy to learn and program

20
New cards

source programming code

A program written in a high-level language is called a _______________________.

21
New cards

machine code

A source program must be translated into ____________________ for execution.

22
New cards

interpreter, compiler

The translation can be done using an ___________ or ____________.

23
New cards

one statement

An interpreter reads __________________ from the source code, translates it to the machine code, and then executes it right away.

24
New cards

entire source

A compiler translates the ________________________ into a machine-code file, and the machine-code file is then executed; translates a program in high-level language into machine language code

25
New cards

byte code

The Java compiler translates a Java source file into a file that contains _____________ instructions.

26
New cards

Java virtual machine

Byte code instructions are the machine language of the __________.

27
New cards

Java

a powerful and versatile programming language that enables users to develop and deploy applications on the Internet for servers, desktop computers, and mobile devices

28
New cards

applications and applets

Java programs can be of two types:

29
New cards

main

In order to run a class, the class must contain a method named ______.

30
New cards

main method

the program is executed from the _______.

31
New cards

entry point

The main method is the ________________ where the program begins execution

32
New cards

statement

A ______________ represents an action or a sequence of actions.

33
New cards

;

statement terminator in Java

34
New cards

key words, reserved words

words that have a specific meaning to the compiler and cannot be used for other purposes in the program

35
New cards

operators

symbols or words that perform operations on one of more operands

36
New cards

operand

usually an item of data, such as a #

37
New cards

=

assignment operator

38
New cards

()

overrides order of precedence

39
New cards

result

The word ____________ is a program-defined name, it is a variable made up by the programmer to store the value.

40
New cards

//

single line comments

41
New cards

/* and */

multi line comments begin with _____ and end with _____.

42
New cards

{}

A pair of ____________ in a program forms a block that groups components of a program.

43
New cards

block

A __________ is a group of statements surrounded by braces.

44
New cards

{}

denotes a block to enclose statements

45
New cards

blank line

use ____ to separate segments of the code

46
New cards

syntax errors

detected by the compiler

47
New cards

runtime errors

causes the program to abort

48
New cards

logic errors

produces incorrect result

49
New cards

{}

denotes a block to enclose statements

50
New cards

()

used with selection statements, loops, and methods

51
New cards

[]

denotes an array

52
New cards

““

enclosing a string

53
New cards

‘‘

enclosing a character

54
New cards

//

precedes a comment line

55
New cards

hardware

physical components

56
New cards

software

invisible programs

57
New cards

syntax

set of rules that must be followed when writing a program

58
New cards

byte

a sequence of 8 bits