wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

CMP128 Java Ch. 11-07-05-04 Exam #2 Study Guide Quiz

Total questions: 84

Worksheet time: 3hrs 41mins

Name
Class
Date
1.
Which of the following is true about For Loops?
a)
They are counter-controlled
b)
They iterate a finite number of times
c)
They contain an initialization of a counter variable, a condition test, and a counter accumulation or decrementation.
d)
All of the above
2.
Which of the following is NOT true about While Loops?
a)
They are post-test loops.
b)
They contain a priming statement.
c)
They contain an updating statement.
d)
They are used when you cannot quantify the number of iterations, but some indeterminate qualifier will terminate it.
3.
Which construct is best used for event-driven qualifiable pre-test loops?
a)
While Loop
b)
For Loop
c)
Do While Loop
d)
For Next Loop
4.
Which construct is best for event-driven qualifiable post-test loops?
a)
While Loop
b)
For Loop
c)
Do While Loop
d)
For Next Loop
5.
Which construct is best used for counter-controlled finite (quantifiable) loops?
a)
While Loop
b)
For Loop
c)
Do While Loop
d)
None of these
6.
Which type of looping structure is guaranteed to execute at least one time?
a)
While Loop
b)
Do While Loop
c)
For Loop
d)
None of these
7.
Which of the following terms describes a normal terminator for a looping structure
a)
A continue clause
b)
A break clause
c)
A sentinel value
d)
A stop clause
8.
Which of the following clauses should not be used in  looping structure under normal circumstances?
a)
for
b)
while
c)
continue
d)
do
9.
Which of the following is the incrementation operator?
a)
--
b)
==
c)
//
d)
++
10.
Which of the following is the decrementation operator?
a)
--
b)
==
c)
//
d)
++
11.
Which looping construct is illustrated below?
for (int i=0; i<5; i++)
{
     System.out.println ("The square of " + i + " is: " + (i*i));
}
a)
An event-driven qualifiable post-test loop
b)
An event-driven qualifiable pre-test loop
c)
A count-controlled quantifiable pre-test loop
d)
A count-controlled quantifiable post-test loop
12.
Which looping construct is illustrated below?
int num = 1;
char keepSquaring = 'Y';
do
{
     System.out.println ("The square of " + num + " is: " + (num*num) + "\n");
     num++;
     System.out.print("Would you like to square another number? (Y/N): ");
     keepSquaring = keyboard.nextLine().charAt(0);
}
while (keepSquaring == 'Y' || keepSquaring == 'y');
a)
Event-driven qualifiable Post-Test Loop
b)
Event-driven qualifiable Pre-Test Loop
c)
Count-Controlled quantifiable Pre-test Loop
d)
Count-Controlled quantifiable Post-Test Loop
13.
Which looping construct is illustrated below?
int num = 1;
char keepSquaring = 'Y';
while (keepSquaring == 'Y' || keepSquaring == 'y')
{
     System.out.println ("The square of " + num + " is: " + (num*num) + "\n");
     num++;
     System.out.print("Would you like to square another number? (Y/N): ");
     keepSquaring = keyboard.nextLine().charAt(0);
}
a)
Event-driven qualifiable Pre-Test Loop
b)
Event-driven qualifiable Post-Test Loop
c)
Count-Controlled quantifiable Pre-Test Loop
d)
Count-Controlled quantifiable Post-Test Loop
14.
What is wrong with the following loop?
int num = 1;
char keepSquaring = 'Y';
while (keepSquaring == 'Y' || keepSquaring == 'y')
{
     System.out.println ("The square of " + num + " is: " + (num*num) + "\n");
     num++;
     
}
a)
It is missing a sentinel value, so there is no way to test a normal exit from the  loop.
b)
It is missing a priming statement, so the loop is never entered.
c)
It is missing an update statement, so the loop is infinite.
d)
None of the above
15.
What is wrong with the following loop?
for (int i=0; i>5; i++)
{
     System.out.println ("The square of " + i + " is: " + (i*i) + "\n");
}
a)
This is an infinite loop because i can never get to be greater than 5.
b)
This loop will never execute the loop body because the counter variable starts at 0 and immediately fails the test of >5.
c)
This statement is missing the incrementation statement.
d)
This loop is perfect.
16.
What is wrong with the following loop?
for (int i=10; i>0; i++)
{
     System.out.println ("The square of " + i + " is: " + (i*i) + "\n");
}
a)
It creates an infinite loop because i will never be less than or equal to 0.
b)
This uses the for loop for an indeterminate looping statement.
c)
This loop can never execute the loop body because the value of i is too high.
d)
All of the above.
17.
What is wrong with the following looping structure?
for (int i=0; i<5; i++)
{
    System.out.println ("The square of " + i + " is: " + (i*i) + "\n");
}
a)
Everything
b)
It has no incrementation or decrementation statement
c)
It is missing a priming statement
d)
Nothing.  It is perfect.
18.
What is wrong with the following looping structure?
int num = 1;
char keepSquaring = 'Y';
do
{
     System.out.println ("The square of " + num + " is: " + (num*num) + "\n");
     num++;
     System.out.print("Would you like to square another number? (Y/N): ");
     keepSquaring = keyboard.nextLine.charAt(0);
}
while (keepSquaring == 'Y' || keepSquaring == 'y')
a)
It is missing the priming statement.
b)
It is missing the update statement.
c)
It is missing the semicolon on the while clause.
d)
Nothing.  It is perfect.
19.
What is wrong with the following looping structure?
int num = 1;
do
{
     System.out.println ("The square of " + num + " is: " + (num*num) + "\n");
     num++;
     System.out.print("Would you like to square another number? (Y/N): ");
     keepSquaring = keyboard.nextLine().charAt(0);
}
while (keepSquaring == 'Y' || keepSquaring == 'y');
a)
It is missing the update statement.
b)
It is missing the priming statement.
c)
It is missing the semicolon on the while clause.
d)
Nothing.  It is perfect.
20.
What is wrong with the following looping structure?
int num = 1;
char keepSquaring = 'Y';
while (keepSquaring == 'Y' || keepSquaring == 'y');
{
     System.out.println ("The square of " + num + " is: " + (num*num) + "\n");
     num++;
     System.out.print("Would you like to square another number? (Y/N): ");
     keepSquaring = keyboard.nextLine().charAt(0);
}
a)
It is missing the priming statement.
b)
It is missing the update statement.
c)
It should not have a semicolon on the while clause.
d)
Nothing.  It is perfect.
21.

A ___________ is a pre-defined set of steps that complete a specific task, optionally based on parameter values, and optionally returning some result.

a)

array

b)

function

c)

method

d)

module

e)

class

22.

Java method (function/module) definitions can contain which of the following parts in their headers?

a)

An access modifier such as public or private

b)

An optional access specifier called static

c)

a return type or void

d)

all of the above

23.

Java method definitions require which of the following parts in their headers?

a)

A method name

b)

a set of parentheses

c)

a comma-separated parameter list

d)

all of the above

24.

The body of a method definition is contained within a set of ______________.

a)

parentheses

b)

rectangle brackets

c)

curly braces

d)

angle brackets

25.
A method must be called from an object unless the method definition contains the keyword ___________ in its header.
a)
public
b)
void
c)
static
d)
int
26.

Methods are called (instantiated/invoked) by referencing the __________ of the method and any optional _____________ list.

a)

data type, parameter

b)

method name, argument

c)

public keyword, parameter

d)

static keyword, argument

27.

Methods that contain the _______ keyword in the data type position do not return any data, so they can simply be called without being part of a larger statement.

a)

void

b)

static

c)

public

d)

boolean

28.
Methods that contain ____________ MUST be called as part of a larger statement that is usually an assignment or output.
a)
void keyword
b)
static keyword
c)
return data
d)
none of the above
29.
Is the following a valid method definition?
public static void welcomeBanner(char symbol)
{
     for (int i=0; i<60; i++)
          System.out.print(symbol);
     System.out.println(" ");
     
     System.out.println(symbol + "                  This is a Welcome Banner                    " + symbol);
     for (int i=0; i<60; i++)
          System.out.print(symbol);
     System.out.println(" ");
}
a)
Yes
b)
No
30.

Which of the following would be the correct way to call a welcomeBanner method that contains a parameter for the symbol of the border and does not return data?

a)

answer = welcomeBanner('$');

b)

System.out.println("Calling a method" + welcomeBanner('%') );

c)

welcomeBanner('*');

d)

None of the above

31.

What type of data will be returned by this method?


public static boolean isCorrect(char answer)

{

boolean result=false;


switch (answer)

{

case 'C':

result = true;

break;

case 'A':

case 'B':

case 'D':

default:

result = false;

}//end switch


return result;

}//end method isCorrect

a)

int

b)

void

c)

static

d)

char

e)

boolean

32.

Based on the method definition below, what will happen when the following method invoking statement is processed?


boolean questionResult = false;


questionResult = isCorrect('C');


public static boolean isCorrect(char answer)

{

boolean result=false;


switch (answer)

{

case 'C':

result = true;

break;

case 'A':

case 'B':

case 'D':

default:

result = false;

}//end switch


return result;

}//end method isCorrect

a)

the method will return false

b)

the method will return true and false

c)

the method will crash the application

d)

the method will return true

33.

What argument value will cause the following method to return false?


public static boolean isCorrect(char answer)

{

boolean result=false;


switch (answer)

{

case 'C':

result = true;

break;

case 'A':

case 'B':

case 'D':

default:

result = false;

}//end switch


return result;

}//end method isCorrect

a)

A

b)

B

c)

D

d)

X

e)

All of the above

34.

What argument value will cause the following method to return a message stating that an invalid option was chosen and that they have to enter only A, B, C or D?


public static boolean isCorrect(char answer)

{

boolean result=false;


switch (answer)

{

case 'C':

result = true;

break;

case 'A':

case 'B':

case 'D':

default:

result = false;

}//end switch


return result;

}//end method isCorrect

a)

default

b)

A

c)

D

d)

B

e)

It's not possible to return that message with this method.

35.

Which of the following would be a valid return value for the following method?


public static String getMessage()

{

int answer=0;


System.out.print("Enter a Number from 1-5: ")


answer = keyboard.nextInt();


switch (answer)

{

case 1:

return ____________ ;

break;

case 2:

return ____________ ;

break;

case 3:

return ____________ ;

break;

case 4:

return ____________ ;

break;

case 5:

return ____________ ;

break;

default:

return ____________ ;


}//end switch


}//end method getMessage

a)

1

b)

'5'

c)

'You chose 2'

d)

"You chose 5. The squared value of 5 is 25."

36.

What is returned by the following method if the user enters 4?


public static String getMessage()

{

int answer=0;


System.out.print("Enter a Number from 1-5: ")

answer=keyboard.nextInt();


switch (answer)

{

case 1:

return "You entered 1. It's a great number, but it's not the lucky guess for you." ;

break;

case 2:

return "You entered 2. Twice as nice...or doubly wrong? Wanna double down?";

break;

case 3:

return "You entered 3. Third time just wasn't a charm for you. More like three strikes...well, you know the rest.";

break;

case 4:

return "You entered 4. Duck...there's a golf ball coming your way!";

break;

case 5:

return "You entered 5. High Five, Dude! You win the prize...whatever that is." ;

break;

default:

return "You don't take direction well, do you? That wasn't 1-5. Wanna try again?";


}//end switch


}//end method getMessage

a)

An unlucky result.

b)

A statement about possible double trouble.

c)

Something the baseball player at bat doesn't want to hear.

d)

A warning about impending pain headed toward you.

e)

A hand-slapping congratulatory message

37.

What is wrong with the following code?


getMessage();


public static String getMessage()

{

int answer=0;


System.out.print("Enter a Number from 1-5: ")

answer=keyboard.nextInt();


switch (answer)

{

case 1:

return "You entered 1. It's a great number, but it's not the lucky guess for you." ;

break;

case 2:

return "You entered 2. Twice as nice...or doubly wrong? Wanna double down?";

break;

case 3:

return "You entered 3. Third time just wasn't a charm for you. More like three strikes...well, you know the rest.";

break;

case 4:

return "You entered 4. Duck...there's a golf ball coming your way!";

break;

case 5:

return "You entered 5. High Five, Dude! You win the prize...whatever that is." ;

break;

default:

return "You don't take direction well, do you? That wasn't 1-5. Wanna try again?";


}//end switch


}//end method getMessage

a)

There are too many return statements that conflict with each other.

b)

The method invoking statement doesn't catch the returned value and do anything with it.

c)

No input is collected from the user.

d)

Everything is fine with this code.

38.

What is wrong with the following code?


int result = getMessage();


public static String getMessage()

{

int answer=0;


System.out.print("Enter a Number from 1-5: ")

answer=keyboard.nextInt();


switch (answer)

{

case 1:

return "You entered 1. It's a great number, but it's not the lucky guess for you." ;

break;

case 2:

return "You entered 2. Twice as nice...or doubly wrong? Wanna double down?";

break;

case 3:

return "You entered 3. Third time just wasn't a charm for you. More like three strikes...well, you know the rest.";

break;

case 4:

return "You entered 4. Duck...there's a golf ball coming your way!";

break;

case 5:

return "You entered 5. High Five, Dude! You win the prize...whatever that is." ;

break;

default:

return "You don't take direction well, do you? That wasn't 1-5. Wanna try again?";


}//end switch


}//end method getMessage

a)

There are too many return statements that conflict with each other.

b)

The method invoking statement doesn't catch the return data and do anything with it.

c)

There is a type mismatch between the return data and the variable that is catching it.

d)

Everything is fine with this code.

39.

What is wrong with the following code?


String result = getMessage(5);


public static String getMessage()

{

int answer=0;


System.out.print("Enter a Number from 1-5: ")

answer=keyboard.nextInt();


switch (answer)

{

case 1:

return "You entered 1. It's a great number, but it's not the lucky guess for you." ;

break;

case 2:

return "You entered 2. Twice as nice...or doubly wrong? Wanna double down?";

break;

case 3:

return "You entered 3. Third time just wasn't a charm for you. More like three strikes...well, you know the rest.";

break;

case 4:

return "You entered 4. Duck...there's a golf ball coming your way!";

break;

case 5:

return "You entered 5. High Five, Dude! You win the prize...whatever that is." ;

break;

default:

return "You don't take direction well, do you? That wasn't 1-5. Wanna try again?";


}//end switch


}//end method getMessage

a)

There is no returned data.

b)

Nothing catches the returned data.

c)

There is no method invoking statement.

d)

The method doesn't take any parameters, so the method invoking statement is invalid.

40.

What is wrong with the following code?


String result = getMessage();


public static String getMessage()

{

int answer=0;


System.out.print("Enter a Number from 1-5: ")

answer=keyboard.nextInt();


switch (answer)

{

case 1:

return "You entered 1. It's a great number, but it's not the lucky guess for you." ;

break;

case 2:

return "You entered 2. Twice as nice...or doubly wrong? Wanna double down?";

break;

case 3:

return "You entered 3. Third time just wasn't a charm for you. More like three strikes...well, you know the rest.";

break;

case 4:

return "You entered 4. Duck...there's a golf ball coming your way!";

break;

case 5:

return "You entered 5. High Five, Dude! You win the prize...whatever that is." ;

break;

default:

return "You don't take direction well, do you? That wasn't 1-5. Wanna try again?";


}//end switch


}//end method getMessage

a)

The method is missing a method invoking statement.

b)

The method is missing a parameter list.

c)

The method doesn't return anything.

d)

Everything is fine with this code.

41.
A(n) ____________ is a container for multiple variables that are interrelated, share the same name and the same data type.
a)
class
b)
array
c)
method
d)
object
42.
A one-dimensional array is a __________, like items you might want to purchase at a supermarket.
a)
table
b)
cube
c)
matrix
d)
list
43.
A two-dimensional array is a ___________ that contains multiple fields of data that are interrelated to a single record.  It field is referenced by x and y coordinates, often referred to as rows and columns.
a)
list
b)
cube
c)
table
d)
none of the above
44.
A three-dimensional array is a ____________, such as the representation of the sides of a playing die.  It contains rows and columns across several planes.
a)
matrix
b)
table
c)
list
d)
cube
45.
An array declaration contains _________ after the data type.
a)
angle brackets
b)
rectangle brackets
c)
curly braces
d)
parentheses
46.
An array declaration contains _______________________ after its array name.
a)
an assignment operator
b)
keyword new
c)
a data type and rectangle brackets with a numeric size inside it
d)
all of the above
47.
An array declaration can optionally omit the new specifier and explicit size setting if it contains a comma-delimited _______________ inside a set of _______________ after the assignment operator, which will imply its size.
a)
initialization list, parentheses
b)
parameter list, parentheses
c)
initialization list, curly braces
d)
None of the above
48.
An array uses ____________ indexing to keep track of each memory allocation unit in the array.
a)
one-based
b)
zero-based
c)
10-based
d)
100-based
49.
The first value of an array called quizzes can be accessed with which of the following statements?
a)
quizzes[1] = 100;
b)
quizzes[0] = 100;
c)
quizzes[zero] = 100;
d)
quizzes[one] = 100;
50.
Which of the following statements outputs the fifth value in the quizzes array?
a)
System.out.println(quizzes[5]);
b)
quizzes[4];
c)
quizzes[5];
d)
System.out.println(quizzes[4]);
51.
This needs to be imported in order to work with file io classes in Java.
a)
What is java.util.Scanner ?
b)
What is java.io.* ?
c)
What is java.io.PrintWriter ?
d)
What is java.utils.* ?
52.
This type of object allows you to append data to the end of a file.
a)
What is a File object?
b)
What is a PrintWriter object?
c)
What is a FileWriter object?
d)
What is a FileAppend object?
53.
This type of object allows you to open a file in Read Only mode.
a)
What is a File object?
b)
What is a PrintWriter object?
c)
What is a FileWriter object?
d)
What is a FileReader object?
54.
You instantiate an object against this type of class, which takes a String Literal file name as its sole parameter, if you want to automatically overwrite all data in an existing file.
a)
What is a File Object?
b)
What is a FileWriter object?
c)
What is a FileOverwriter object?
d)
What is a PrintWriter object
55.
This is the value of the second parameter in a FileWriter object when you want to append to an existing file.
a)
What is true?
b)
What is false?
c)
What is append?
d)
What is concatenate?
56.
This default value will be implied if you don't pass in a second argument when you instantiate a FileWriter object, effectively overwriting all data in the existing file.
a)
What is append?
b)
What is erase?
c)
What is false?
d)
What is true?
57.
This is the result of the following commands:
FileWriter fw = new FileWriter("names.txt", true);
PrintWriter outData = new PrintWriter(fw);
outData.println("Michael Tirrito");
outData.close();
a)
What is write Michael Tirrito to names.txt?
b)
What is append names.txt?
c)
What is open names.txt, append to it, and write Michael Tirrito to the file?
d)
What is open names.txt, append to it, write Michael Tirrito, and close the file?
58.
This is the result of the following commands:
PrintWriter outData = new PrintWriter("names.txt");
outData.println("Michael Tirrito");
a)
What is write Michael Tirrito to names.txt?
b)
What is erase names.txt?
c)
What is open names.txt, erase it, and write Michael Tirrito to the file?
d)
What is open names.txt, erase it, write Michael Tirrito, and close the file?
59.
This is the result of the following commands, given that the file contains "Nancy Binowski", "Michael Tirrito", and "Patricia Tamburelli" on successive lines:
String name = " "; 
File inData = new File("names.txt");
name = inData.nextLine();
a)
What is name will contain Michael Tirrito?
b)
What is name will be declared as a String variable, names.txt will be opened in Read Only mode, and Nancy Binowski will be written into the name variable?
c)
What is name will be declared as a String variable, names.txt will be opened in Read Only mode, and Michael Tirrito will be written into the name variable?
d)
What is name will be declared as a String variable, names.txt will be opened in Read Only mode, and Nancy Binowski, Michael Tirrito, Patricia Tamburelli will be written into the name variable?
60.
This is the result of the following commands, given that a file named "addresses.txt" exists:
String name = " "; 
File inData = new File("addressBlock.txt");
name = inData.nextLine();
a)
What is name will be declared as a String variable, addresses.txt will be opened in Read Only mode, and the first line will be written into the name variable?
b)
What is name will be declared as a String variable, addressBlock.txt will be opened in Read Only mode, and the first line will be written into the name variable?
c)
What is A File IOException will occur because addressBlock.txt doesn't exist?
d)
What is nothing because addressBlock.txt doesn't exist?
61.

Converting Binary Numbers Back to Decimal Numbers and Picking the Character they Represent

  1. Please convert the Binary Number 010001002 back to it's Decimal (base-10) Number. (Hint: Only the 1-bit values matter here.)

  2. Then look up the base-10 number on the provided Unicode & Ascii Character Map to determine what character is represented by 01000100. 

  3. Choose the answer that matches the correct Decimal Number & Character.

(This demonstrates your understanding that all characters are stored in the computer as Base-2 Binary Numbers that have been converted from Base-10 Decimal Numbers.)


Below is an 8-bit conversion table that may help you convert between two numbering systems: Base-10 Decimal and Base-2 Binary.  A binary (base-2) number of 01000100 has been provided in the table. 

12810          6410            3210            1610            0810            0410           0210           0110 Base-10 (Decimal)

0                1               0               0               0               1               0               0      Base-2 (Binary)

8-bit Conversion Table: Converting between Decimal Number System and Binary Number System

UNICODE16    ASCII10     CHARACTER         UNICODE16        ASCII10     CHARACTER

004816              4810            0                                009716                   9710            a

004916              4910            1                                009816                   9810            b

005016              5010            2                                009916                   9910            c

005116              5110            3                                010016                   10010          d

005216              5210            4                                010116                   10110          e

005316              5310            5                                010216                   10210          f

005416              5410            6                                010316                   10310          g

005516              5510            7                                010416                   10410          h

005616              5610            8                                010516                   10510          i

005716              5710            9                                010616                   10610          j

005816              5810            :                                 010716                   10710          k

005916              5910            ;                                 010816                   10810          l

006016              6010            <                                010916                   10910          m

006116              6110            =                                011016                   11010          n

006216              6210            >                                011116                   11110          o

006316              6310            ?                                 011216                   11210          p

006416              6410            @                               011316                   11310          q

006516              6510            A                               011416                   11410          r

006616              6610            B                                011516                   11510          s

006716              6710            C                                011616                   11610          t

006816              6810            D                               011716                   11710          u

006916              6910            E                                011816                   11810          v

007016              7010            F                                011916                   11910          w

007116              7110            G                               012016                   12010          x

007216              7210            H                               012116                   12110          y

007316              7310            I                                 012216                   12210          z

007416              7410            J                                 012316                   12310          {

007516              7510            K                               012416                   12410          |

007616              7610            L                                012516                   12510          }

007716              7710            M                               012616                   12610          ~

007816              7810            N                               012716                   12710          [DEL]

007916              7910            O                                                                               

008016              8010            P                                                                                

008116              8110            Q                                                                               

008216              8210            R                                                                                

008316              8310            S                                                                                

008416              8410            T                                                                                

008516              8510            U                                                                               

008616              8610            V                                                                               

008716              8710            W                                                                               

008816              8810            X                                                                               

008916              8910            Y                                                                               

009016              9010            Z                                                                                

009116              9110            [                                                                                 

009216              9210            \                                                                                 

009316              9310            ]                                                                                 

009416              9410            ^                                                                                

009516              9510            _                                                                                

0096169610     `

a)

7210  =   H  (Capital H)

b)

6810    =  D  (Capital D)

c)

9610   =  `  (accent character)

d)

10010   =  d  (lowercase d)

62.

True or False:

The Four Steps of the Problem Solving Phases, in sequential order, include:

  1. 1. Analysis and Specification

  2. 2. Algorithm Development

  3. 3. Implementation
    4. Maintenance

a)

True

b)

False

63.

True or False:

The following is a list of the Four Generations of Computer Hardware:

  1. 1. First Generation: Vacuum Tubes

  2. 2. Second Generation: Transistors

  3. 3. Third Generation: Integrated Circuits

  4. 4. Fourth Generation: Microcomputer on a Chip (Microprocessor)

a)

True

b)

False

64.

What kind of code is contained in a Java Class File after compiling your source code?

a)

Executable Code

b)

Binary Code

c)

Batch Code

d)

Byte Code

65.

Given the following method header, select the appropriate method call:

 

     public static boolean isApproved(int age)

a)

boolean sellAlcohol = isApproved(19);

b)

String sellAlcohol = isApproved("Twenty-One");

c)

int sellAlcohol = isApproved(18);

d)

isApproved(21);

66.

Consider the following code:

int num = 15;

while (num > 0)
      num = num - 3;
System.out.println(num);

When does num get printed by this code?

a)

Every time the loop body is entered.

b)

Every time the loop iterates, regardless of the condition test

c)

Immediately after the loop terminates

d)

Never

67.

Which of these job duties would a Web Developer perform?

a)

Create and Manage User Accounts on Windows Server using an Active Directory Domain.

b)

Troubleshooting user computing issues via telephone, chat or email.

c)

Write source code with a programming language like Java by analyzing an Algorithm.

d)

Write HTML, CSS and/or JavaScript code in a file or series of files.

68.

Which of these job duties would an Applications Programmer perform?

a)

Create and Manage User Accounts on Windows Server using an Active Directory Domain.

b)

Troubleshooting user computing issues via telephone, chat or email.

c)

Write source code with a programming language like Java by analyzing an Algorithm.

d)

Write HTML, CSS and/or JavaScript code in a file or series of files.

69.

Which of these job duties would a Network Administrator perform?

a)

Create and Manage User Accounts on Windows Server using an Active Directory Domain.

b)

Troubleshooting user computing issues via telephone, chat or email.

c)

Write source code with a programming language like Java by analyzing an Algorithm.

d)

Write HTML, CSS and/or JavaScript code in a file or series of files.

70.

Which of these job duties would a Helpdesk Technician perform?

a)

Create and Manage User Accounts on Windows Server using an Active Directory Domain.

b)

Troubleshooting user computing issues via telephone, chat or email.

c)

Write source code with a programming language like Java by analyzing an Algorithm.

d)

Write HTML, CSS and/or JavaScript code in a file or series of files.

71.

What is the smallest integer-based data type that can be assigned to a variable if its value can be as large as 1,000?

byte. 1 byte. Integers in the range of -128 to +127

short. 2 bytes. Integers in the range of -32,768 to +32,767

int. 4 bytes. Integers in the range of -2,147,483,648 to +2,147,483,647

long. 8 bytes. Integers in the range of -9,223,372,036,854,775,808 to +9,223,372,036,854,775,807

a)

int

b)

byte

c)

short

d)

long

72.

What is the smallest integer-based data type that can be assigned to a variable if its value can be as large as 100?

byte. 1 byte. Integers in the range of -128 to +127

short. 2 bytes. Integers in the range of -32,768 to +32,767

int. 4 bytes. Integers in the range of -2,147,483,648 to +2,147,483,647

long. 8 bytes. Integers in the range of -9,223,372,036,854,775,808 to +9,223,372,036,854,775,807

a)

int

b)

byte

c)

short

d)

long

73.

What is the smallest integer-based data type that can be assigned to a variable if its value can be as large as 50,000?

byte. 1 byte. Integers in the range of -128 to +127

short. 2 bytes. Integers in the range of -32,768 to +32,767

int. 4 bytes. Integers in the range of -2,147,483,648 to +2,147,483,647

long. 8 bytes. Integers in the range of -9,223,372,036,854,775,808 to +9,223,372,036,854,775,807

a)

int

b)

byte

c)

short

d)

long

74.

What is the smallest integer-based data type that can be assigned to a variable if its value can be as large as 3,000,000,000,000?

byte. 1 byte. Integers in the range of -128 to +127

short. 2 bytes. Integers in the range of -32,768 to +32,767

int. 4 bytes. Integers in the range of -2,147,483,648 to +2,147,483,647

long. 8 bytes. Integers in the range of -9,223,372,036,854,775,808 to +9,223,372,036,854,775,807

a)

int

b)

byte

c)

short

d)

long

75.

A computer contains several types of primary and secondary memory, such as Registers, Cache, RAM, BIOS ROM and SSD.  Look at the image presented here of a typical CPU architecture, including internal and external memory components.

What is true about RAM memory?

a)

Its closest to the Arithmetic Logic Unit compared to other memory.

b)

Its furthest from the Control Unit compared to other memory.

c)

It's further from the Arithmetic Logic Unit than the GPU, but closer than Cache.

d)

It's further from the Arithmetic Logic Unit than Cache, but closer than BIOS.

76.

A computer contains several types of primary and secondary memory, such as Registers, Cache, RAM, BIOS ROM and SSD.  Look at the image presented here of a typical CPU architecture, including internal and external memory components.

What is true about SSD memory?

a)

Its closest to the Arithmetic Logic Unit compared to other memory.

b)

Its furthest from the Control Unit compared to other memory.

c)

It's further from the Arithmetic Logic Unit than the GPU, but closer than Cache.

d)

It's further from the Arithmetic Logic Unit than Cache, but closer than BIOS.

77.

A computer contains several types of primary and secondary memory, such as Registers, Cache, RAM, BIOS ROM and SSD.  Look at the image presented here of a typical CPU architecture, including internal and external memory components.

What is true about cache and register memory?

a)

They are the closest to the Arithmetic Logic Unit and Control Unit compared to other memory.

b)

They are furthest from the Control Unit and Arithmetic Logic Unit compared to other memory.

c)

They are further from the Arithmetic Logic Unit and Control Unit than the RAM, but closer than the GPU.

d)

They are further from the Arithmetic Logic Unit and Control Unit than the GPU, but closer than BIOS.

78.

Why was Grace Hopper an important female historical figure in Computer Science?

a)

She was one of few females working in Computer Science during WWII.

b)

She was credited with coining the term, "Computer Bug".

c)

She worked on the programming of the Harvard Mark I military weapons trajectory calculating computer.

d)

She worked as a programmer on the Analytical and Difference Engines.

e)

All of the above, except programming the Analytical and Difference Engines.

79.

Why was Charles Babbage an important historical figure in Computer Science?

a)

He was considered the father of modern day PCs.

b)

He invented the concepts of the Difference Engine.

c)

He invented the concepts of the Analytical Engine.

d)

He invented the concepts of machines that would have their own storage and memory components, provisions for programming the device to automate tasks by providing it a set of instructions, and other concepts found in modern day PC hardware.

e)

All of the above.

80.

Why was Herman Hollerith an important historical figure in Computer Science?

a)

He was considered the father of modern day PCs.

b)

He invented a revolutionary census tabulating computer based on punch cards.

c)

He left the US Census Bureau and founded the company known today as IBM.

d)

He made the first mechanical binary programmable computer.

e)

Just the two answer choices about inventing the revolutionary census tabulating computer and being the founder of the modern-day IBM corporation.

81.

Why was Konrad Zuse an important historical figure in Computer Science?

a)

He worked on the hardware of the WWII Weapons Trajectory Calculating Computer known as the Harvard Mark I.

b)

He built the Eniac and Univac computer systems.

c)

He was considered the Father of Modern Day PCs.

d)

He made the first mechanical binary programmable computer.

e)

All of the Above

82.

True or False:

If you are making a program that contains a menu of 10 choices that the user can choose from, then you need to use a programming structure that can perform multiple-choice decision making. Since If and If/Else statements are primarily binary decision making structures, it would be best to use a Switch to accomplish this, as it can have an unlimited number of case paths.

a)

True

b)

False

83.

True or False:

An array's data values can only be accessed by index positions that are integer-based. Indices cannot be specified as Strings, Booleans, Doubles or any other non-integer data types.

a)

True

b)

False

84.

True or False:

An if statement's condition test MUST include the == Equality Operator if you are testing for an exact equality match. It specifically cannot be based on the = Assignment Operator, or the logic of the decision structure will fail since this causes it to always take the true path even when it should be taking the false path.

a)

True

b)

False