Test 2 Flashcards

0
Q

Software development 1950-60s vs now

A

More user friendly now, better documented, less cryptic, teamwork, more emphasis on readability/reusability than efficiency

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

Software applications

A

Word processing, AI, Databases, Internet/email, games, graphics, etc

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

Software development tools

A

Editor=write source code, compiler=translated to object, linker=converts object modules into executable program, debugger=finds logical mistakes

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

Java’s unique hybrid system

A

Uses compiler to covert source code to byte code (for platform independent Java Virtual Machine) and interpreter to convert byte code to object code

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

Java diagram steps

A

Editor (write source code)->hello.java (source)->compiler->hello.class (byte)->execute to network->interpreter (on different platforms)

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

JDK

A

Java development kit (install first, contains Java files) *command-line tools, not GUI

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

1 nibble

A

4 bits

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

1 byte

A

8 bits (256 combos)

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

2 bytes have…

A

256*256= 65,536 combos

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

How do you covert base-10 to binary?

A

Write out 8 spaces labelled 128, 64, 32, 16, 8, 4, 2, 1. Find the highest power of 2 that divides into the given number and subtract it from that number. Place that # on its space. Continue subtracting powers of 2 until reaching zero. Fill in blank spaces with 0s

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

How to convert binary to decimal (base-10)?

A

Write out the powers of 2 under each digit. Add up the ones with a 1 in the space.

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

When adding/subtracting binary, what is 1, 2, and 3?

A

1=01, 2=10, 3=11

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

JVM

A

Executes any program compiled into Java byte code

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

4 equipment functions of a computer

A

Processing, storage, input, output

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

Parts of JDK

A

Javac (compiler) java (interpreter) appletviewer (tests applets w/o browser) javadoc (generate HTML documentation “docs” from source) jar (packs classes into jar files/packages)

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

Why are byte codes so useful?

A

Platform independent, loads faster from the internet, source code not revealed to end user, added security checks

16
Q

IDE

A

Integrated Development Environment (net beans, compiler, interpreter etc)

18
Q

GUI

A

Graphical user interface

Allows you to click on icons and a hidden list of commands will automatically created

19
Q

Main method

A

Where a computer begins to execute A program

20
Q

Can a java application have several main functions?

A

No