Font size
Worksheetssoftware dev 2
Total questions: 80
Worksheet time: 41mins
while loop
an iterative structure that loops until a conditional statement is no longer true
a loop that iterates, or repeats, for a set number of times
makes a decision based on input
creates spaces in memory that holds elements all of the same types
for loop
a loop that iterates, or repeats, until a condition is met
an iterative structure that loops for a set number of times
makes a decision based on input
creates spaces in memory that holds elements all of the same types
if - else statement
a conditional statement that works great for a range of values like if age > 65
a decision structure that works great for a bunch of specific values like menu items
trys protected code, catches exceptions
creates spaces in memory that holds elements all of the same types
a loop that iterates, or repeats, until a condition is met
creates spaces in memory that hold elements of the same type, you find them by calling on their index, they CAN change size
creates spaces in memory where you need the key-value pair to find them
creates spaces in memory that hold elements of the same type, you find them by calling on their index, they CANNOT change size
type of variables a function wants, found in the parenthesis
public static int countDown( int num ){
the information sent in parenthesis
countDown( 12 );
parameter
ARGUMENT!!!!
int
choose argument, an argument is sent to a function in parenthesis
Which TWO are conditional structures?
if-else
for loop
switch
while loop
A bit is
An agreed upon set of rules or guidelines for doing things.
A single unit of information, it can be a 1 or a 0 and represents an electrical signal on a wire that is on or off.
Number of bits that are conveyed or processed per unit of time
Time it takes for a bit to travel from its sender to its receiver
int i = 1;
while( i < 5){
i++;
System.out.print(i);
}
What is the last value of i?
5
2GB
4
6
int a = 5, b = 3, c = 11;
if( a == b || a < c ) {
System.out.println( “ fresh ” );
} else {
System.out.println( “ cut ” );
}
fresh
cut
nothing
fresh
cut
int score = 37;
score = score/10;
switch( score ){
case 4:
System.out.println( " score " );
break;
case 3:
System.out.println( score );
break;
default:
System.out.print( " s " );
}
What will print?
3
score
s
nothing will print
for(int i = 0; i < 4; i++){
System.out.println(i);
}
What will the printout be?
012345
01234
1
2
3
4
0
1
2
3
An XNOR gate is a combination of which two gates?
NOT and OR
NOT and XOR
NOT and AND
OR and XOR
int[] nums = new int[8];
for(int i = 0; i < nums.length; i++){
System.out.print("Enter a number: ");
nums[i] = input.nextInt();
}
searching
streaming
printing
filling
String[] names = { "Nath", "Logan", "Wyatt"};
System.out.print( nums[1] )
Nath
Logan
Wyatt
out of bounds error
Create an array of 12 strings called seasons.
String[] seasons = new String[12];
String seasons = new String[12];
String[] seasons = new String[];
String[12] seasons = new String[];
a table where rows are items and columns are descriptors
relational database
hashmap
array
2D array
We are use Scanner Library in java for...
Give permissions to the user
Correcting software errors
Allows user to read data
Allows the user to enter data
all of the syntax, functions, and statements that exist in a language
documentation
3rd-party
API
library
Recursion is when a function loops by
invoking itself.
starting over and increasing incrementing 'i' each time.
object________ member of class
Is-A
Was-From
Dog myers = new Dog();
The name of the class is:
Dog
myers
Dog myers = new Dog();
myers.getBreed();
The name of the object being made and looked at:
Dog
myers
Keeping attributes protected in a class
abstraction
inheritance
encapsulation
polymorphism
This is used to created a class that when extended, tells the other classes what they have to have. For example, our Examples classes had to have a .run() method.
abstraction
inheritance
encapsulation
polymorphism
When parent or superclasses give their attributes and methods to child or subclasses.
abstraction
inheritance
encapsulation
polymorphism
The same method has different definitions in different classes. This means that the .speak() method will do something different when duck.speak() than dog.speak().
abstraction
inheritance
encapsulation
polymorphism
social engineering
getting someone's personal information for malicious purposes
getting someone's personal information for malicious purposes
through email
getting someone's personal information for malicious purposes
by pretending to be a trusted entity
sounds positive like social change... it's got to be a good thing right??
spoofing
getting someone's personal information for malicious purposes
getting someone's personal information for malicious purposes
through email
getting someone's personal information for malicious purposes
by pretending to be a trusted entity
sounds positive like social change... it's got to be a good thing right??
phishing
getting someone's personal information for malicious purposes
getting someone's personal information for malicious purposes
through email
getting someone's personal information for malicious purposes
by pretending to be a trusted entity
sounds positive like social change... it's got to be a good thing right??
SQL injections
used to attack data-driven applications, in which malicious SQL statements are inserted into an entry field
XSS enables attackers to inject client-side script into web pages viewed by other users
process of deliberately, permanently, and irreversibly removing or destroying the data stored on a memory device
confidentiality, integrity, availability
cross-site scripting
used to attack data-driven applications, in which malicious SQL statements are inserted into an entry field
XSS enables attackers to inject client-side script into web pages viewed by other users
process of deliberately, permanently, and irreversibly removing or destroying the data stored on a memory device
confidentiality, integrity, availability
data sanitization
used to attack data-driven applications, in which malicious SQL statements are inserted into an entry field
XSS enables attackers to inject client-side script into web pages viewed by other users
process of deliberately, permanently, and irreversibly removing or destroying the data stored on a memory device
confidentiality, integrity, availability
right to use copyrighted material or intellectual property without the need to pay royalties or license fees
royalty free
fair use
data piracy
HIPPA
brief excerpts of copyright material may, under certain circumstances, be quoted verbatim for purposes such as criticism, news reporting, teaching, and research, without the need for permission from or payment to the copyright holder
royalty free
fair use
data piracy
HIPPA
the illegal copying, distribution, or use of software.
royalty free
fair use
data piracy
HIPPA
(Health Insurance Portability and Accountability Act) legislation that provides data privacy and security provisions for safeguarding medical information
royalty free
fair use
data piracy
HIPPA
(Children's Online Privacy Protection Act) law created to protect the privacy of children under 13 and managed by the Federal Trade Commission (FTC)
COPPA
CISPA
FERPA
CPI
(Cyber Intelligence Sharing and Protection Act) allows for voluntary information sharing between private companies and the government in the event of a cyber attack
COPPA
CISPA
FERPA
CPI
(Family Educational Rights and Privacy Act): a federal law that protects the privacy of student education records
COPPA
CISPA
FERPA
PCI
(Payment Card Industry) information security standard for organizations that handle branded credit cards, created to increase controls around cardholder data to reduce credit card fraud
COPPA
CISPA
FERPA
PCI
collects information and sells it
GDPR
databrokers
ISP
IPv6
Internet Service Provider, like Cox
GDPR
databrokers
ISP
IPv6
Your address on the internet, used to be v4, but the Internet grew and we needed more addresses
GDPR
databrokers
ISP
IPv6
OSI model, in the correct order from top (7) to bottom (1)
Application
Presentation
Session
Transport
Network
Data Link
Physical
Application
Session
Presentation
Transport
Data Link
Physical
Network
Physical
Application
Presentation
Session
Transport
Network
Data Link
Physical
Data Link
Application
Presentation
Session
Transport
Network
VCS
version control system, LIKE GIT, helps to keep track of and suggest changes to a group before committing them,
very cool system, a computer setup you like
volunteer control system, software to keep track of volunteers for jobs and the hours worked
vex control scan
merge
turns a suggested branch into part of the main code
suggests a change to the main code
download content to the local repository
source code is finalized and released to the public
Which creates spaces in memory that are accessed by their index and CAN change size?
ArrayList
HashMap
Array
LinkedList
Pretty effective and moderately expensive Software Development Life Cycle (SDLC), its main feature is that it can be iterated or loop through the steps repeatedly
backstreet turtle
agile
waterfall
spiral
to look in each space of a 2D array
for loop
nested for loops
microscope
computer, but I'm not wrong
to look in each space of an array
for loop
nested for loops
microscope
computer, but I'm not wrong
creating 2D array that isn't initialized
int[][] nums = new int[2][2];
int nums[] = new int[2];
int[][] nums = {{1,2},{3,4}};
int[] nums = {1,2,3,4};
initializing a 2D array
int[][] nums = new int[2][2];
int nums[] = new int[2];
int[][] nums = {{1,2},{3,4}};
int[] nums = {1,2,3,4};
decryption
plaintext to ciphertext
ciphertext
to plaintext
ciphertext to ciphertext
plaintext to plaintext
sender and receiver share the same key
symmetric-key encryption
asymmetric-key encryption
take blocks of bits, encrypt them as a single unit
stream cipher
block cipher
mega cipher
data cipher
Which variables take up 2 bytes of space?
boolean
short
byte
int
Which is a whole number that takes up the least amount of space but has the smallest range of answers?
byte
short
double
float
Which is a decimal number that takes up the least amount of space but has the smallest range of answers?
byte
short
double
float
Which variable for decimals has the largest range of values?
byte
short
double
float
Which shows the correct order from least to greatest in terms of bytes used to create?
byte
short
int
float
double
byte
short
int
double
float
short
byte
int
float
double
byte
int
short
double
float
can be used by all functions
global
constant or final
local
block
its value cannot be changed
global
constant or final
local
block
can only be used in the function it was created
global
constant or final
local
block
can only be used in the loop it was created in
global
constant or final
local
block
String a = "sun";
String c = "shine";
System.out.print( c.concat("c") );
shineshine
sunshine
shinesun
shinec
String a = "sunshine";
System.out.print( a.length() );
8
7
true
false
int i = 7 % 4;
while( i < 3){
i++;
System.out.print(i);
}
3
2
34
nothing
int i = 7 % 4;
do{
i++;
System.out.print(i);
}while( i < 3);
3
4
34
nothing
Which of these stores data and uses a hashing function to quickly find key-value pairs?
ArrayList
Array
HashMap
LinkedList
OSI
the Open Source Interconnection model describes how computers transmit information over the Internet using 7 layers of protocols
the Over Space Internet model describes the Internet of Things, IoT, using 10 layers
Breaks a project down into its smaller pieces
top-down design
SDLC
waterfall
type-A people
Which is the most efficient according to the Big O Notation?
merge sort
bubble sort
insertion
Simone sort
Which part of SDLC means problem, possible solution, available resources, cost, time
planning
analysis
design
development
CREATE TABLE tableName {
creates a new relational database
queries a relational database
removes a relational database
adds to a relational database
SELECT thisElement , FROM * thatTable
creates a new relational database
queries a relational database
removes a relational database
adds to a relational database
UPDATE Customers
SET ContactName = 'Alfred Schmidt',
City= 'Frankfurt'WHERE CustomerID = 1;
creates a new relational database
queries a relational database
removes a relational database
adds to a relational database
start of production in SDLC
planning
analysis
design
development
architecture of product, including data flow, features in SDLC
planning
analysis
design
development
