Chapter 1-2 Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

Define hardware

A

physical devices that you see on your desktop

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

define software

A

programs that give the hardware useful functionality

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

name the two types of software

A

system software and application software

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a user interface, and what’s an example of one

A

it supports moment to moment communication between the user and the computer: like a keyboard and mouse

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

what is an example of an auxiliary input output device

A

printers and scanners

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

what are auxiliary storage devices, and what’s an example of one

A

it’s basically secondary memory. examples would be hard disks, CD ROMS, and flash memory sticks

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

network connection

A

so, connection to the internet, with routers and modems

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

what is internal memory?

A

it is RAM (which is random access memory or primary memory). it’s fast and relatively small

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

what is a central processing unit?

A

it performs the work on a computer, consists of billions of transistors

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

what is a bit?

A

smallest unit of information. processed by a computer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

what is a byte?

A

8 adjacent bits

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

what is a byte’s location in memory called?

A

its’ address

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

how would you look at the software development process

A

through the waterfall method

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

name the steps of the waterfall method

A
  1. customer request 2. analysis 3. design 4. implementation 5. integration 6. maintenance
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

what’s mnemonic device you can use for the waterfall method

A

CADIIM

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

which phase is the most expensive in the waterfall method

A

maintenance

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

what is encapsulation

A

combining the description of resources and behaviors in a single software entity

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

what is inheritance

A

the hierarchical class structure and sharing of instance variables and methods with subclasses

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

what is polymorphism

A

different types of objects can understand the same message.

20
Q

true or false: an object’s response to a message does NOT depend on the object’s class

A

false. an object’s response to a message DOES depend on the object’s class

21
Q

what is information hiding

A

it’s providing access to services, but not to data resources.

22
Q

true or false: classes are organized in a hierarchy

A

true. classes are organized in a hierarchy

23
Q

what does a root class do

A

it defines methods and instance variables shared by its subclasses.

24
Q

what do subclasses do

A

they define additional methods and instance variables

25
Q

what type of language is java?

A

it is a modern object oriented language.

26
Q

why is java secure? (think about construction)

A

it is secure because it enables construction of virus free, tamper free systems

27
Q

why is java robust? (think about development)

A

it is robust because it supports development of programs that do not overwrite memory

28
Q

why is java portable? (think about how it runs)

A

it is portable because it can be run on different types of computers without change

29
Q

true or false: java supports threads

A

true! java does supports threads!! it’s a process that can run concurrently with other processes

30
Q

Java resembles ___.

A

java resembles C++. it’s easy for C++ programmers to learn Java

31
Q

what are the weaknesses of Java?

A

it’s slow and it’s prone to viruses because it’s commonly used

32
Q

what is a java virtual machine?

A

the java compiler translates Java source code into java byte code

33
Q

what is byte code

A

it’s pseudo machine language, executed by the JVM

34
Q

what is an interpreter

A

a program that behaves like a computer

35
Q

why is a virtual machine great?

A

basically: all machines use a different machine language - before you’d have to write a program that could only run on one type of machine.. if you wanted to run it somewhere else, you’d have to rewrite the program. now, you can write once, run everywhere

36
Q

what are java applets?

A

java programs that run in a Web browser. a JVM is incorporated into the browser

37
Q

two types of user interface style:

A

graphical user interface (program interacts with users via windows with graphical components) and terminal input output interface (programs interact with users via a command terminal)

38
Q

what is a program

A

it’s a sequence of instructions that perform a task

39
Q

what is source code

A

the programming language instructions for a program

40
Q

what is the file extension type for a java source code file?

A

.java

41
Q

what is the file extension type for a java class file?

A

.class

42
Q

what are the steps to make a java program?

A
  1. edit the .java file 2. compiling turns .java file into .class file 3. execute the program
43
Q

what does the import statement do

A

allows us to use classes that other programmers have written. it also tells the java compiler where to find specifications for the class

44
Q

what should we use when writing source code?

A

use a text editor, integrated development environment (we use BlueJ which detects syntax errors)

45
Q

the main factor affecting readability is ______.

A

layout

46
Q

true or false, the compiler does not ignore layout

A

false. the compiler DOES ignore layout

47
Q

why is it important for you code to be readable by others?

A

because it may be maintained by others