Angela Knott
Quiz by , created more than 1 year ago

Quiz on CSI-117 FINAL EXAM, created by Angela Knott on 10/12/2013.

1778
0
0
No tags specified
Angela Knott
Created by Angela Knott almost 11 years ago
Close

CSI-117 FINAL EXAM

Question 1 of 68

1

Which type of variable is visible to every module and the entire program?

Select one of the following:

  • local

  • global

  • reference

  • pass by value

  • pass by reference

Explanation

Question 2 of 68

1

The scope of the parameter variables is the entire program and it is visible to any statement in the program

Select one of the following:

  • true

  • false

Explanation

Question 3 of 68

1

A module can have two variables of the same name because they are within the same scope

Select one of the following:

  • true

  • false

Explanation

Question 4 of 68

1

To execute a module, we must ____ it

Select one of the following:

  • compile

  • parse

  • define

  • debug

  • call

Explanation

Question 5 of 68

1

When an argument is passed by value, the communication channel works only in one direction.

Select one of the following:

  • true

  • false

Explanation

Question 6 of 68

1

_________ variables are useful for establishing two-way communication between modules.

Select one of the following:

  • constant

  • I/O

  • reference

  • value

  • none of the above

Explanation

Question 7 of 68

1

The top-down design process is sometimes called stepwise refinement.

Select one of the following:

  • true

  • false

Explanation

Question 8 of 68

1

The module definition comprises the module header and the module _________.

Select one of the following:

  • arguments

  • body

  • parameters

  • statements

  • call

Explanation

Question 9 of 68

1

Which of the following is not a benefit of using modules?

Select one of the following:

  • simpler code

  • code reuse

  • better testing

  • faster development

  • none of the above

Explanation

Question 10 of 68

1

The following is an example of a module _______.
Call showNetPay( )

Select one of the following:

  • header

  • body

  • display

  • definition

  • execution

Explanation

Question 11 of 68

1

When an argument is passed by ______., it is not affected by a change of the content of the parameter variable.

Select one of the following:

  • reference

  • constant

  • variable

  • value

  • none of the above

Explanation

Question 12 of 68

1

The arguments in a module call and the parameters listed in the module header must be of compatible data types.

Select one of the following:

  • true

  • false

Explanation

Question 13 of 68

1

Passing an argument by ____ means that only a copy of the argument's value is passed into the parameter variable.

Select one of the following:

  • constant

  • value

  • reference

  • variable

  • none of the above

Explanation

Question 14 of 68

1

The scope of the variable is the segment of the program in which the variable can be accessed.

Select one of the following:

  • true

  • false

Explanation

Question 15 of 68

1

In most languages a module definition has three parts: a header, body, and a footer.

Select one of the following:

  • true

  • false

Explanation

Question 16 of 68

1

Which type of variable is not recommended to be used in programs because they make programs hard to understand and debug?

Select one of the following:

  • reference

  • global

  • pass by reference

  • pass by value

  • local

Explanation

Question 17 of 68

1

Modules can be written for commonly needed tasks and those modules can be incorporated into each program that needs them.

Select one of the following:

  • true

  • false

Explanation

Question 18 of 68

1

A pass by reference argument established a two-way communication with the module, but the value of the argument cannot be modified via the reference variable.

Select one of the following:

  • true

  • false

Explanation

Question 19 of 68

1

A bit that is turned off is represented by the value -1.

Select one of the following:

  • true

  • false

Explanation

Question 20 of 68

1

RAM is a volatile memory used for temporary storage while a program is running.

Select one of the following:

  • true

  • false

Explanation

Question 21 of 68

1

The process known as the _____ cycle is used by the CPU to execute instructions in a program.

Select one of the following:

  • decode-execute-fetch

  • execute-decode-fetch

  • decode-fetch-execute

  • fetch-decode-execute

  • fetch-execute-decode

Explanation

Question 22 of 68

1

What functions(s) does an interpreter perform with the instructions in a high level programming language?

Select one of the following:

  • translates

  • compiles

  • compiles and translates

  • translates and execute

  • execute

Explanation

Question 23 of 68

1

The following is an example of an instruction written in which computer language?
10110000

Select one of the following:

  • JAVA

  • C#

  • C++

  • Machine Language

  • Assembly Language

Explanation

Question 24 of 68

1

Programs that use an interpreter generally execute faster than compiled programs because they are already entirely translated into machine language when executed.

Select one of the following:

  • true

  • false

Explanation

Question 25 of 68

1

The main reason for using secondary storage is to hold data for long periods of time, even when the power to the computer is turned off.

Select one of the following:

  • true

  • false

Explanation

Question 26 of 68

1

Most programs written in high-level language need to be translated into machine language.

Select one of the following:

  • true

  • false

Explanation

Question 27 of 68

1

Programs that make a computer useful for everyday tasks are known as _______.

Select one of the following:

  • utility programs

  • system software

  • application software

  • operation system

  • none of the above

Explanation

Question 28 of 68

1

The term used for a set of rules that must be strictly followed when writing a program is ________.

Select one of the following:

  • semantics

  • punctuations

  • syntax

Explanation

Question 29 of 68

1

The CPU understands instructions in machine language, which are written in binary.

Select one of the following:

  • true

  • false

Explanation

Question 30 of 68

1

Which computer language uses short words known as mnemonics for writing programs?

Select one of the following:

  • Java

  • Visual Basic

  • Pascal

  • Assembly

  • C#

Explanation

Question 31 of 68

1

Assembly language is referred to as a low-level language because it is close to the C++ language.

Select one of the following:

  • true

  • false

Explanation

Question 32 of 68

1

It has been proven by a group of mathematicians that all programs can be written using only three structures.

Select one of the following:

  • true

  • false

Explanation

Question 33 of 68

1

A variable is a storage location in memory that is represented by a name and can hold different values during the execution of the program.

Select one of the following:

  • true

  • false

Explanation

Question 34 of 68

1

What term is used for a string that appears in the actual code of the program?

Select one of the following:

  • virtual string

  • hard copy

  • strongly typed

  • string literal

  • none of the above

Explanation

Question 35 of 68

1

Most programming languages do not automatically print spaces between multiple items that are displayed on the screen.

Select one of the following:

  • true

  • false

Explanation

Question 36 of 68

1

A ______ structure is a set of statements that execute in the order that they appear.

Select one of the following:

  • sequence

  • control

  • repetition

  • decision

  • none of the above

Explanation

Question 37 of 68

1

A sequence of characters that is used as data is called a string in programming.

Select one of the following:

  • true

  • false

Explanation

Question 38 of 68

1

Programmers start writing code as the first step when they begin a new project.

Select one of the following:

  • true

  • false

Explanation

Question 39 of 68

1

The expressions (a+b) / c and a + b /c will always yield identical results.

Select one of the following:

  • true

  • false

Explanation

Question 40 of 68

1

Which of the following is not a variable data type?

Select one of the following:

  • integer

  • number

  • real

  • string

  • none of the above

Explanation

Question 41 of 68

1

Although the sequence structure is heavily used in programming, it cannot handle every type of task.

Select one of the following:

  • true

  • false

Explanation

Question 42 of 68

1

A case structure is a ________ alternative decision structure.

Select one of the following:

  • dual

  • multiple

  • single or dual

  • single

  • all of the above

Explanation

Question 43 of 68

1

What type of operators are the following?
> = = = ! =

Select one of the following:

  • boolean

  • mathematical

  • relational

  • logical

  • none of the above

Explanation

Question 44 of 68

1

An If statement will produce unpredictable results if the programmer does not use proper indentations in psuedocode

Select one of the following:

  • true

  • false

Explanation

Question 45 of 68

1

Decision structures are also known as selection structures

Select one of the following:

  • true

  • false

Explanation

Question 46 of 68

1

It is possible to write a complete program using only a decision structure

Select one of the following:

  • true

  • false

Explanation

Question 47 of 68

1

Which operator is best to determine whether x contains a value in the range of 10 through 57?

Select one of the following:

  • AND

  • ==

  • NOT

  • OR

  • none of the above

Explanation

Question 48 of 68

1

The first line of the case structure starts with the word CASE followed by the test expression.

Select one of the following:

  • true

  • false

Explanation

Question 49 of 68

1

What two logical operators perform short circuit evaluation?

Select one of the following:

  • AND and OR

  • NOT and OR

  • AND and NOT

  • all of the above

  • none of the above

Explanation

Question 50 of 68

1

Which operator is used to determine that the operands are not exactly of the same value?

Select one of the following:

  • ==

  • =!

  • =

  • !

  • none of the above

Explanation

Question 51 of 68

1

In an expression with an OR operator, it does not matter which sub expression is true for the compound expression to be true.

Select one of the following:

  • true

  • false

Explanation

Question 52 of 68

1

What type of operator can be used to determine whether a specific relationship exists between two values?

Select one of the following:

  • mathematical

  • logical

  • relational

  • boolean

  • none of the above

Explanation

Question 53 of 68

1

Which of the following is a logical operator?

Select one of the following:

  • NOT

  • AND

  • OR

  • all of the above

  • none of the above

Explanation

Question 54 of 68

1

In many languages the case structure is called a _____ statement.

Select one of the following:

  • branch

  • selective

  • jump

  • switch

Explanation

Question 55 of 68

1

A nested decision structure can be used to test more than one condition.

Select one of the following:

  • true

  • false

Explanation

Question 56 of 68

1

A nested decision structure can be used to test more than one condition.

Select one of the following:

  • true

  • false

Explanation

Question 57 of 68

1

If the expression is false, the ________ operator will return true.

Select one of the following:

  • AND

  • OR

  • NOT

  • All of the above

Explanation

Question 58 of 68

1

The if-then-else statement should be used to write a single alternative decision structure

Select one of the following:

  • true

  • false

Explanation

Question 59 of 68

1

A file that data is written to is known as a(n)

Select one of the following:

  • output file

  • sequential access file

  • binary file

Explanation

Question 60 of 68

1

A file that data is read from is known as a(n)

Select one of the following:

  • input file

  • output file

  • sequential access file

  • binary file

Explanation

Question 61 of 68

1

Before a file can be used by a program it must be

Select one of the following:

  • formatted

  • encrypted

  • closed

  • opened

Explanation

Question 62 of 68

1

This type of file contains data that has not been converted to text.

Select one of the following:

  • text file

  • binary file

  • English file

  • human readable file

Explanation

Question 63 of 68

1

This is a character or set of characters that marks the end of a piece of data

Select one of the following:

  • median value

  • delimeter

  • boundary marker

  • EOF marker

Explanation

Question 64 of 68

1

This is a character or set of characters that mark the end of a file

Select one of the following:

  • delimeter

  • boundary marker

  • EOF marker

Explanation

Question 65 of 68

1

This marks the location of the next item that will be read from a file

Select one of the following:

  • input position

  • delimeter

  • pointer

  • read position

Explanation

Question 66 of 68

1

When a file is opened in this mode, data will be written at the end of the file's existing contents

Select one of the following:

  • append mode

  • backup mode

  • read-only mode

Explanation

Question 67 of 68

1

When working with a sequential access file, you can jump directly to any piece of data in the file without reading the data that comes before it.

Select one of the following:

  • true

  • false

Explanation

Question 68 of 68

1

In most languages, when you open an output file and that file already exists on the disk, the contents of the existing file will be erased

Select one of the following:

  • true

  • false

Explanation