Angela Knott
Quiz por , criado more than 1 year ago

Quiz sobre CSI-117 FINAL EXAM, criado por Angela Knott em 10-12-2013.

1773
0
0
Sem etiquetas
Angela Knott
Criado por Angela Knott mais de 10 anos atrás
Fechar

CSI-117 FINAL EXAM

Questão 1 de 68

1

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

Selecione uma das seguintes:

  • local

  • global

  • reference

  • pass by value

  • pass by reference

Explicação

Questão 2 de 68

1

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

Selecione uma das seguintes:

  • true

  • false

Explicação

Questão 3 de 68

1

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

Selecione uma das seguintes:

  • true

  • false

Explicação

Questão 4 de 68

1

To execute a module, we must ____ it

Selecione uma das seguintes:

  • compile

  • parse

  • define

  • debug

  • call

Explicação

Questão 5 de 68

1

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

Selecione uma das seguintes:

  • true

  • false

Explicação

Questão 6 de 68

1

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

Selecione uma das seguintes:

  • constant

  • I/O

  • reference

  • value

  • none of the above

Explicação

Questão 7 de 68

1

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

Selecione uma das seguintes:

  • true

  • false

Explicação

Questão 8 de 68

1

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

Selecione uma das seguintes:

  • arguments

  • body

  • parameters

  • statements

  • call

Explicação

Questão 9 de 68

1

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

Selecione uma das seguintes:

  • simpler code

  • code reuse

  • better testing

  • faster development

  • none of the above

Explicação

Questão 10 de 68

1

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

Selecione uma das seguintes:

  • header

  • body

  • display

  • definition

  • execution

Explicação

Questão 11 de 68

1

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

Selecione uma das seguintes:

  • reference

  • constant

  • variable

  • value

  • none of the above

Explicação

Questão 12 de 68

1

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

Selecione uma das seguintes:

  • true

  • false

Explicação

Questão 13 de 68

1

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

Selecione uma das seguintes:

  • constant

  • value

  • reference

  • variable

  • none of the above

Explicação

Questão 14 de 68

1

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

Selecione uma das seguintes:

  • true

  • false

Explicação

Questão 15 de 68

1

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

Selecione uma das seguintes:

  • true

  • false

Explicação

Questão 16 de 68

1

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

Selecione uma das seguintes:

  • reference

  • global

  • pass by reference

  • pass by value

  • local

Explicação

Questão 17 de 68

1

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

Selecione uma das seguintes:

  • true

  • false

Explicação

Questão 18 de 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.

Selecione uma das seguintes:

  • true

  • false

Explicação

Questão 19 de 68

1

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

Selecione uma das seguintes:

  • true

  • false

Explicação

Questão 20 de 68

1

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

Selecione uma das seguintes:

  • true

  • false

Explicação

Questão 21 de 68

1

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

Selecione uma das seguintes:

  • decode-execute-fetch

  • execute-decode-fetch

  • decode-fetch-execute

  • fetch-decode-execute

  • fetch-execute-decode

Explicação

Questão 22 de 68

1

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

Selecione uma das seguintes:

  • translates

  • compiles

  • compiles and translates

  • translates and execute

  • execute

Explicação

Questão 23 de 68

1

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

Selecione uma das seguintes:

  • JAVA

  • C#

  • C++

  • Machine Language

  • Assembly Language

Explicação

Questão 24 de 68

1

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

Selecione uma das seguintes:

  • true

  • false

Explicação

Questão 25 de 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.

Selecione uma das seguintes:

  • true

  • false

Explicação

Questão 26 de 68

1

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

Selecione uma das seguintes:

  • true

  • false

Explicação

Questão 27 de 68

1

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

Selecione uma das seguintes:

  • utility programs

  • system software

  • application software

  • operation system

  • none of the above

Explicação

Questão 28 de 68

1

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

Selecione uma das seguintes:

  • semantics

  • punctuations

  • syntax

Explicação

Questão 29 de 68

1

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

Selecione uma das seguintes:

  • true

  • false

Explicação

Questão 30 de 68

1

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

Selecione uma das seguintes:

  • Java

  • Visual Basic

  • Pascal

  • Assembly

  • C#

Explicação

Questão 31 de 68

1

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

Selecione uma das seguintes:

  • true

  • false

Explicação

Questão 32 de 68

1

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

Selecione uma das seguintes:

  • true

  • false

Explicação

Questão 33 de 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.

Selecione uma das seguintes:

  • true

  • false

Explicação

Questão 34 de 68

1

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

Selecione uma das seguintes:

  • virtual string

  • hard copy

  • strongly typed

  • string literal

  • none of the above

Explicação

Questão 35 de 68

1

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

Selecione uma das seguintes:

  • true

  • false

Explicação

Questão 36 de 68

1

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

Selecione uma das seguintes:

  • sequence

  • control

  • repetition

  • decision

  • none of the above

Explicação

Questão 37 de 68

1

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

Selecione uma das seguintes:

  • true

  • false

Explicação

Questão 38 de 68

1

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

Selecione uma das seguintes:

  • true

  • false

Explicação

Questão 39 de 68

1

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

Selecione uma das seguintes:

  • true

  • false

Explicação

Questão 40 de 68

1

Which of the following is not a variable data type?

Selecione uma das seguintes:

  • integer

  • number

  • real

  • string

  • none of the above

Explicação

Questão 41 de 68

1

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

Selecione uma das seguintes:

  • true

  • false

Explicação

Questão 42 de 68

1

A case structure is a ________ alternative decision structure.

Selecione uma das seguintes:

  • dual

  • multiple

  • single or dual

  • single

  • all of the above

Explicação

Questão 43 de 68

1

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

Selecione uma das seguintes:

  • boolean

  • mathematical

  • relational

  • logical

  • none of the above

Explicação

Questão 44 de 68

1

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

Selecione uma das seguintes:

  • true

  • false

Explicação

Questão 45 de 68

1

Decision structures are also known as selection structures

Selecione uma das seguintes:

  • true

  • false

Explicação

Questão 46 de 68

1

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

Selecione uma das seguintes:

  • true

  • false

Explicação

Questão 47 de 68

1

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

Selecione uma das seguintes:

  • AND

  • ==

  • NOT

  • OR

  • none of the above

Explicação

Questão 48 de 68

1

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

Selecione uma das seguintes:

  • true

  • false

Explicação

Questão 49 de 68

1

What two logical operators perform short circuit evaluation?

Selecione uma das seguintes:

  • AND and OR

  • NOT and OR

  • AND and NOT

  • all of the above

  • none of the above

Explicação

Questão 50 de 68

1

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

Selecione uma das seguintes:

  • ==

  • =!

  • =

  • !

  • none of the above

Explicação

Questão 51 de 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.

Selecione uma das seguintes:

  • true

  • false

Explicação

Questão 52 de 68

1

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

Selecione uma das seguintes:

  • mathematical

  • logical

  • relational

  • boolean

  • none of the above

Explicação

Questão 53 de 68

1

Which of the following is a logical operator?

Selecione uma das seguintes:

  • NOT

  • AND

  • OR

  • all of the above

  • none of the above

Explicação

Questão 54 de 68

1

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

Selecione uma das seguintes:

  • branch

  • selective

  • jump

  • switch

Explicação

Questão 55 de 68

1

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

Selecione uma das seguintes:

  • true

  • false

Explicação

Questão 56 de 68

1

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

Selecione uma das seguintes:

  • true

  • false

Explicação

Questão 57 de 68

1

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

Selecione uma das seguintes:

  • AND

  • OR

  • NOT

  • All of the above

Explicação

Questão 58 de 68

1

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

Selecione uma das seguintes:

  • true

  • false

Explicação

Questão 59 de 68

1

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

Selecione uma das seguintes:

  • output file

  • sequential access file

  • binary file

Explicação

Questão 60 de 68

1

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

Selecione uma das seguintes:

  • input file

  • output file

  • sequential access file

  • binary file

Explicação

Questão 61 de 68

1

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

Selecione uma das seguintes:

  • formatted

  • encrypted

  • closed

  • opened

Explicação

Questão 62 de 68

1

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

Selecione uma das seguintes:

  • text file

  • binary file

  • English file

  • human readable file

Explicação

Questão 63 de 68

1

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

Selecione uma das seguintes:

  • median value

  • delimeter

  • boundary marker

  • EOF marker

Explicação

Questão 64 de 68

1

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

Selecione uma das seguintes:

  • delimeter

  • boundary marker

  • EOF marker

Explicação

Questão 65 de 68

1

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

Selecione uma das seguintes:

  • input position

  • delimeter

  • pointer

  • read position

Explicação

Questão 66 de 68

1

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

Selecione uma das seguintes:

  • append mode

  • backup mode

  • read-only mode

Explicação

Questão 67 de 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.

Selecione uma das seguintes:

  • true

  • false

Explicação

Questão 68 de 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

Selecione uma das seguintes:

  • true

  • false

Explicação