Final Exam Flashcards

1
Q

How can I make a line in processing?

A

line(x1,y2, x2, y2)

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

How can I make an ellipse in processing?

A

ellipse (x, y, width, height)

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

How can I make a rectangle in processing?

A

rect(x, y, width, height)

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

How can I make a triangle in processing?

A

triangle(x1, y1, x2, y2, x3, y3)

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

what does the keyword class mean?

A

declares class

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

what does the keyword extends mean?

A

tells the programmer that a class inherits attributes from another class.

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

what does the keyword implements mean?

A

declares a class that implements an interface.

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

what does the keyword abstract mean?

A

indicates that a class or a method is abstract and cannot be instantiated or declared.

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

what does the keyword package mean?

A

Declares a package for organizing classes, prevents naming conflicts.

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

what does the keyword public mean?

A

Lets the programmer know that this class can be used and extended into other classes.

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

what does the keyword private mean?

A

Let’s the programmer know that this class cannot be used and extended into other classes. Cannot be used in subclasses or subpackages.

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

what does the keyword protected mean?

A

Let’s the programmer know that this class cannot be accessed in another class but can be used in subclasses or subpackages. Less restrictive than private but more restrictive than public.

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

what does the keyword static mean?

A

This lets the programmer know that this variable, method, or sub-class can be accessed through all instances of the class.

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

what does the keyword final mean?

A

This lets the programmer know that the class, method, or variable is unchangeable and unextendable.

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

What does the wrapper class do?

A

Allows a primitive type to be stored as an object. Example: Integer ob1; int num1 = 70; ob1 = num1;

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

What comes first in the anatomy of a class?

A

Data declarations, then method declarations.