Chapter 1-2 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
what type of language is java?
it is a modern object oriented language.
26
why is java secure? (think about construction)
it is secure because it enables construction of virus free, tamper free systems
27
why is java robust? (think about development)
it is robust because it supports development of programs that do not overwrite memory
28
why is java portable? (think about how it runs)
it is portable because it can be run on different types of computers without change
29
true or false: java supports threads
true! java does supports threads!! it's a process that can run concurrently with other processes
30
Java resembles ___.
java resembles C++. it's easy for C++ programmers to learn Java
31
what are the weaknesses of Java?
it's slow and it's prone to viruses because it's commonly used
32
what is a java virtual machine?
the java compiler translates Java source code into java byte code
33
what is byte code
it's pseudo machine language, executed by the JVM
34
what is an interpreter
a program that behaves like a computer
35
why is a virtual machine great?
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
what are java applets?
java programs that run in a Web browser. a JVM is incorporated into the browser
37
two types of user interface style:
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
what is a program
it's a sequence of instructions that perform a task
39
what is source code
the programming language instructions for a program
40
what is the file extension type for a java source code file?
.java
41
what is the file extension type for a java class file?
.class
42
what are the steps to make a java program?
1. edit the .java file 2. compiling turns .java file into .class file 3. execute the program
43
what does the import statement do
allows us to use classes that other programmers have written. it also tells the java compiler where to find specifications for the class
44
what should we use when writing source code?
use a text editor, integrated development environment (we use BlueJ which detects syntax errors)
45
the main factor affecting readability is ______.
layout
46
true or false, the compiler does not ignore layout
false. the compiler DOES ignore layout
47
why is it important for you code to be readable by others?
because it may be maintained by others