CSCI 1301 UGA

0.0(0)
studied byStudied by 1 person
GameKnowt Play
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/89

flashcard set

Earn XP

Description and Tags

LIANG

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

90 Terms

1
New cards

Hardware

tangible parts - parts of the computer systems

2
New cards

Software

programs- set of instructions

3
New cards

Hardware componenets

keyboard, mouse, display screen, printer, a processor and memory

4
New cards

The procesor

processes a programs instructions

simple instructions

its power is speed

5
New cards

memory

holds programs, data for the comp to process and the results of the processing

6
New cards

main memory

used to store the current program and the data the program is using, the results of intermediate calculations.

Usually measured in megabytes

7
New cards

Byte

a quantity of memory

8
New cards

Auxiliary memory

also secondary memory

disk rives, CD’s, DVDs and flashdrives

permanent

measured in gigabytes

9
New cards

bits

is either a 0 or 1

10
New cards

a byte consists of

8 bits

11
New cards

address

the numbered location that the byte resides in

12
New cards

all data is encoded how?

using 1s and 0s

13
New cards

what is the address when several bytes are needed

the first bytes address

14
New cards

files

large groups of bytes in auxiliary memory

files have names

15
New cards

RAM

temp memory (random access memory)

16
New cards

ROM

permanent memory (read only memory)

17
New cards

when files are organized they are called

directories or folders (java programs are stored in files)

18
New cards

program

a set of instructions for a computer to follow

19
New cards

following the instruction is called

running or executing

20
New cards

input

what the user puts in/the data needed to run the program

21
New cards

output

results produced with the input and set of instructions

22
New cards

what does the operating system do

Retrieves and starts program for you

23
New cards

high level languages

H = human. computers cant understand it

24
New cards

low level languages

this is the translated version from high level which computers can understand.c

25
New cards

compliers

translates the program from high to low level language.

  • can be expensive and very large to produce

26
New cards

the compiler on the high level language is called

source program

27
New cards

Java compiler

does not translate a java program into assembly language or machine language, instead it gets converted to byte-code

28
New cards

java byte code

can be translated into any machine language so any computer can read it.

29
New cards

interpreter

translates each byte code instruction

30
New cards

Most java programs today are executed using..

Just-in-time where byte code is compiled and saved for later use so it doesn’t have to be re-compiled.

31
New cards

portability of byte code

can be sent over the internet and used anywhere in the world making java suitable for internet applications.

32
New cards

Classes in programing

pieces of a program in javac

33
New cards

class loader

automatically connects the classes together

34
New cards

applications

Regular programs meant to be run on ur comp

35
New cards

applets

little applications meant to be sent to another location on the internet and run there

36
New cards

programmer

the person who writes the program

37
New cards

package

is a library of classes that have been defined already

38
New cards

the items inside the parentheses are called

arguments

39
New cards

variable

something that can be changed and stores data

40
New cards

Statement

instruction in the computer that ends with a semicolon

41
New cards

syntax

the grammar rules for programming.

42
New cards

IDE

integrated development environment

43
New cards

object

the instances of a class that are created to use the attributes and methods of a class

44
New cards

methods are called

actions

45
New cards

The three design principles of OOP

encapsulation, polymorphism and inheritance

46
New cards

encapsulation

hides internal interpretation (void stuff)

47
New cards

polymorphism

Same program can be used for other things in different context

48
New cards

inheritance

higher more inclusive; lower more exclusing (gets more specific as they go down)

49
New cards

algorithms

a means of performing an action

50
New cards

bug

an error in a program

51
New cards

three kinds of error

syntax, runtime and logic

52
New cards

syntax error

grammatical mystics like no semi colon or something (compiler catches it)

53
New cards

runtime error

errors that are detected when ur programing is running but not during compilation

54
New cards

Logic error

human detects it because incorrect output

55
New cards

value

the data stored by the variable

56
New cards

camelCase

the way variables are named

57
New cards

declaring

giving it a type like int/String/Double/Float/Char

58
New cards

class types

used for a class of objects and has both data and methods

59
New cards

Primitive type

simple, non decomposable values sucha s an individual number or individual character

60
New cards

Primitive types (more memory to less memory)

byte - short - int - long - float - double - char - boolean

61
New cards

identifier

a name of the variable

62
New cards

rules for identifiers

  • letters

  • digits (0-9)

  • the underscore character (_)

  • the first character cannot be a digit or capital

63
New cards

Keywords or reserved words

can’t be used in identifiers because they already have meaning

64
New cards

initialized

when a variable is declared but not given a value

65
New cards

import.java.util.Scanner

is used to get the users input

66
New cards

Scanner keyboard = new Scanner(System.in);

gives the scanner an obj so later on keyboard.nextLine(); can be used

67
New cards

e notation

this is during float and can also be imprecise

68
New cards

operands

+, -, *, /

69
New cards

precedence rules

first: +,-,!, ++, and --

second: *,/,%

third: + and -

70
New cards

double quote

\”

71
New cards

single quote

\’

72
New cards

backlash

\\

73
New cards

new line

\ n

74
New cards

carriage return

\ r

75
New cards

tab

\ t

76
New cards

javadoc comments

/** and */

77
New cards

lexicographic order

is similar to alphabetical order, but it is based on the order of the characters in the ASCII (and unicode) character set

78
New cards

.compareTo()

a negative number if first part precedes second part, 0 if they are equal and positive if second part precedes the first part

79
New cards

the exit method

used when a situation arises that makes continuing the program pointless. (System.exit(0))

80
New cards

Switch statements

basically an if-else statement on crack with colons

81
New cards

Break statement

after one case if you put break it won’t consider any of the other cases (break;)

82
New cards

Enumeration

lists the values a variable can have making it restrictive

83
New cards

while loop

isn’t always executed if the conditions don’t require it to

84
New cards

do-while loop

will run once even if conditions aren’t met

85
New cards

a loop that repeats without ever ending is called

infinite loop

86
New cards

For loop

executes a loop after a condition is met for a certain number of times

87
New cards

syntax for For loop

(initialization, condition, update)

88
New cards

continue statement

ends current loop iteration and begins the next one (continue;) recommended to avoid

89
New cards

assertion checks

something that says something about the state of the program

90
New cards