Angela Knott
Quiz von , erstellt am more than 1 year ago

Quiz am CSI-117 FINAL EXAM, erstellt von Angela Knott am 10/12/2013.

1773
0
0
Keine Merkmale angegeben
Angela Knott
Erstellt von Angela Knott vor mehr als 10 Jahre
Schließen

CSI-117 FINAL EXAM

Frage 1 von 68

1

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

Wähle eine der folgenden:

  • local

  • global

  • reference

  • pass by value

  • pass by reference

Erklärung

Frage 2 von 68

1

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

Wähle eine der folgenden:

  • true

  • false

Erklärung

Frage 3 von 68

1

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

Wähle eine der folgenden:

  • true

  • false

Erklärung

Frage 4 von 68

1

To execute a module, we must ____ it

Wähle eine der folgenden:

  • compile

  • parse

  • define

  • debug

  • call

Erklärung

Frage 5 von 68

1

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

Wähle eine der folgenden:

  • true

  • false

Erklärung

Frage 6 von 68

1

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

Wähle eine der folgenden:

  • constant

  • I/O

  • reference

  • value

  • none of the above

Erklärung

Frage 7 von 68

1

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

Wähle eine der folgenden:

  • true

  • false

Erklärung

Frage 8 von 68

1

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

Wähle eine der folgenden:

  • arguments

  • body

  • parameters

  • statements

  • call

Erklärung

Frage 9 von 68

1

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

Wähle eine der folgenden:

  • simpler code

  • code reuse

  • better testing

  • faster development

  • none of the above

Erklärung

Frage 10 von 68

1

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

Wähle eine der folgenden:

  • header

  • body

  • display

  • definition

  • execution

Erklärung

Frage 11 von 68

1

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

Wähle eine der folgenden:

  • reference

  • constant

  • variable

  • value

  • none of the above

Erklärung

Frage 12 von 68

1

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

Wähle eine der folgenden:

  • true

  • false

Erklärung

Frage 13 von 68

1

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

Wähle eine der folgenden:

  • constant

  • value

  • reference

  • variable

  • none of the above

Erklärung

Frage 14 von 68

1

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

Wähle eine der folgenden:

  • true

  • false

Erklärung

Frage 15 von 68

1

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

Wähle eine der folgenden:

  • true

  • false

Erklärung

Frage 16 von 68

1

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

Wähle eine der folgenden:

  • reference

  • global

  • pass by reference

  • pass by value

  • local

Erklärung

Frage 17 von 68

1

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

Wähle eine der folgenden:

  • true

  • false

Erklärung

Frage 18 von 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.

Wähle eine der folgenden:

  • true

  • false

Erklärung

Frage 19 von 68

1

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

Wähle eine der folgenden:

  • true

  • false

Erklärung

Frage 20 von 68

1

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

Wähle eine der folgenden:

  • true

  • false

Erklärung

Frage 21 von 68

1

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

Wähle eine der folgenden:

  • decode-execute-fetch

  • execute-decode-fetch

  • decode-fetch-execute

  • fetch-decode-execute

  • fetch-execute-decode

Erklärung

Frage 22 von 68

1

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

Wähle eine der folgenden:

  • translates

  • compiles

  • compiles and translates

  • translates and execute

  • execute

Erklärung

Frage 23 von 68

1

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

Wähle eine der folgenden:

  • JAVA

  • C#

  • C++

  • Machine Language

  • Assembly Language

Erklärung

Frage 24 von 68

1

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

Wähle eine der folgenden:

  • true

  • false

Erklärung

Frage 25 von 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.

Wähle eine der folgenden:

  • true

  • false

Erklärung

Frage 26 von 68

1

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

Wähle eine der folgenden:

  • true

  • false

Erklärung

Frage 27 von 68

1

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

Wähle eine der folgenden:

  • utility programs

  • system software

  • application software

  • operation system

  • none of the above

Erklärung

Frage 28 von 68

1

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

Wähle eine der folgenden:

  • semantics

  • punctuations

  • syntax

Erklärung

Frage 29 von 68

1

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

Wähle eine der folgenden:

  • true

  • false

Erklärung

Frage 30 von 68

1

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

Wähle eine der folgenden:

  • Java

  • Visual Basic

  • Pascal

  • Assembly

  • C#

Erklärung

Frage 31 von 68

1

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

Wähle eine der folgenden:

  • true

  • false

Erklärung

Frage 32 von 68

1

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

Wähle eine der folgenden:

  • true

  • false

Erklärung

Frage 33 von 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.

Wähle eine der folgenden:

  • true

  • false

Erklärung

Frage 34 von 68

1

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

Wähle eine der folgenden:

  • virtual string

  • hard copy

  • strongly typed

  • string literal

  • none of the above

Erklärung

Frage 35 von 68

1

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

Wähle eine der folgenden:

  • true

  • false

Erklärung

Frage 36 von 68

1

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

Wähle eine der folgenden:

  • sequence

  • control

  • repetition

  • decision

  • none of the above

Erklärung

Frage 37 von 68

1

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

Wähle eine der folgenden:

  • true

  • false

Erklärung

Frage 38 von 68

1

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

Wähle eine der folgenden:

  • true

  • false

Erklärung

Frage 39 von 68

1

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

Wähle eine der folgenden:

  • true

  • false

Erklärung

Frage 40 von 68

1

Which of the following is not a variable data type?

Wähle eine der folgenden:

  • integer

  • number

  • real

  • string

  • none of the above

Erklärung

Frage 41 von 68

1

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

Wähle eine der folgenden:

  • true

  • false

Erklärung

Frage 42 von 68

1

A case structure is a ________ alternative decision structure.

Wähle eine der folgenden:

  • dual

  • multiple

  • single or dual

  • single

  • all of the above

Erklärung

Frage 43 von 68

1

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

Wähle eine der folgenden:

  • boolean

  • mathematical

  • relational

  • logical

  • none of the above

Erklärung

Frage 44 von 68

1

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

Wähle eine der folgenden:

  • true

  • false

Erklärung

Frage 45 von 68

1

Decision structures are also known as selection structures

Wähle eine der folgenden:

  • true

  • false

Erklärung

Frage 46 von 68

1

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

Wähle eine der folgenden:

  • true

  • false

Erklärung

Frage 47 von 68

1

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

Wähle eine der folgenden:

  • AND

  • ==

  • NOT

  • OR

  • none of the above

Erklärung

Frage 48 von 68

1

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

Wähle eine der folgenden:

  • true

  • false

Erklärung

Frage 49 von 68

1

What two logical operators perform short circuit evaluation?

Wähle eine der folgenden:

  • AND and OR

  • NOT and OR

  • AND and NOT

  • all of the above

  • none of the above

Erklärung

Frage 50 von 68

1

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

Wähle eine der folgenden:

  • ==

  • =!

  • =

  • !

  • none of the above

Erklärung

Frage 51 von 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.

Wähle eine der folgenden:

  • true

  • false

Erklärung

Frage 52 von 68

1

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

Wähle eine der folgenden:

  • mathematical

  • logical

  • relational

  • boolean

  • none of the above

Erklärung

Frage 53 von 68

1

Which of the following is a logical operator?

Wähle eine der folgenden:

  • NOT

  • AND

  • OR

  • all of the above

  • none of the above

Erklärung

Frage 54 von 68

1

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

Wähle eine der folgenden:

  • branch

  • selective

  • jump

  • switch

Erklärung

Frage 55 von 68

1

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

Wähle eine der folgenden:

  • true

  • false

Erklärung

Frage 56 von 68

1

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

Wähle eine der folgenden:

  • true

  • false

Erklärung

Frage 57 von 68

1

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

Wähle eine der folgenden:

  • AND

  • OR

  • NOT

  • All of the above

Erklärung

Frage 58 von 68

1

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

Wähle eine der folgenden:

  • true

  • false

Erklärung

Frage 59 von 68

1

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

Wähle eine der folgenden:

  • output file

  • sequential access file

  • binary file

Erklärung

Frage 60 von 68

1

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

Wähle eine der folgenden:

  • input file

  • output file

  • sequential access file

  • binary file

Erklärung

Frage 61 von 68

1

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

Wähle eine der folgenden:

  • formatted

  • encrypted

  • closed

  • opened

Erklärung

Frage 62 von 68

1

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

Wähle eine der folgenden:

  • text file

  • binary file

  • English file

  • human readable file

Erklärung

Frage 63 von 68

1

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

Wähle eine der folgenden:

  • median value

  • delimeter

  • boundary marker

  • EOF marker

Erklärung

Frage 64 von 68

1

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

Wähle eine der folgenden:

  • delimeter

  • boundary marker

  • EOF marker

Erklärung

Frage 65 von 68

1

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

Wähle eine der folgenden:

  • input position

  • delimeter

  • pointer

  • read position

Erklärung

Frage 66 von 68

1

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

Wähle eine der folgenden:

  • append mode

  • backup mode

  • read-only mode

Erklärung

Frage 67 von 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.

Wähle eine der folgenden:

  • true

  • false

Erklärung

Frage 68 von 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

Wähle eine der folgenden:

  • true

  • false

Erklärung