Big Java: 1 Flashcards

1
Q

definition of computer program

A

sequence of instructions and decisions

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

definition of programming

A

act of designing and implementing computer programs

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

what is the CPU and what does it do?

A

the “heart of the computer”: performs program control and data processing

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

definition of a high level programming language

A

language that allows you to specify the instructions that you want the computer to carry out

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

what is a compiler?

A

a kind of translator between the programming language and the CPU necessary for the specified tasks of the language to be carried out

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

name key feature of Java programs

A

“they are distributed as instructions for a virtual-machine, making them platform independent”

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

two examples of integrated development environments you used this semester

A

CUNIX and Eclipse

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

example of an editor you used this semester

A

Pico

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

example of a console window you used this semester

A

the command line on CUNIX

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

Write HelloWorld program

A

just do it

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

What would the name of your “HelloWorld” file be? How is this reflected in your code for this program?

A
"HelloWorld.java" 
Reflected, as all java file names are, through the name of the class: "public class HelloWorld"
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q
the first letter of the class name must always be what? 
(name the characteristic)
A

capitalized

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

simple definition of classes

A

the fundamental building blocks of java

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

definition of method

A

a collection of programming instructions that describe how to carry out a particular task

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

definition of a statement

A

an instruction of a method, ends in a semi-colon

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

your class name should reflect what?

A

the function of your program

17
Q

definition of an argument

A

any values a method needs to carry out its tasks

18
Q

definition of a compile-time error plus example

A

syntax errors (i.e. writing “System.ou.print”)

19
Q

definition of run-time error plus example

A

logic errors; a program doing something the user did not intend for it to do (i.e. adding instead of multiplying, as was intended)