SD114 Introduction to Software Development Test Out

oatmealbrothersSoftware and s/w Development

Nov 18, 2013 (3 years and 9 months ago)

7,415 views

SD114 Introduction to Software Development Test Out


Instructions:

Multiple Choice

Identify the choice that best completes the statement or answers the question.


True/False

Indicate whether the statement is true or false.


Matching

Match each term with a

statement.


Questions:



1.

A(n) ____ is a software package that provides an editor, a compiler, and other programming
tools.

a.

GUI

b.

CGI

c.

GDE

d.

IDE

2.

A ____ is a file in which records are stored one after another in some order.

a.

random access file

b.

serial file

c.

retired file

d.

sequential file

3.

A ____ is a fundamental control structure used in computer programming.

a.

choice point

b.

code block

c.

decision structure

d.

logic structure

4.

A ____ read is an added statement that gets the first input value in a program.

a.

nested

b.

stacked

c.

posttest

d.

priming

5.

A ____ search starts looking in the middle of a sorted list, and then determines whether it
should continue higher or lower.

a.

linear

b.

binary

c.

quadratic

d.

single lookup



6.

A(n) ___ is a named memory location whose value can vary.

a.

input

b.

variab
le

c.

output

d.

logic

7.

A variable can hold more than one value at any given moment in time.

a.

True

b.


False

8.

A ____ variable ceases to exist when execution of its declaring method completes.

a.

constant

b.

global

c.

local

d.

static

9.

A flowchart is an English
-
like representation
of the logical steps necessary to solve a

problem.

a.

True

b.

False

10.

A parallel array is an array that stores another array in each element.

a.

True

b.

False

11.

A program contains an array that holds all the names of the days of the week. Which of the
following is true?

a.

The highest subscript is 6.

b.

The highest subscript is 7.

c.

The lowest subscript is 1.

d.

The highest subscript is 12.

12.

A selection with an action that is associated with each of two possible outcomes is known as
a(n) ____ selection.

a.

unary

b.

binary

c.

octal

d.

semiconductor

13.

A specific numeric value is often called a(n) ____.

a.

named constant

b.

defined constant

c.

arithmetic constant

d.

numeric constant

14.

A structured program includes only combinations of the three basic structures: ____.

a.

sequence, iteration, and loop

b.

itera
tion, selection, and loop

c.

sequence, selection, and loop

d.

identification, selection, and loop

15.

A(n) ____ decision is a decision in which at least one of two conditions must be true for an
action to take place.

a.

OR

b.

nested

c.

AND

d.

NOT

16.

A(n) ____ is very similar to
a counter that you use to count loop iterations, except that you
usually add a value other than one to this type of variable.

a.

transaction

b.

total

c.

validator

d.

accumulator

17.

Array elements all have the same ____ in common.

a.

pointer

b.

memory location

c.

value

d.

data type

18.

Array subscripts are always a sequence of ____.

a.

large numbers

b.

characters

c.

negative values

d.

integers

19.

Besides the popular, comprehensive programming languages such as Java and C++, many
programmers use scripting languages such as Python, Lua, Perl, and PHP.

a.

True

b.

False


20.

Boolean expressions are named after ____.

a.

Harold Boolean

b.

Henry Boole

c.

George Boole

d.

Gerhardt Boolean

21.

Both the while loop and the for loop are examples of pretest loops.

a.

True

b.

False

22.

C#, C++, C, and Java use the symbol ____ as the logical OR oper
ator.

a.

%

b.

$

c.

||

d.

^

23.

Characters are made up of smaller elements called ____.

a.

fields

b.

records

c.

bits

d.

bytes

24.

Computer programmers often refer to memory addresses using ____ notation.

a.

binary

b.

indirect

c.

mathematical

d.

hexadecimal

25.

Declaring a starting value for a variable

is known as ____ the variable.

a.

initializing

b.

declaring

c.

defining

d.

identifying

26.

Every array has a(n) ____ size.

a.

infinite

b.

finite

c.

variable

d.

constant

27.

Every decision you make in a computer program involves evaluating a Boolean expression.

a.

True

b.

False

28.

Fractional
numeric variables that contain a decimal point are known as ____ variables.

a.

partial

b.

string

c.

integer

d.

floating
-
point

29.

If you declare a variable to be Boolean, you can set its value to ____.

a.

any number

b.

true or false

c.

any integer

d.

1 or
-
1

30.

Images and music are
contained in binary files.

a.

True

b.

False

31.

In a ____, the loop body might never execute because the question controlling the loop might
be false the first time it is asked.

a.

summary report

b.

pretest loop

c.

posttest loop

d.

loop control

32.

In a flowchart, the ____ is use
d to represent processing.

a.

circle

b.

diamond

c.

triangle

d.

rectangle

33.

In a truth table, the expression ____ is false.

a.

true OR true

b.

true OR false

c.

false OR true

d.

false OR false

34.

In all languages, subscript values must be sequential ____.

a.

characters

b.

fractions

c.

real num
bers

d.

integers

e.


35.

Match each term with a statement below.


Question Items

Answer Items

A. Equipment, or the physical devices, associated with a computer

A. volatile memory

B. Instructions that tell the computer what to do

B. software

C. Contents are lost

when the computer is turned off or loses power

C. syntax error

D. Represent(s) the millions of on/off circuits within the computer

D. machine language

E. Incorrectly spelled words, or reversing the proper order of two
words in a computer program

E. sent
inel

F. All the supporting paperwork for a program

F. pseudocode

G. Pictorial representation of the logical steps it takes to solve a
problem

G. hardware

H. English
-
like representation of the logical steps it takes to solve a
problem

H. flowchart

I.
Used to show the correct sequence of statements

I. flowlines

J. Preselected value that stops the execution of a program

J. documentation




36.

Match each term with a statement below.


Question Items

Answer Items

A. Named memory locations whose contents
can vary or differ over time

A. Reliability

B. A statement that provides a data type and an identifier for a variable

B. Declaration

C. A program component’s name

C. Echoing input

D. Can hold digits and have mathematical operations performed on it

D. St
ring variable

E. Can hold text, such as letters of the alphabet, and other special
characters, such as punctuation marks

E. Identifier

F. The feature of programming languages that prevents assigning values of
an incorrect data type

F. Prompt

G. The
feature of programs that assures you a module has been tested and
proven to function correctly

G. Variables

H. A list of every variable name used in a program, along with its type, size,
and description

H. Data dictionary

I. A message that is displayed o
n a monitor to ask the user for a response
and perhaps explain how that response should be formatted

I. Numeric variable

J. The act of repeating input back to a user either in a subsequent prompt or
in output

J. Type
-
safety



37.

Match each term with a
statement below.


Question Items

Answer Items

A. Logically snarled program statements

A. structure

B. A basic unit of programming logic

B. priming read

C. With this, you ask a question, and, depending on the answer, you take
one of two courses of
action

C. module

D. Continue to repeat actions while a condition remains true

D. decision structure

E. An added statement that gets the first input value in a program

E. null case

F. Placing a structure within another structure

F. stacking structures

G
. A case in which nothing is done

G. spaghetti code

H. Attaching structures end
-
to
-
end

H. loop structure

I. Often can be used in multiple programs

I. case structure

J. A variation of the selection structure

J. nesting structures




38.

Match each term
with a statement below.


Question Items

Answer Items

A. An expression whose value can be only true or false

A. =, >, <, >=, <=, and <>

B. Part of a decision that executes only when the tested condition in the
decision is false

B. case structure

C. Will

always evaluate to the same result

C. AND

D. Relational comparison operators

D. parentheses

E. Nested if

E. Boolean expression

F. Used when you must nest a series of decisions about a single variable

F. logical OR

G. Using this operator, each Boolean
expression must be true in order for
the entire expression to be evaluated as true

G. else clause

H. When this operator is used, only one of the listed conditions must be
met for the resulting action to take place

H. dead

I. A path that can never be trav
eled

I. trivial expressions

J. Used to override the default order of operations

J. a decision within another decision



39.

Once a program is completely coded, it is ready for a company or organization to use.

a.

True

b.

False

40.

Programmers can use either
procedural programming or object
-
oriented programming to
develop programs.

a.

True

b.

False


41.

Programmers say that variables and constants declared within a module are ____ only within
that module.

a.

abstracted

b.

out of scope

c.

in scope

d.

in reference


42.

Programmers say
the statements that are contained in a module have been ____.

a.

embedded

b.

decomposed

c.

encapsulated

d.

modularized

43.

Providing array values is sometimes called ____.

a.

creating the array

b.

declaring the array

c.

accumulating the array

d.

populating the array

44.

The ____
dictate the order in which operations in the same statement are carried out.

a.

rules of precedence

b.

statement rules

c.

operation rules

d.

rules of arithmetic

45.

The ____ loop provides three actions in one compact statement.

a.

for

b.

while

c.

do until

d.

repeat

46.

The assignment o
perator has left
-
to
-
right
-
to
-
left associativity, which means that the value of the
expression to the left of the assignment operator is evaluated first and that the result is assigned
to the operand on the right.

a.

True

b.

False

47.

The assignment operator is the
____ sign.

a.

*

b.

+

c.

=

d.

/

48.

The conditional AND operator in Java, C++, and C# is ____.

a.

&

b.

AND

c.

**

d.

&&

49.

The first step in a while loop is typically to ____.

a.

compare the loop control variable to a constant value

b.

initialize the loop control variable

c.

increment the loop
control variable

d.

execute the body of the loop



50.

The following pseudocode is an example of a ____ structure.

get firstNumber

get secondNumber

add firstNumber and secondNumber

print result

a.

sequence

b.

decision

c.

loop

d.

nested

51.

The following pseudocode is an example

of a ____ structure.

get number

while number is positive

add to sum

get number

a.

sequence

b.

decision

c.

loop

d.

nested

52.

The following pseudocode is an example of a ____ structure.

if firstNumber is bigger than secondNumber then

print firstNumber

else

print
secondNumber

a.

sequence

b.

decision

c.

loop

d.

nested

53.

The number of bytes in an array is always a multiple of the number of ____ in an array.

a.

subscripts

b.

elements

c.

iterators

d.

indexes

54.

The true benefit of using an array lies in your ability to use a ____ as a subscript
to the array.

a.

constant

b.

loop

c.

command

d.

variable


55.

When a subscript is not within the range of acceptable subscripts, it is said to be ____.

a.

a superscript

b.

flagged

c.

out of bounds

d.

indexed

56.

When the first letter of a variable name is uppercase, as in HourlyWage, t
he format is known as
____ casing.

a.

Hungarian notation

b.

Pascal casing

c.

camel casing

d.

Turing notation

57.

When you combine AND and OR operators, the ____ operators take precedence,

meaning their Boolean values are evaluated first.

a.

addition

b.

AND

c.

OR

d.

division

58.

When
you copy data from RAM into a file on a storage device, you read to the file.

a.

True

b.

False

59.

You represent a decision in a flowchart by drawing a decision symbol, which is shaped like a
____.

a.

parallelogram

b.

square

c.

diamond

d.

circle

60.

____ errors are relatively eas
y to locate and correct because the compiler or interpreter you use
highlights every error.

a.

Logic

b.

Syntax

c.

Input

d.

Process

61.

____ files involves combining two or more files while maintaining the sequential order.

a.

Merging

b.

Sorting

c.

Splitting

d.

Dividing

62.

____ variabl
es and constants are known to the entire program.

a.

Local

b.

Transient

c.

Heap

d.

Global

63.

A ____ is a triplet of three colors which encodes different colors.

a.

controlled color code

b.

hexadecimal color code

c.

standard color encoding

d.

triple
-
coded color

64.

A physical keyboard
on a smartphone is also called a ____.

a.

button board

b.

hard keyboard

c.

strict keyboard

d.

tactile keyboard

65.

A program that duplicates the look and feel of a particular device is called a(n) ____.

a.

application

b.

emulator

c.

operating system

d.

smartphone

66.

In Java, a switch
statement can also be implemented as a chain of if/else statements.

a.

True

b.

False

67.

A toast notification ____.

a.

always fades after one second

b.

automatically fades after a set amount of time

c.

never goes away

d.

requires a button push to fade

68.

A(n) ____ is a containe
r that can hold as many objects as needed.

a.

emulator

b.

layout

c.

switch

d.

workspace

69.

A(n) ____ is a part of a program coded to respond to a specific event.

a.

action responder

b.

event handler

c.

response method

d.

triggered method

70.

A(n) ____ is a single element such as a
TextView, Button, or CheckBox control.

a.

app

b.

layout

c.

modality

d.

widget

71.

An object is a specific, concrete instance of a class.

a.

True

b.

False


72.

Android apps are written in ____.

a.

C++

b.

Fortran

c.

Java

d.

Python

73.

Apps can talk to each other very simply using ____.

a.

activities

b.

classes

c.

intents

d.

values

74.

Because Android is open
-
source, phone manufacturers do not have to pay to use it on their
phones.

a.

True

b.

False

75.

Comments in Java start with pound (#) signs.

a.

True

b.

False

76.

Due to user error, it is often easier to input from a finite set of options using a(n) ____.

a.

Button

b.

EditText

c.

Number TextView

d.

Spinner

77.

In Java, a tap of the touch screen is known as a ____.

a.

click event

b.

display action

c.

tap event

d.

touch event

78.

In a camera app,
the next step in the life cycle after tapping the button to take a picture is to call
____.

a.

onPause() to let the user do something else

b.

onRestart() to restart the rest of the app

c.

onResume() to reactivate the camera

d.

onStop() to hide the live image

79.

It is a
Java standard to use camel
-
casing for class names, which begins the name with an
uppercase letter, omitting spaces, and using uppercase letters to emphasize the start of a new
word.

a.

True

b.

False

80.

Java variables are case sensitive.

a.

True

b.

False


81.

SDK stands for

____.

a.

Special Description Kit

b.

Software Development Kit

c.

Standard Domain Knowledge

d.

Support Development Knowledge

82.

Strings in Java are compared for equality by using the ____.

a.

= operator

b.

== operator

c.

compareTo method

d.

equals method

83.

The String type is a class,

not a primitive data type.

a.

True

b.

False

84.

The ____ class comes with the Android platform to play audio and video files.

a.

iTunes

b.

MediaPlayer

c.

Player

d.

VideoPlayer

85.

The ____ is not supported in Android.

a.

Firefox

b.

Internet Explorer

c.

Opera

d.

Skyfire

86.

The icon used to sta
rt your app is called the ____.

a.

boot icon

b.

launcher icon

c.

master icon

d.

starter icon

87.

The method to test a checked property is the ____ method.

a.

getChecked()

b.

isChecked()

c.

checked()

d.

setChecked()

88.

The statements that execute when an if

statement is true are enclosed in ____.

a.

[ and ]

b.

{ and }

c.

| and |

d.

begin and end

89.

The statement 6<=6 is true.

a.

True

b.

False


90.

The resulting value of the expression “sears”.compareTo(“chicago”) is ____.

a.

equal to 0

b.

greater than 0

c.

less than 0

d.

unknown

91.

The operator

for “equal to” is ____.

a.

=

b.

==

c.

!=

d.

<=

92.

The one
-
time registration fee to use the Android Market is ____.

a.

$1.39

b.

$1.99

c.

$25

d.

$99

93.

To assign a phrase as the value of a String variable, place the text in ____.

a.

brackets

b.

double quote marks

c.

parentheses

d.

single quote
marks

94.

To display text in a TextView control, use the method ____.

a.

assignText()

b.

displayText()

c.

setText()

d.

showText()

95.

URL stands for ____.

a.

Uniform Resource Locator

b.

Universal Resource Locator

c.

Unknown Resource Leash

d.

Upstream Responsibility Lock

96.

When you ____ a

class, you define one particular variation of the object within a class.

a.

concretize

b.

instantiate

c.

make

d.

stabilize

97.

You can use int and long data types to store decimal values.

a.

True

b.

False



98.

You have a variable that will only assume values between 0 and 100. The most compact
primitive type to use is a(n) ____.

a.

byte

b.

float

c.

int

d.

long

99.

____ graphics are best to use for icon design because the images can be scaled without loss of
detail.

a.

Composite

b.

R
aster

c.

Scanned

d.

Vector
-
based

100.

____ is the most popular tool for writing Java programs, and has an SDK for developing
Android programs.

a.

Eclipse

b.

Emacs

c.

NetBeans

d.

Visual Studio

SD114 Introduction to Software Development Test Out


Answer Section


Question

Correct Answer

Points

1

D

2

2

D

2

3

C

2

4

C

2

5

B

2

6

B

2

7

B

1

8

C

2

9

B

1

10

B

1

11

A

2

12

B

2

13

D

2

14

C

2

15

A

2

16

D

2

17

D

2

18

D

2

19

A

1

20

C

2

21

A

1

22

C

2

23

C

2

24

D

2

25

A

2

26

B

2

27

A

1

28

D

2

29

B

2

30

A

1

31

B

2

32

D

2

33

D

2

34

D

2



35

Item

Match

A

G.
-

B

B.
-

A

A.
-

B

D.
-

A

C.
-

B

J.
-

A

H.
-

B

F.
-

A

I.
-

B

E.
-


7

36

Item

Match

A

G.
-

B

B.
-

A

E.
-

B

I.
-

A

D.
-

B

J.
-

A

A.
-

B

H.
-

A

F.
-

B

C.
-


7

37

Item

Match

A

G.
-

B

A.
-

A

D.
-

B

H.
-

A

B.
-

B

J.
-

A

E.
-

B

F.
-

A

C.
-

B

I.
-


7

38

Item

Match

A

E.
-

B

G.
-

A

I.
-

B

A.
-

A

J.
-

B

B.
-

A

C.
-

B

F.
-

A

H.
-

7

B

D.
-


39

B

1

40

A

1

41

C

2

42

C

2

43

D

2

44

A

2

45

A

2

46

B

1

47

C

2

48

D

2

49

B

2

50

A

2

51

C

2

52

B

2

53

B

2

54

D

2

55

C

2

56

B

2

57

B

2

58

B

1

59

C

2

60

B

2

61

A

2

62

D

2

63

B

2

64

B

2

65

B

2

66

A

1

67

B

2

68

B

2

69

B

2

70

D

2

71

A

1

72

C

2

73

C

2

74

A

1

75

B

1

76

D

2

77

A

2

78

D

2

79

A

1

80

A

1

81

B

2

82

D

2

83

A

1

84

B

2

85

B

2

86

B

2

87

B

2

88

B

2

89

A

1

90

B

2

91

B

2

92

C

2

93

B

2

94

C

2

95

A

2

96

B

2

97

B

1

98

A

2

99

D

2

100

A

2


Total Points



200