wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

software dev 2

Total questions: 80

Worksheet time: 41mins

Name
Class
Date
1.

while loop

a)

an iterative structure that loops until a conditional statement is no longer true

b)

a loop that iterates, or repeats, for a set number of times

c)

makes a decision based on input

d)

creates spaces in memory that holds elements all of the same types

2.

for loop

a)

a loop that iterates, or repeats, until a condition is met

b)

an iterative structure that loops for a set number of times

c)

makes a decision based on input

d)

creates spaces in memory that holds elements all of the same types

3.

if - else statement

a)

a conditional statement that works great for a range of values like if age > 65

b)

a decision structure that works great for a bunch of specific values like menu items

c)

trys protected code, catches exceptions

d)

creates spaces in memory that holds elements all of the same types

4.
array
a)

a loop that iterates, or repeats, until a condition is met

b)

creates spaces in memory that hold elements of the same type, you find them by calling on their index, they CAN change size

c)

creates spaces in memory where you need the key-value pair to find them

d)

creates spaces in memory that hold elements of the same type, you find them by calling on their index, they CANNOT change size

5.

type of variables a function wants, found in the parenthesis

public static int countDown( int num ){

a)
parameters
b)
arguments
6.

the information sent in parenthesis

countDown( 12 );

a)

parameter

b)

ARGUMENT!!!!

c)

int

d)

choose argument, an argument is sent to a function in parenthesis

7.

Which TWO are conditional structures?

a)

if-else

b)

for loop

c)

switch

d)

while loop

8.

A bit is

a)

An agreed upon set of rules or guidelines for doing things.

b)

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.

c)

Number of bits that are conveyed or processed per unit of time

d)

Time it takes for a bit to travel from its sender to its receiver

9.

int i = 1;

while( i < 5){

i++;

System.out.print(i);

}

What is the last value of i?

a)

5

b)

2GB

c)

4

d)

6

10.

int a = 5, b = 3, c = 11;

if( a == b || a < c ) {

System.out.println( “ fresh ” );

} else {

System.out.println( “ cut ” );

}

a)

fresh

b)

cut

c)

nothing

d)

fresh

cut

11.

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?

a)

3

b)

score

c)

s

d)

nothing will print

12.

for(int i = 0; i < 4; i++){

System.out.println(i);

}

What will the printout be?

a)

012345

b)

01234

c)

1

2

3

4

d)

0

1

2

3

13.

An XNOR gate is a combination of which two gates?

a)

NOT and OR

b)

NOT and XOR

c)

NOT and AND

d)

OR and XOR

14.

int[] nums = new int[8];

for(int i = 0; i < nums.length; i++){

System.out.print("Enter a number: ");

nums[i] = input.nextInt();

}

a)

searching

b)

streaming

c)

printing

d)

filling

15.

String[] names = { "Nath", "Logan", "Wyatt"};

System.out.print( nums[1] )

a)

Nath

b)

Logan

c)

Wyatt

d)

out of bounds error

16.

Create an array of 12 strings called seasons.

a)

String[] seasons = new String[12];

b)

String seasons = new String[12];

c)

String[] seasons = new String[];

d)

String[12] seasons = new String[];

17.

a table where rows are items and columns are descriptors

a)

relational database

b)

hashmap

c)

array

d)

2D array

18.

We are use Scanner Library in java for...

a)

Give permissions to the user

b)

Correcting software errors

c)

Allows user to read data

d)

Allows the user to enter data

19.

all of the syntax, functions, and statements that exist in a language

a)

documentation

b)

3rd-party

c)

API

d)

library

20.
What is the correct way to create an array with these three numbers: 12  8  15
a)
int[] = {12, 8, 15};
b)
int[] nums = {12  8  15};
c)
int[] nums = {12, 8, 15}
d)
int[] nums = {12, 8, 15};
21.

Recursion is when a function loops by

a)

invoking itself.

b)

starting over and increasing incrementing 'i' each time.

22.

object________ member of class

a)

Is-A

b)

Was-From

23.

Dog myers = new Dog();


The name of the class is:

a)

Dog

b)

myers

24.

Dog myers = new Dog();

myers.getBreed();

The name of the object being made and looked at:

a)

Dog

b)

myers

25.

Keeping attributes protected in a class

a)

abstraction

b)

inheritance

c)

encapsulation

d)

polymorphism

26.

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.

a)

abstraction

b)

inheritance

c)

encapsulation

d)

polymorphism

27.

When parent or superclasses give their attributes and methods to child or subclasses.

a)

abstraction

b)

inheritance

c)

encapsulation

d)

polymorphism

28.

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().

a)

abstraction

b)

inheritance

c)

encapsulation

d)

polymorphism

29.

social engineering

a)

getting someone's personal information for malicious purposes

b)

getting someone's personal information for malicious purposes

through email

c)

getting someone's personal information for malicious purposes

by pretending to be a trusted entity

d)

sounds positive like social change... it's got to be a good thing right??

30.

spoofing

a)

getting someone's personal information for malicious purposes

b)

getting someone's personal information for malicious purposes

through email

c)

getting someone's personal information for malicious purposes

by pretending to be a trusted entity

d)

sounds positive like social change... it's got to be a good thing right??

31.

phishing

a)

getting someone's personal information for malicious purposes

b)

getting someone's personal information for malicious purposes

through email

c)

getting someone's personal information for malicious purposes

by pretending to be a trusted entity

d)

sounds positive like social change... it's got to be a good thing right??

32.

SQL injections

a)

used to attack data-driven applications, in which malicious SQL statements are inserted into an entry field

b)

XSS enables attackers to inject client-side script into web pages viewed by other users

c)

process of deliberately, permanently, and irreversibly removing or destroying the data stored on a memory device

d)

confidentiality, integrity, availability

33.

cross-site scripting

a)

used to attack data-driven applications, in which malicious SQL statements are inserted into an entry field

b)

XSS enables attackers to inject client-side script into web pages viewed by other users

c)

process of deliberately, permanently, and irreversibly removing or destroying the data stored on a memory device

d)

confidentiality, integrity, availability

34.

data sanitization

a)

used to attack data-driven applications, in which malicious SQL statements are inserted into an entry field

b)

XSS enables attackers to inject client-side script into web pages viewed by other users

c)

process of deliberately, permanently, and irreversibly removing or destroying the data stored on a memory device

d)

confidentiality, integrity, availability

35.

right to use copyrighted material or intellectual property without the need to pay royalties or license fees

a)

royalty free

b)

fair use

c)

data piracy

d)

HIPPA

36.

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

a)

royalty free

b)

fair use

c)

data piracy

d)

HIPPA

37.

the illegal copying, distribution, or use of software.

a)

royalty free

b)

fair use

c)

data piracy

d)

HIPPA

38.

(Health Insurance Portability and Accountability Act)  legislation that provides data privacy and security provisions for safeguarding medical information

a)

royalty free

b)

fair use

c)

data piracy

d)

HIPPA

39.

(Children's Online Privacy Protection Act) law created to protect the privacy of children under 13 and managed by the Federal Trade Commission (FTC)

a)

COPPA

b)

CISPA

c)

FERPA

d)

CPI

40.

(Cyber Intelligence Sharing and Protection Act) allows for voluntary information sharing between private companies and the government in the event of a cyber attack

a)

COPPA

b)

CISPA

c)

FERPA

d)

CPI

41.

(Family Educational Rights and Privacy Act): a federal law that protects the privacy of student education records

a)

COPPA

b)

CISPA

c)

FERPA

d)

PCI

42.

(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

a)

COPPA

b)

CISPA

c)

FERPA

d)

PCI

43.

collects information and sells it

a)

GDPR

b)

databrokers

c)

ISP

d)

IPv6

44.

Internet Service Provider, like Cox

a)

GDPR

b)

databrokers

c)

ISP

d)

IPv6

45.

Your address on the internet, used to be v4, but the Internet grew and we needed more addresses

a)

GDPR

b)

databrokers

c)

ISP

d)

IPv6

46.

OSI model, in the correct order from top (7) to bottom (1)

a)

Application

Presentation

Session

Transport

Network

Data Link

Physical

b)

Application

Session

Presentation

Transport

Data Link

Physical

Network

c)

Physical

Application

Presentation

Session

Transport

Network

Data Link

d)

Physical

Data Link

Application

Presentation

Session

Transport

Network

47.

VCS

a)

version control system, LIKE GIT, helps to keep track of and suggest changes to a group before committing them,

b)

very cool system, a computer setup you like

c)

volunteer control system, software to keep track of volunteers for jobs and the hours worked

d)

vex control scan

48.

merge

a)

turns a suggested branch into part of the main code

b)

suggests a change to the main code

c)

download content to the local repository

d)

source code is finalized and released to the public

49.

Which creates spaces in memory that are accessed by their index and CAN change size?

a)

ArrayList

b)

HashMap

c)

Array

d)

LinkedList

50.

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

a)

backstreet turtle

b)

agile

c)

waterfall

d)

spiral

51.

to look in each space of a 2D array

a)

for loop

b)

nested for loops

c)

microscope

d)

computer, but I'm not wrong

52.

to look in each space of an array

a)

for loop

b)

nested for loops

c)

microscope

d)

computer, but I'm not wrong

53.

creating 2D array that isn't initialized

a)

int[][] nums = new int[2][2];

b)

int nums[] = new int[2];

c)

int[][] nums = {{1,2},{3,4}};

d)

int[] nums = {1,2,3,4};

54.

initializing a 2D array

a)

int[][] nums = new int[2][2];

b)

int nums[] = new int[2];

c)

int[][] nums = {{1,2},{3,4}};

d)

int[] nums = {1,2,3,4};

55.

decryption

a)

plaintext to ciphertext

b)

ciphertext

to plaintext

c)

ciphertext to ciphertext

d)

plaintext to plaintext

56.

sender and receiver share the same key

a)

symmetric-key encryption

b)

asymmetric-key encryption

57.

take blocks of bits, encrypt them as a single unit

a)

stream cipher

b)

block cipher

c)

mega cipher

d)

data cipher

58.

Which variables take up 2 bytes of space?

a)

boolean

b)

short

c)

byte

d)

int

59.

Which is a whole number that takes up the least amount of space but has the smallest range of answers?

a)

byte

b)

short

c)

double

d)

float

60.

Which is a decimal number that takes up the least amount of space but has the smallest range of answers?

a)

byte

b)

short

c)

double

d)

float

61.

Which variable for decimals has the largest range of values?

a)

byte

b)

short

c)

double

d)

float

62.

Which shows the correct order from least to greatest in terms of bytes used to create?

a)

byte

short

int

float

double

b)

byte

short

int

double

float

c)

short

byte

int

float

double

d)

byte

int

short

double

float

63.

can be used by all functions

a)

global

b)

constant or final

c)

local

d)

block

64.

its value cannot be changed

a)

global

b)

constant or final

c)

local

d)

block

65.

can only be used in the function it was created

a)

global

b)

constant or final

c)

local

d)

block

66.

can only be used in the loop it was created in

a)

global

b)

constant or final

c)

local

d)

block

67.

String a = "sun";

String c = "shine";

System.out.print( c.concat("c") );

a)

shineshine

b)

sunshine

c)

shinesun

d)

shinec

68.

String a = "sunshine";

System.out.print( a.length() );

a)

8

b)

7

c)

true

d)

false

69.

int i = 7 % 4;

while( i < 3){

i++;

System.out.print(i);

}

a)

3

b)

2

c)

34

d)

nothing

70.

int i = 7 % 4;

do{

i++;

System.out.print(i);

}while( i < 3);

a)

3

b)

4

c)

34

d)

nothing

71.

Which of these stores data and uses a hashing function to quickly find key-value pairs?

a)

ArrayList

b)

Array

c)

HashMap

d)

LinkedList

72.

OSI

a)

the Open Source Interconnection model describes how computers transmit information over the Internet using 7 layers of protocols

b)

the Over Space Internet model describes the Internet of Things, IoT, using 10 layers

73.

Breaks a project down into its smaller pieces

a)

top-down design

b)

SDLC

c)

waterfall

d)

type-A people

74.

Which is the most efficient according to the Big O Notation?

a)

merge sort

b)

bubble sort

c)

insertion

d)

Simone sort

75.

Which part of SDLC means problem, possible solution, available resources, cost, time

a)

planning

b)

analysis

c)

design

d)

development

76.

CREATE TABLE tableName {

a)

creates a new relational database

b)

queries a relational database

c)

removes a relational database

d)

adds to a relational database

77.

SELECT thisElement , FROM * thatTable

a)

creates a new relational database

b)

queries a relational database

c)

removes a relational database

d)

adds to a relational database

78.

UPDATE Customers

SET ContactName = 'Alfred Schmidt',

City= 'Frankfurt'WHERE CustomerID = 1;

a)

creates a new relational database

b)

queries a relational database

c)

removes a relational database

d)

adds to a relational database

79.

start of production in SDLC

a)

planning

b)

analysis

c)

design

d)

development

80.

 architecture of product, including data flow, features in SDLC

a)

planning

b)

analysis

c)

design

d)

development