NOCTI Study Guides Study Questions. Correct Answer are included.

bewgrosseteteΛογισμικό & κατασκευή λογ/κού

13 Δεκ 2013 (πριν από 3 χρόνια και 7 μήνες)

90 εμφανίσεις

Name: _______________________________________

May 1, 2013

NOCTI Study Guide



Coding Programs!
Yesterday’
s Study Questions. Correct Answer are included.

1.

A typical non
-
functional user requirement is/are

A. What the user interface looks like


b.
The
user’s constraints and purposes

C. the resources needed to maintain the system

d.
The actions the system performs automatically

Answer
C



because the resources needed to maintain the system is an example of a typical non
-
functional user requirement.

2.
The following programming flowchart symbol is a/an _______.

a.

Processing

b.
Input/output


c.
Decision

d.
connector

Answer
C



because the symbol in the item is a decision symbol. A decision symbol is a junction
where a decision must be made.

3.
One of the ma
in goals in analyzing user requirements is to

a.

Troubleshoot the problem


b.
Shutdown and maintain the system

c.
Keep the customer happy



d.
Elicit requirements from a user’s point of view

Answer
D



because one of the main goals in analyzing user requireme
nts is to elicit requirements
from a user’s point of view.

4.

Which of the following flowchart symbols indicates a question or branch in the process flow?

a.

Connector

b.
Decision

c.
Process

d.
Extract


Answer
B



because flowchart symbol indicates a question or branch in the process flow.

5.

If a record has the following field lengths, what is the record length?

Name=35, Zipcode=5, District =7

a.

42

b.
47


c.
54


d.
56

Answer
B



because with field lengths of 35, 5 and 7, the record length would be 47. To arrive at the
record length, add the field lengths together.

6.

The implementation phase consists of coding, testing, and

a.

Designing

b.

Building prototype programs

c.

Establishing re
quirements

d.

Integration

Answer
D



because the implementation phase consists of coding, testing, and integration of a
program.

7.
Reviewing specifications is the ______ step in writing a computer program.

a.

First



b.
Second

c.
Third


d.
Fourth

Answer
A



bec
ause the first step in writing a computer program is reviewing specificiations.

8.
Coding is the ________ step in a writing a computer program.

a.

First


b.
Second

c.
Third


d.
Fourth

Answer
C



because coding is the third step in writing a computer program.

9.
The following programming flowchart symbol is a/an ______ symbol.

a.

Processing

b.

Input/output

c.

Decision

d.

Connector

Answer
B



because the symbol in the item is an input/output symbol. An input/output symbol
represents data that is available for input or resulting from processing.

10.
How to use various logic diagrams to describe flow of data and processing (e.g. meaning of lo
gic
diagram symbols)?



For Today: Coding Study Questions

Answer the following questions:

1.

One example of scripting (text processing) language is

a.

Perl


b. C++


c. Fortan


d. Beta

2.

Which of the following enables the use of “plain English” queries?

a.

Basic

b. F
ortan

c. SQL



d. C++

3.

Which of the following is a correct name for a variable?

a.

State_Zipcode

b. State+Zipcode

c. State Zipcode


d. State=Zipcode

4.

A type of vaiable that contains text, such as names or titles, is called

a.

String

b. Boolean

c. integer

d. single

5.

An example of loop structure is

a.

Do Until

b. Select If

c. Execute

d. Next


6.

Why is the following expression invalid? A=10 + “New Date”

a.

Variable 5 is not defined

b.

Data types are mixed

c.

“New Data” is not a string

d.

“New Date” equals zero

7.

An example of an integer

variable is

a.

3/8


b.
0.75


c.
37


d.
-
8.4

8.

The following BASIC control statement FOR X=25 to 35 will cause the

a.

Following statement to be executed 10 times

b.

Following statement to be executed 11 times

c.

Code lines 15 through 34 to be executed

d.

Code lines 15 thro
ugh 35 to be executed

9.

When writing program user documentation,

a.

Use abbreviated words or acronyms when possible

b.

Include detailed program language information

c.

Include reference to the program logic

d.

Use language that is clear and at the level of the end user

10.

Create 3 flowcharts to solve the following problems.

a.

Make a phone call

b.

Get a drink of water

c.

Pop popcorn

Use the Internet to answer the following questions:

1.

Define a variable.

2.

Define data type.

3.

Find an example

of
SQL

code
?

4.

Find an example of

C++

code
?

5.

Find
an example of

Perl

code
?

6.

Find an example of
BASIC

code
?

7.

Define Logic error.

8.

What is unit testing?

9.

What are comments used for in a computer program?

10.

Define string?

11.

Define Boolean?

12.

Define integer?

13.

Define a Do Until loop?


More

NOCTI

Study Questions:

1.


A data element is intended to contain a range from 15 to 30 and after testing it contains 32.
What kind of error is this?

a.

Truncation

b.

R
o
unding

c.

Run time

d.

Boundary

2.

An output field has “Los Angeles” moved to it and when examined contains “Los Angel”. This
in
dicates a/an _______________ error.

a.

Logical

b.

Arithmetic

c.

Truncation

d.

Semantic

3.

Which of the following errors is caused by a calculation error?

a.

Logical

b.

Arithmetic

c.

Truncation

d.

Semantic

4.

Which of the following consists of a sequence of events to follow so they can
be repeated?

a.

Runtime

b.

Test files

c.

Trace route

d.

Script

5.

Compile errors can be caused by which of the following?

a.

Bad syntax

b.

Input data

c.

Insufficient test data

d.

Incorrect user specification

6.

Maintenance refers t9o changes to a system in operating arising from error
corrections,
performance improvements, changes in the business environment and

a.

Enhancements

in functions

b.

Application requirements

c.

Referencing software

d.

Material requirements

7.

The _________________ document lays out the general requirements that when changed
,
motivate the existence and purpose of a give code set.

a.

Technical report

b.

Design

c.

User interface

d.

Marketing

8.

One method of ensuring that updates to documentation are efficiently distributed is to

a.

Send customers printed documentation annually regardless of
whether there have been
changes.

b.

Make changes in an online help system rather than printed sources

c.

Send fliers containing only the changes rather than new printed volumes

d.

Make changes only on a pre
-
specified schedule

9.

All computer instructions are based on
four basic logic patterns. These patterns are simple
sequence, selection, loop, and __________________.

a.

Trailer

b.

Modular

c.

Top
-
down

d.

Branch

10.

Which of the following uses three basic control structures to form highly structured units of
code?

a.

Structured programm
ing

b.

Circular connector

c.

Modular con
s
truction

d.

Loop structure

11.

If the memory speed of the bus is 750MHz, and the CPU is operating at twice the speed of the
bus, what is the processor speed?

a.

375MHz

b.

750MHz

c.

1.5GHz

d.

2 GHz

12.

Two types of programs that create machine codes are the interpreter and the

a.

Assembler

b.

Object

c.

Compiler

d.

Source

13.

In the order of calculations in a program

a.

Addition precedes exponentiation

b.

Parentheses precede exponentiation

c.

Subtraction precedes addition

d.

Multip
lication precedes exponentiation

14.

When the code below is executed, strAdd will be equal to

strFirst=”123”

strSecond=”456”

strAdd = strFirst + strSecond


a.

“579”

b.

“123+456”

c.

“123456”

d.

“strFirst + strSecond”












Review


May 9, 2013

NOCTI Study Guide


Use
the internet to answer the following questions:

1.

What is a truncation error?

2.

What is does rounding mean when dealing with numbers?

3.

What is a run time error?

4.

What is an arithmetic error?

5.

Define syntax?

6.

What are the four basic logic patterns?

7.

What is a
compiler?

8.

What is the order of calculation in a program?

9.

Define the data type string?

10.

What does it mean to debug a program?

11.

How do you test a program? Hint: read
http://suite101
.com/article/testing
-
computer
-
programs
-
a96010


12.

What is unit testing?

13.

How do you develop a computer program? Hint: read
http://suite101.com/article/how
-
to
-
develop
-
a
-
comput
er
-
program
-
a96012


14.

Define Pseudocode.

15.

How do you create user documentation? Hint: read
http://www.ehow.com/how_5164952_create
-
user
-
documentation.html


16.

Define end
-
user documenta
tion. Who are these documents written for?

17.

How would you develop online help documentation for users? (e.g. think about taking
advantage of tools such as hyperlinks)?