CSI-117 FINAL EXAM

Descripción

Test sobre CSI-117 FINAL EXAM, creado por Angela Knott el 10/12/2013.
Angela Knott
Test por Angela Knott, actualizado hace más de 1 año
Angela Knott
Creado por Angela Knott hace casi 11 años
1777
0

Resumen del Recurso

Pregunta 1

Pregunta
Which type of variable is visible to every module and the entire program?
Respuesta
  • local
  • global
  • reference
  • pass by value
  • pass by reference

Pregunta 2

Pregunta
The scope of the parameter variables is the entire program and it is visible to any statement in the program
Respuesta
  • true
  • false

Pregunta 3

Pregunta
A module can have two variables of the same name because they are within the same scope
Respuesta
  • true
  • false

Pregunta 4

Pregunta
To execute a module, we must ____ it
Respuesta
  • compile
  • parse
  • define
  • debug
  • call

Pregunta 5

Pregunta
When an argument is passed by value, the communication channel works only in one direction.
Respuesta
  • true
  • false

Pregunta 6

Pregunta
_________ variables are useful for establishing two-way communication between modules.
Respuesta
  • constant
  • I/O
  • reference
  • value
  • none of the above

Pregunta 7

Pregunta
The top-down design process is sometimes called stepwise refinement.
Respuesta
  • true
  • false

Pregunta 8

Pregunta
The module definition comprises the module header and the module _________.
Respuesta
  • arguments
  • body
  • parameters
  • statements
  • call

Pregunta 9

Pregunta
Which of the following is not a benefit of using modules?
Respuesta
  • simpler code
  • code reuse
  • better testing
  • faster development
  • none of the above

Pregunta 10

Pregunta
The following is an example of a module _______. Call showNetPay( )
Respuesta
  • header
  • body
  • display
  • definition
  • execution

Pregunta 11

Pregunta
When an argument is passed by ______., it is not affected by a change of the content of the parameter variable.
Respuesta
  • reference
  • constant
  • variable
  • value
  • none of the above

Pregunta 12

Pregunta
The arguments in a module call and the parameters listed in the module header must be of compatible data types.
Respuesta
  • true
  • false

Pregunta 13

Pregunta
Passing an argument by ____ means that only a copy of the argument's value is passed into the parameter variable.
Respuesta
  • constant
  • value
  • reference
  • variable
  • none of the above

Pregunta 14

Pregunta
The scope of the variable is the segment of the program in which the variable can be accessed.
Respuesta
  • true
  • false

Pregunta 15

Pregunta
In most languages a module definition has three parts: a header, body, and a footer.
Respuesta
  • true
  • false

Pregunta 16

Pregunta
Which type of variable is not recommended to be used in programs because they make programs hard to understand and debug?
Respuesta
  • reference
  • global
  • pass by reference
  • pass by value
  • local

Pregunta 17

Pregunta
Modules can be written for commonly needed tasks and those modules can be incorporated into each program that needs them.
Respuesta
  • true
  • false

Pregunta 18

Pregunta
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.
Respuesta
  • true
  • false

Pregunta 19

Pregunta
A bit that is turned off is represented by the value -1.
Respuesta
  • true
  • false

Pregunta 20

Pregunta
RAM is a volatile memory used for temporary storage while a program is running.
Respuesta
  • true
  • false

Pregunta 21

Pregunta
The process known as the _____ cycle is used by the CPU to execute instructions in a program.
Respuesta
  • decode-execute-fetch
  • execute-decode-fetch
  • decode-fetch-execute
  • fetch-decode-execute
  • fetch-execute-decode

Pregunta 22

Pregunta
What functions(s) does an interpreter perform with the instructions in a high level programming language?
Respuesta
  • translates
  • compiles
  • compiles and translates
  • translates and execute
  • execute

Pregunta 23

Pregunta
The following is an example of an instruction written in which computer language? 10110000
Respuesta
  • JAVA
  • C#
  • C++
  • Machine Language
  • Assembly Language

Pregunta 24

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

Pregunta 25

Pregunta
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.
Respuesta
  • true
  • false

Pregunta 26

Pregunta
Most programs written in high-level language need to be translated into machine language.
Respuesta
  • true
  • false

Pregunta 27

Pregunta
Programs that make a computer useful for everyday tasks are known as _______.
Respuesta
  • utility programs
  • system software
  • application software
  • operation system
  • none of the above

Pregunta 28

Pregunta
The term used for a set of rules that must be strictly followed when writing a program is ________.
Respuesta
  • semantics
  • punctuations
  • syntax

Pregunta 29

Pregunta
The CPU understands instructions in machine language, which are written in binary.
Respuesta
  • true
  • false

Pregunta 30

Pregunta
Which computer language uses short words known as mnemonics for writing programs?
Respuesta
  • Java
  • Visual Basic
  • Pascal
  • Assembly
  • C#

Pregunta 31

Pregunta
Assembly language is referred to as a low-level language because it is close to the C++ language.
Respuesta
  • true
  • false

Pregunta 32

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

Pregunta 33

Pregunta
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.
Respuesta
  • true
  • false

Pregunta 34

Pregunta
What term is used for a string that appears in the actual code of the program?
Respuesta
  • virtual string
  • hard copy
  • strongly typed
  • string literal
  • none of the above

Pregunta 35

Pregunta
Most programming languages do not automatically print spaces between multiple items that are displayed on the screen.
Respuesta
  • true
  • false

Pregunta 36

Pregunta
A ______ structure is a set of statements that execute in the order that they appear.
Respuesta
  • sequence
  • control
  • repetition
  • decision
  • none of the above

Pregunta 37

Pregunta
A sequence of characters that is used as data is called a string in programming.
Respuesta
  • true
  • false

Pregunta 38

Pregunta
Programmers start writing code as the first step when they begin a new project.
Respuesta
  • true
  • false

Pregunta 39

Pregunta
The expressions (a+b) / c and a + b /c will always yield identical results.
Respuesta
  • true
  • false

Pregunta 40

Pregunta
Which of the following is not a variable data type?
Respuesta
  • integer
  • number
  • real
  • string
  • none of the above

Pregunta 41

Pregunta
Although the sequence structure is heavily used in programming, it cannot handle every type of task.
Respuesta
  • true
  • false

Pregunta 42

Pregunta
A case structure is a ________ alternative decision structure.
Respuesta
  • dual
  • multiple
  • single or dual
  • single
  • all of the above

Pregunta 43

Pregunta
What type of operators are the following? > = = = ! =
Respuesta
  • boolean
  • mathematical
  • relational
  • logical
  • none of the above

Pregunta 44

Pregunta
An If statement will produce unpredictable results if the programmer does not use proper indentations in psuedocode
Respuesta
  • true
  • false

Pregunta 45

Pregunta
Decision structures are also known as selection structures
Respuesta
  • true
  • false

Pregunta 46

Pregunta
It is possible to write a complete program using only a decision structure
Respuesta
  • true
  • false

Pregunta 47

Pregunta
Which operator is best to determine whether x contains a value in the range of 10 through 57?
Respuesta
  • AND
  • ==
  • NOT
  • OR
  • none of the above

Pregunta 48

Pregunta
The first line of the case structure starts with the word CASE followed by the test expression.
Respuesta
  • true
  • false

Pregunta 49

Pregunta
What two logical operators perform short circuit evaluation?
Respuesta
  • AND and OR
  • NOT and OR
  • AND and NOT
  • all of the above
  • none of the above

Pregunta 50

Pregunta
Which operator is used to determine that the operands are not exactly of the same value?
Respuesta
  • ==
  • =!
  • =
  • !
  • none of the above

Pregunta 51

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

Pregunta 52

Pregunta
What type of operator can be used to determine whether a specific relationship exists between two values?
Respuesta
  • mathematical
  • logical
  • relational
  • boolean
  • none of the above

Pregunta 53

Pregunta
Which of the following is a logical operator?
Respuesta
  • NOT
  • AND
  • OR
  • all of the above
  • none of the above

Pregunta 54

Pregunta
In many languages the case structure is called a _____ statement.
Respuesta
  • branch
  • selective
  • jump
  • switch

Pregunta 55

Pregunta
A nested decision structure can be used to test more than one condition.
Respuesta
  • true
  • false

Pregunta 56

Pregunta
A nested decision structure can be used to test more than one condition.
Respuesta
  • true
  • false

Pregunta 57

Pregunta
If the expression is false, the ________ operator will return true.
Respuesta
  • AND
  • OR
  • NOT
  • All of the above

Pregunta 58

Pregunta
The if-then-else statement should be used to write a single alternative decision structure
Respuesta
  • true
  • false

Pregunta 59

Pregunta
A file that data is written to is known as a(n)
Respuesta
  • output file
  • sequential access file
  • binary file

Pregunta 60

Pregunta
A file that data is read from is known as a(n)
Respuesta
  • input file
  • output file
  • sequential access file
  • binary file

Pregunta 61

Pregunta
Before a file can be used by a program it must be
Respuesta
  • formatted
  • encrypted
  • closed
  • opened

Pregunta 62

Pregunta
This type of file contains data that has not been converted to text.
Respuesta
  • text file
  • binary file
  • English file
  • human readable file

Pregunta 63

Pregunta
This is a character or set of characters that marks the end of a piece of data
Respuesta
  • median value
  • delimeter
  • boundary marker
  • EOF marker

Pregunta 64

Pregunta
This is a character or set of characters that mark the end of a file
Respuesta
  • delimeter
  • boundary marker
  • EOF marker

Pregunta 65

Pregunta
This marks the location of the next item that will be read from a file
Respuesta
  • input position
  • delimeter
  • pointer
  • read position

Pregunta 66

Pregunta
When a file is opened in this mode, data will be written at the end of the file's existing contents
Respuesta
  • append mode
  • backup mode
  • read-only mode

Pregunta 67

Pregunta
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.
Respuesta
  • true
  • false

Pregunta 68

Pregunta
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
Respuesta
  • true
  • false
Mostrar resumen completo Ocultar resumen completo

Similar

La Biología
maya velasquez
Anatomía del Sistema Respiratorio
edonoso
Fichas para oposiciones de auxiliar de enfermería
leyvamiri
Sistema nervioso
crisferroeldeluna
Cardiología Veterinaria
oscardary
Segunda guerra mundial
Betshy
MAPAS CONCEPTUALES DIGITALES
Erika Chicaiza
Las TIC
Laura -
ANATOMÍA...
Ulises Yo
u3. actividad 2, caracteristicas de el neoliberalismoy globalizacion.
Hermilo gonzalez hernandez
TÍTULO DE LA LECTURA
Senaju Perú