Chapter 1

0.0(0)
Studied by 0 people
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/66

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 11:15 PM on 9/4/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

67 Terms

1
New cards

Computer

A machine that stores and processes data

2
New cards

Hardware

Physical components of a computer

3
New cards

Software

Part of the computer, unseen instructions that control the hardware and processes

4
New cards

What is a solid-state drive?

Part of computer that uses flash memory to store files and other data. Part of storage.

5
New cards

What is RAM?

Part of computer that holds data read from storage

6
New cards

Processor

Part of computer that:

runs the computer’s programs

reads and executes instructions from memory

performs operations

7
New cards

Clock

governs the rate at which a process executes instructions, ticks at a specific frequency

8
New cards

What are the three basic instruction types?

Input, process, output

9
New cards

Input

program receives data (from file, keyboard, etc.)

10
New cards

Process

program performs computations on that data

11
New cards

Output

A program puts that data somewhere

12
New cards

Program

Created sequence of instructions

13
New cards

Machine language/instructions

instructions represented as 0s and 1s

14
New cards

Executable program

Sequence of machine instructions together

15
New cards

Assembly language

human readable instructions of machine instruction, low-level language that can be translated into the machine language

16
New cards

High-level languages

Programming using formulas or algorithms resembling written languages

ex. Java itself

17
New cards

Compilers

programs that automatically translate high-level language programs into executable programs

18
New cards

Object

real-world entity brought to life in code

19
New cards

What is the first step in translating high-level language?

Source code is stored on a disk in a file with a name ending in .java (source file). This has instructions written in high-level language.

20
New cards

What is the second step in translating high-level language?

Compiler creates bytecode that is stored on a disk in a file with a name ending in .class.

21
New cards

What is the third step in translating high-level language?

Java Virtual Machine (JVM) (named java.exe) performs security checks and translates bytecode to machine language, which executes

22
New cards

What are the stages of a code when running a program?

Java code file

Java bytecode

Machine language

Program runs on hardware

23
New cards

Syntax

A specific set of rules for the language

24
New cards

Program statements

Commands to carry out program tasks

25
New cards

Syntax error

Misuse of language rules, a misspelled programming language word

26
New cards

Debugging

Attempting to free programs of all errors

27
New cards

Logic error

When there is an incorrect order or procedure, compiles but not run as intended.

28
New cards

Class

Describes objects with common properties, a blueprint for objects

29
New cards

What do programs begin with?

public class NAME

30
New cards

For public class NAME, what does the NAME have to match?

match the name of the file

31
New cards

What is the second statement put into programs?

public static void main(String[] args)

32
New cards

What is a literal string?

Will appear in output exactly as entered, written between double quotation marks

33
New cards

What is an argument?

The actual value or data that you pass into a method

ex. addNumbers(5, 10); (5 and 10 are the arguments)

34
New cards

What is a method?

A structured, reusable block of code that groups together a sequence of statements to perform a specific task

35
New cards

What are method names always followed by?

Parentheses ()

36
New cards

What do classes always start with?

A capital letter

37
New cards

What can identifiers not begin with?

Cannot begin with a digit

38
New cards

What can identifiers not contain?

Java reserved keywords

39
New cards

What is public?

An access specifier meaning it is available to all other entities

40
New cards

What is whitespace?

Space and tabs between items within a statement and blank lines between statements

41
New cards

What is static?

a reserved keyword, means the method is accessible and usable even though no objects of the class exist

42
New cards

What is void?

Indicates the main() method does not return a value when called

43
New cards

What command compiles the program?

javac

44
New cards

What is a compile-time error?

The compiler detects a violation of languag erules and refuses to translate the class to machine code

45
New cards

What command interprets the class bytecode and executes the class?

java

46
New cards

What is a logic error?

The syntax is correct but incorrect results were produced when executed

47
New cards

What is a run-time error?

An error that occurs while the program is running, after is has successfully compiled (an illegal or impossible operation)

48
New cards

What are line comments?

Starts with two forward slashes (//), Continue to the end of the current line/ Does not require an ending symbol

49
New cards

What is a block comment?

Starts with (/*) and ends with (*/)

50
New cards

What would a javadoc comment look like?

begins with (/**) and ends with (*/)

51
New cards

What is an IDE?

An integrated development environment which is software that integrates a text editor (writes code) and a compiler

52
New cards

What is a console?

A text-based interface that allows users to run programs, enter input, and view program output

53
New cards

What are statements enclosed in?

curly braces

54
New cards

How many statements should appear on one line?

One

55
New cards

What do statements end with?

Semicolons (;)

56
New cards

What does int ___ do?

Creates a variable name that is an integer data type

57
New cards

What is an integer?

A whole number

58
New cards

Are you able to combine text and values on the same print line?

Yes

59
New cards

How do you combine text and values on a print line?

With a + symbol

ex. (“Wage is “ + wage);

60
New cards

What are blank lines?

An entire space of line between two statements

61
New cards

When are blank lines used?

To separate conceptually distinct statements

62
New cards

When should be indent lines be used?

To indent by the same amount for related lines of codes

63
New cards

If there is a syntax error, which lines should you look at?

At the specified line and if not there at previous lines

64
New cards

What should you do when fixing a long list of errors?

Fix one error first and then compile (it may fix the entire line of errors)

65
New cards

How much does an int hold?

+/ - 2 billion

66
New cards

What is double?

Like int but can use decimals

67
New cards

How do you read binary digits?

Binary digits are 1s and 0s. Read from right to left. The first digit to the right is to be multiplied by 1, the second 2, the third 4, the fourth by 8. It keeps doubling. Then add all of the numbers together