Home
Explore
Exams
Search for anything
Login
Get started
Home
Other
Other Subject
CSC 216
0.0
(0)
Rate it
Learn
Practice Test
Spaced Repetition
Match
Flashcards
Card Sorting
1/198
Earn XP
Description and Tags
Other Subject
University/Undergrad
Add tags
199 Terms
View all (199)
Star these 199
1
New cards
Object construction
Type name = new Type(parameters)
2
New cards
default constructor
public methodName()
3
New cards
defined constructor
public methodName(parameters)
4
New cards
Dereferencing an object
name.method(parameters)
5
New cards
Abstract Windowing Toolkit
java.awt.*;
6
New cards
Java Extension Swing
javax.swing.*;
7
New cards
What class does Java Extension Swing inherit from?
The Abstract Windowing Toolkit
8
New cards
What are the 4 `key GUI Libraries?
-Java GUI Libraries
-Java FX
-Java Eclipse Library
-Android GUI Libraries
9
New cards
Android GUI Libraries
- android.view.*;
- android.widget.*;
10
New cards
Frame
Top level window with a title and border
11
New cards
Container
Component that holds other components
12
New cards
Button
Can be clicked to cause an action
13
New cards
Radio Button
A group of options where only one can be selected
14
New cards
Checkbox
A group of options where 0 to all can be selected
15
New cards
Label
Read-only text
16
New cards
List
Scrollable lines of text
17
New cards
Choice
Popup menu in a fixed position
18
New cards
Text field
Editable line of text
19
New cards
Text area
Editable multiline area of text with ability to scrollCanvas
20
New cards
Canvas
Area to draw graphics
21
New cards
Panel
A component that can hold other components or panels
22
New cards
Frame Swing Component
JFrame
23
New cards
Container Swing Components
- java.awt.Container;
- JComponent
24
New cards
Button Swing Component
JButton
25
New cards
Radio Button Swing Components
JRadioButton added to a ButtonGroup
26
New cards
Checkbox Swing Components
JCheckBox added to a ButtonGroup
27
New cards
Label Swing Component
JLabel
28
New cards
List Swing Component
JList
29
New cards
Choice Swing components
JMenuItem in JMenu in JMenuBar
30
New cards
Text field Swing Component
JTextField
31
New cards
Text Area Swing Component
JTextArea
32
New cards
Canvas Swing Component
java.awt.Canvas
33
New cards
Panel Swing Component
JPanel
34
New cards
Top-level containers
Containers that are the top of any Swing containment hierarchy
35
New cards
What are 2 examples of top-level containers in a GUI?
-JFrame
-JDialog
36
New cards
General Purpose Containers
Used for holding GUI information and components
37
New cards
What are 2 examples of general purpose containers in a GUI?
-JPanel
-JScrollPane
38
New cards
Special Purpose containers
Provide flexibility and functionality to the GUI
39
New cards
What are 2 examples of special purpose containers in a GUI?
-JRootPane
-JLayeredPane
40
New cards
Basic Controls
Components that get input from the user.
41
New cards
What are 3 examples of basic controls in a GUI?
-JButton
-JList
-JMenu
42
New cards
Uneditable displays
Give users information
43
New cards
What are 2 examples of uneditable displays in a GUI?
-JLabel
-JProgressBar
44
New cards
Editable displays of formatted information
Holds formatted info that can be edited by the user.
45
New cards
What are 2 examples of editable displays of formatted information in a GUI?
-JFileChooser
-JColorChooser
46
New cards
Accessing an implicit parameter
this.variable
47
New cards
Verification
Are we building the product right?
48
New cards
Validation
Are we building the right product?
49
New cards
Closed box testing
tests output/input of a program but not the internals.
50
New cards
Open Box Testing
Testing the code within the program
51
New cards
How can you traverse through a linked list in a more efficient way?
For each loop with the Iterable interface.
52
New cards
List interface using the Iterable interface
public interface List
extends Iterable
53
New cards
Iterator method that returns true if there are more elements to examine.
hasNext()
54
New cards
Iterator method that returns the next element from the collection (throws a
NoSuchElementException if there are none left to examine)
next()
55
New cards
Iterator method that removes from the collection the last value returned by next()(throws IllegalStateException if you have not called
next() yet)
remove()
56
New cards
What can you not do with generic (E) objects?
construct E objects
57
New cards
What @ symbol occurs when you type cast without checking to see if the casted object is that type?
@SuppressWarnings
58
New cards
What are the only two methods you need to make an unmodifiable list?
get() and size()
59
New cards
What are the methods you need to implement to create a modifiable list
set(int, E)
60
New cards
What methods do you need to create a variable-size list?
add(int, E) and remove(int)
61
New cards
What is an Unmodifiable list?
A list that cannot be changed once it is created.
62
New cards
What is a modifiable list
A list that can change the content within its existing elements
63
New cards
What is a variable size list?
A list that can change the contents and size
64
New cards
What are the four things that ArrayLists allow?
null elements, duplicates, growing forever, and maintaining elements in sorted order.
65
New cards
Why do you need to make the last element null after removing an element in the ArrayList?
To allow the program to garbage collect it.
66
New cards
when you add a type to a class header it is...
declared
67
New cards
when you have a type in a class header that implements an interface with another type, the type is...
used by the interface
68
New cards
What do the abstract list classes in the Java Collections Framework provide?
Partial implementation of the List interface methods
69
New cards
When creating a Final State Machine (FSM) what three things are important to keep in mind?
user inputs, states the machine can be in, and transitions out of those states
70
New cards
What can transitions represent in an FSM?
High level abstractions of user input
71
New cards
What do FSMs allow the programmer to do?
Create precise descriptions of programming language syntax.
72
New cards
The compiler can use an FSM to do what?
Check the syntax for input
73
New cards
If the FSM ends in a final state, then...
Everything compiles
74
New cards
If the FSM does not end in a final state, then...
The program throws a compiler error
75
New cards
An input that does not have a transition out of the state is called an
implicit error path
76
New cards
What does a Text-Processing FSM do?
Finds a specific type of text within another String
77
New cards
What are the three ways to write an FSM?
using a while loop with a switch statement inside, using a for loop with if/else statements, and using the state pattern.
78
New cards
What is runtime efficiency?
A measure of the use of computing resources relative to time and memory
79
New cards
When calculating runtime efficiency, every java statement
takes the same amount of time to run
80
New cards
A method calls runtime is measured by...
the number of statements in its body
81
New cards
The runtime of a loop is...
the number of times it loops times the statements in the loop.
82
New cards
Algorithmic Growth Rate
The change in time as the input data size (N) changes
83
New cards
Complexity Classes
A category of algorithm efficiency based on its relationship to the input size
84
New cards
Order the complexity classes from fastest to slowest
constant, logarithmic, linear, log-linear, quadratic, cubic, exponential
85
New cards
Constant complexity class and what happens when its doubled.
O(1). Unchanged
86
New cards
Logarithmic complexity class and what happens when its doubled.
O(log₂N). Increases slightly.
87
New cards
Linear complexity class and what happens when its doubled.
O(N). Doubles
88
New cards
log-linear complexity class and what happens when its doubled.
O(Nlog₂N). Slightly more than doubles
89
New cards
Quadratic complexity class and what happens when its doubled.
O(N²). quadruples.
90
New cards
Cubic complexity class and what happens when its doubled.
O(N³). Multiplies by 8.
91
New cards
Exponential complexity class and what happens when its doubled.
O(2ⁿ). Multiplies drastically.
92
New cards
What is the runtime efficiency of the add(value) in the ArrayList method?
Constant
93
New cards
What is the runtime efficiency of the add(index, value) in the ArrayList method?
linear
94
New cards
What is the runtime efficiency of the add(value) in the ArrayList method? (with growing the array)
Linear
95
New cards
What is the runtime efficiency of the indexOf in the ArrayList method?
linear
96
New cards
What is the runtime efficiency of the get in the ArrayList method?
constant
97
New cards
What is the runtime efficiency of the remove in the ArrayList method?
linear
98
New cards
What is the runtime efficiency of the set in the ArrayList method?
constant
99
New cards
What is the runtime efficiency of the size in the ArrayList method?
constant
100
New cards
What is the runtime efficiency of the add(value) in the LinkedList method?
linear
Load more
Explore top notes
Photography: Mid term complete guide.
Updated 444d ago
Note
Preview
006 - Cell Membrane
Updated 475d ago
Note
Preview
Eukaryotic Chromosomes Need Chromatin Structures
Updated 817d ago
Note
Preview
Metals
Updated 809d ago
Note
Preview
Unit 2: Early River Civilizations
Updated 156d ago
Note
Preview
Skill in Sport
Updated 278d ago
Note
Preview
Railroads Notes
Updated 394d ago
Note
Preview
Untitled Flashcards Set
Updated 37d ago
Note
Preview
Explore top flashcards
Geology Study Guide #2
Updated 507d ago
Flashcards (50)
Preview
Memory and Cognition
Updated 40d ago
Flashcards (50)
Preview
female reproductive system | gen bio ii
Updated 416d ago
Flashcards (58)
Preview
Duits woorden p.20
Updated 682d ago
Flashcards (43)
Preview
The Columbian Exchange, Spanish exploration, and Conquest flashcards
Updated 842d ago
Flashcards (21)
Preview
Terms and Concepts- Final Exam FIN 3403
Updated 836d ago
Flashcards (109)
Preview
woordenschat m10
Updated 737d ago
Flashcards (23)
Preview
Unit 1: Period 1: 1491-1607
Updated 717d ago
Flashcards (25)
Preview