Ask Computer Engineering Expert

problem 1

All of the following are ex of debugging techniques except for 

Answer

desk checking

compiling

program walkthrough

executing

documentation


problem 2


A pictorial representation of the logic of a program is given by
Answer

pseudocode

flow chart

hierarchy chart

printer spacing chart

object code


problem 3


This planning tool shows relationships among sections in a program:
Answer

pseudocode

flow chart

hierarchy chart

printer spacing chart

record layout form


problem 4


An ex of a syntax error is:
Answer

attempting to divide by zero

trying to read a file that cannot be found

coding an ADD instruction instead of a MULTIPLY instruction

coding a series of steps in the wrong sequence

misspelling ADD as AD


problem 5


The division in a COBOL program that contains the executable code is called:
Answer

IDENTIFICATION division

DATA division

EQUIPMENT division

PROCEDURE division

ENVIRONMENT division


problem 6


All of the following is true about the IDENTIFICATION DIVISION except:
Answer

It is divided into sections.

It is the first division in a COBOL program.

It contains no executable code.

A required paragraph is PROGRAM-ID.

Every COBOL program must have this division.


problem 7


Which of the following is NOT a legal user-defined COBOL data name?
Answer

EMPLOYEE-NAME

DATE

TEST1

INVENTORY-FILE

AMOUNT-OF-INVENTORY


problem 8


Each of the following is a rule for forming user-defined words except:
Answer

at least one alphabetic character

no more than 30 characters

letters, digits, underscores, hyphens, ampersands only

no embedded blanks

no COBOL reserved words


problem 9


Which of the following statements is true about a systems analyst?
Answer

The analyst s job is to design an efficient business information system.

The analyst should have considerable computer expertise.

The analyst determines inputs and outputs of the system.

The analyst prepares program specifications.

All of the above.


problem 10


Which of the following clauses is legal?
Answer

PICT IS 9999.

PICTURE AAA.

PICTURE IS 9A9A.

PIC 5(A).

PIC X5.


problem 11


Which of the following is recommended coding style?
Answer

PIC clauses should be aligned.

Use X rather than A in PIC clauses for non-numeric items.

If parentheses are used to denote the size of a field, no spaces should appear within the parentheses.

If digits are in a field that will not be used for arithmetic, code them as X.

All of the above are recommended.


problem 12


Which of the following is a valid numeric literal?
Answer

-68.

3.1415-

$1,000.00

123456789012345678

12.34.56


problem 13


Which of the following is a valid non-numeric literal?
Answer

32.58

1234

EMPLOYEE-NAME

JOHNSON

SPACES


problem 14


Which of the following is NOT true about OPEN statements?
Answer

An OPEN statement specifies whether a file will be used for input or output.

An OPEN statement accesses the specific device the file is found on.

An input file must be opened before it can be read.

Fully interactive programs with keyboard input and screen output require this statement.

Every file that is defined by a SELECT statement in the ENVIRONMENT DIVISION must be opened in the PROCEDURE DIVISION.


problem 15


A file-name specified in a READ statement also appears in which of the following statements?
Answer

OPEN statement

SELECT statement

CLOSE statement

FD entry

All of the above


problem 16


Which of the following is executed first?
Answer

STOP RUN

OPEN

READ

CLOSE

prepare


problem 17


What statement is NOT found in a fully interactive program?
Answer

ACCEPT

PERFORM

STOP RUN

OPEN

DISPLAY


problem 18


Which of the following is executed last?
Answer

STOP RUN

READ

MOVE

CLOSE

OPEN


problem 19


The AT END clause in a READ statement has the following function:
Answer

It is executed when the READ is successful.

It is executed when there is no data left to read.

It tells the computer what to do when a record is read.

It is executed every time a record is read.

After a record is processed, this clause is executed.


problem 20


Which statement is required in fully interactive programs?
Answer

OPEN

READ

prepare

CLOSE

STOP RUN


problem 21


Which of the following is TRUE about hierarchy charts?
Answer

They map out program logic.

They illustrate top-down design.

They are used to verify program logic.

They are pictorial representations of the logical control structures.

They are language-dependent.


problem 22


The control structure that causes instructions to be executed in the order they appear is called
Answer

sequence

selection

iteration

case structure

subroutines


problem 23


The control structure that causes an instruction to be executed depending on the existence of a condition is called
Answer

sequence

selection

iteration

case structure

subroutines


problem 24


The in-line PERFORM UNTIL is an illustration of the following control structure:
Answer

sequence

selection

iteration

case structure

subroutines


problem 25


The IF-THEN-ELSE statement is an illustration of the following control structure:
Answer

sequence

selection

iteration

case structure

subroutines


problem 26


EVALUATE is an illustration of the following control structure:
Answer

sequence

selection

iteration

case structure

subroutines


problem 27


The control structure that causes the execution of one of numerous sets of instructions depending on the contents of a given field is called:
Answer

sequence

selection

iteration

case structure

subroutines


problem 28


Which of the following is NOT TRUE about a hierarchy chart?
Answer

It illustrates how modules relate to one another.

It is called a Visual Table of Contents.

It depicts the actual sequence of instructions.

It shows when a module is executed from more than one point in a program.

It provides a graphic overview of a program.


problem 29


Which of the following is an ex of a logic error?
Answer

OPEN EMPLOYEE-FILE

ACCCEPT EMPLOYEE-NAME

Using a field in the PROCEDURE DIVISION that has not been defined in the DATA DIVISION

A missing period

Adding two values when they should be multiplied


problem 30


Which of the following is an ex of a syntax error?
Answer

OPEN EMPLOYEE-FILE

Specifying the wrong drive for an input file

Adding two values when they should be multiplied

Infinite loop

Alphanumeric data in a numeric field


problem 31


Which of the following is NOT true about top-down programming?
Answer

Hierarchy charts are used to illustrate this approach.

It is also called stepwise-refinement.

It is a technique of structured programming.

The details are coded first.

Modules are coded in hierarchical order.


problem 32


Which of the following is NOT true about pseudocode?
Answer

It should be prepared before a program is coded.

It uses symbols similar to those in a flowchart.

It is the most common structured programming planning tool.

It has been designed to represent logical control structures.

It is language independent.


problem 33


Which of the following is NOT a logical control structure used in structured programming?
Answer

unconditional branches

sequence

iteration

case structure

selection


problem 34


Which of the following is NOT an acceptable key term used to define logical control structures in pseudocode?
Answer

IF-THEN...END-IF

GOTO...END-GOTO

EVALUATE...END-EVALUATE

PERFORM UNTIL...END-PERFORM

IF-THEN-ELSE...END-IF


problem 35


Which of the following is TRUE about moving portions to the left of the decimal point in numeric fields?
Answer

Decimal alignment is always maintained.

No portion of the original contents of the receiving field is retained after the MOVE is executed.

When the receiving field is larger than the sending field, the non-filled positions are replaced with zeros.

When the receiving field is smaller than the sending field, truncation occurs on the left.

All of the above.


problem 36


All the MOVEs except which one are NON-NUMERIC?
Answer

moving a numeric field to an alphanumeric field

moving a numeric field to a numeric field

moving an alphabetic field to an alphabetic field

moving an alphanumeric literal to an alphanumeric field

moving ZEROS to an alphanumeric field


problem 37


ZEROS may NOT be moved to which of the following fields?
Answer

numeric field with integer portion only

alphabetic

alphanumeric

group field

numeric


problem 38


Which of the following editing functions may be performed on an alphanumeric field?
Answer

printing of spaces or zeros as separators within fields

suppression of leading zeros

printing of dollar signs and commas

printing of plus or minus signs

printing of asterisks for check protection


problem 39


Which of the following editing functions may NOT be performed on a numeric field?
Answer

printing of debit or credit symbols for accounting applications

suppression of leading zeros

printing of dollar signs and commas

printing of plus or minus signs

insertion of # signs


problem 40



To print the value -123 which of the following PIC clauses can NOT be used?
Answer


+ZZ9


+999


-ZZ9


-999


ZZ9CR


problem 41


Which of the following is NOT a valid PIC clause?
Answer

ZZ9DB

CRZZ9

+ZZ9

ZZ9-

9B9B9


problem 42


Which of the following is NOT true about floating string characters?
Answer

$ may be floated.

+ may be floated.

There may be two floating string characters in a PIC clause.

A floating string character is usually the leftmost character in the PIC clause.

- may be floated.


problem 43


If a sending field has PIC 9(4)V99 with value 0012 ^ 34, to print this as bbb$12.34, the report-item must have which of the following PIC clauses?
Answer

$Z,ZZ9.99

$$9.99

ZZZ$Z9.99

$,$9.99

$,$9.99


problem 44


Which of the following prepare formats is NOT correct?
Answer

prepare PRINT-REC ON NEW-PAGE

prepare PRINT-REC.

prepare PRINT-REC FROM MAIN-LABEL-LINE.

prepare PRINT-REC BEFORE ADVANCING 2 LINES.

prepare PRINT-REC AFTER ADVANCING 2 LINES.


problem 45


COBOL permits which of the following for well-designed reports?
Answer

double-spacing

pagination

using a computer system supplied date

calculating and printing totals

All of the above.


problem 46


Which of the following is NOT a figurative constant?
Answer

ZEROS

SPACES

QUOTE

DATE

ZERO


problem 47


Which of the following is NOT a character that can be used in a PIC clause for a report-item?
Answer

¢

Z

.

+

/
problem 48

Which of the following symbols is used for LEADING zero suppression?
Answer

S

#

*

Z

b


problem 49


A report may have all of the following EXCEPT:
Answer

column footing

page footing

report heading

column heading

page heading


problem 50

Which PIC symbol is used to store a sign for a numeric field used for computation?
Answer

+

-

S

Z

*  

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M987856

Have any Question?


Related Questions in Computer Engineering

Does bmw have a guided missile corporate culture and

Does BMW have a guided missile corporate culture, and incubator corporate culture, a family corporate culture, or an Eiffel tower corporate culture?

Rebecca borrows 10000 at 18 compounded annually she pays

Rebecca borrows $10,000 at 18% compounded annually. She pays off the loan over a 5-year period with annual payments, starting at year 1. Each successive payment is $700 greater than the previous payment. (a) How much was ...

Jeff decides to start saving some money from this upcoming

Jeff decides to start saving some money from this upcoming month onwards. He decides to save only $500 at first, but each month he will increase the amount invested by $100. He will do it for 60 months (including the fir ...

Suppose you make 30 annual investments in a fund that pays

Suppose you make 30 annual investments in a fund that pays 6% compounded annually. If your first deposit is $7,500 and each successive deposit is 6% greater than the preceding deposit, how much will be in the fund immedi ...

Question -under what circumstances is it ethical if ever to

Question :- Under what circumstances is it ethical, if ever, to use consumer information in marketing research? Explain why you consider it ethical or unethical.

What are the differences between four types of economics

What are the differences between four types of economics evaluations and their differences with other two (budget impact analysis (BIA) and cost of illness (COI) studies)?

What type of economic system does norway have explain some

What type of economic system does Norway have? Explain some of the benefits of this system to the country and some of the drawbacks,

Among the who imf and wto which of these governmental

Among the WHO, IMF, and WTO, which of these governmental institutions do you feel has most profoundly shaped healthcare outcomes in low-income countries and why? Please support your reasons with examples and research/doc ...

A real estate developer will build two different types of

A real estate developer will build two different types of apartments in a residential area: one- bedroom apartments and two-bedroom apartments. In addition, the developer will build either a swimming pool or a tennis cou ...

Question what some of the reasons that evolutionary models

Question : What some of the reasons that evolutionary models are considered by many to be the best approach to software development. The response must be typed, single spaced, must be in times new roman font (size 12) an ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As