CSI-117 FINAL EXAM

Descrição

Quiz sobre CSI-117 FINAL EXAM, criado por Angela Knott em 10-12-2013.
Angela Knott
Quiz por Angela Knott, atualizado more than 1 year ago
Angela Knott
Criado por Angela Knott mais de 10 anos atrás
1770
0

Resumo de Recurso

Questão 1

Questão
Which type of variable is visible to every module and the entire program?
Responda
  • local
  • global
  • reference
  • pass by value
  • pass by reference

Questão 2

Questão
The scope of the parameter variables is the entire program and it is visible to any statement in the program
Responda
  • true
  • false

Questão 3

Questão
A module can have two variables of the same name because they are within the same scope
Responda
  • true
  • false

Questão 4

Questão
To execute a module, we must ____ it
Responda
  • compile
  • parse
  • define
  • debug
  • call

Questão 5

Questão
When an argument is passed by value, the communication channel works only in one direction.
Responda
  • true
  • false

Questão 6

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

Questão 7

Questão
The top-down design process is sometimes called stepwise refinement.
Responda
  • true
  • false

Questão 8

Questão
The module definition comprises the module header and the module _________.
Responda
  • arguments
  • body
  • parameters
  • statements
  • call

Questão 9

Questão
Which of the following is not a benefit of using modules?
Responda
  • simpler code
  • code reuse
  • better testing
  • faster development
  • none of the above

Questão 10

Questão
The following is an example of a module _______. Call showNetPay( )
Responda
  • header
  • body
  • display
  • definition
  • execution

Questão 11

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

Questão 12

Questão
The arguments in a module call and the parameters listed in the module header must be of compatible data types.
Responda
  • true
  • false

Questão 13

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

Questão 14

Questão
The scope of the variable is the segment of the program in which the variable can be accessed.
Responda
  • true
  • false

Questão 15

Questão
In most languages a module definition has three parts: a header, body, and a footer.
Responda
  • true
  • false

Questão 16

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

Questão 17

Questão
Modules can be written for commonly needed tasks and those modules can be incorporated into each program that needs them.
Responda
  • true
  • false

Questão 18

Questão
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.
Responda
  • true
  • false

Questão 19

Questão
A bit that is turned off is represented by the value -1.
Responda
  • true
  • false

Questão 20

Questão
RAM is a volatile memory used for temporary storage while a program is running.
Responda
  • true
  • false

Questão 21

Questão
The process known as the _____ cycle is used by the CPU to execute instructions in a program.
Responda
  • decode-execute-fetch
  • execute-decode-fetch
  • decode-fetch-execute
  • fetch-decode-execute
  • fetch-execute-decode

Questão 22

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

Questão 23

Questão
The following is an example of an instruction written in which computer language? 10110000
Responda
  • JAVA
  • C#
  • C++
  • Machine Language
  • Assembly Language

Questão 24

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

Questão 25

Questão
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.
Responda
  • true
  • false

Questão 26

Questão
Most programs written in high-level language need to be translated into machine language.
Responda
  • true
  • false

Questão 27

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

Questão 28

Questão
The term used for a set of rules that must be strictly followed when writing a program is ________.
Responda
  • semantics
  • punctuations
  • syntax

Questão 29

Questão
The CPU understands instructions in machine language, which are written in binary.
Responda
  • true
  • false

Questão 30

Questão
Which computer language uses short words known as mnemonics for writing programs?
Responda
  • Java
  • Visual Basic
  • Pascal
  • Assembly
  • C#

Questão 31

Questão
Assembly language is referred to as a low-level language because it is close to the C++ language.
Responda
  • true
  • false

Questão 32

Questão
It has been proven by a group of mathematicians that all programs can be written using only three structures.
Responda
  • true
  • false

Questão 33

Questão
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.
Responda
  • true
  • false

Questão 34

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

Questão 35

Questão
Most programming languages do not automatically print spaces between multiple items that are displayed on the screen.
Responda
  • true
  • false

Questão 36

Questão
A ______ structure is a set of statements that execute in the order that they appear.
Responda
  • sequence
  • control
  • repetition
  • decision
  • none of the above

Questão 37

Questão
A sequence of characters that is used as data is called a string in programming.
Responda
  • true
  • false

Questão 38

Questão
Programmers start writing code as the first step when they begin a new project.
Responda
  • true
  • false

Questão 39

Questão
The expressions (a+b) / c and a + b /c will always yield identical results.
Responda
  • true
  • false

Questão 40

Questão
Which of the following is not a variable data type?
Responda
  • integer
  • number
  • real
  • string
  • none of the above

Questão 41

Questão
Although the sequence structure is heavily used in programming, it cannot handle every type of task.
Responda
  • true
  • false

Questão 42

Questão
A case structure is a ________ alternative decision structure.
Responda
  • dual
  • multiple
  • single or dual
  • single
  • all of the above

Questão 43

Questão
What type of operators are the following? > = = = ! =
Responda
  • boolean
  • mathematical
  • relational
  • logical
  • none of the above

Questão 44

Questão
An If statement will produce unpredictable results if the programmer does not use proper indentations in psuedocode
Responda
  • true
  • false

Questão 45

Questão
Decision structures are also known as selection structures
Responda
  • true
  • false

Questão 46

Questão
It is possible to write a complete program using only a decision structure
Responda
  • true
  • false

Questão 47

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

Questão 48

Questão
The first line of the case structure starts with the word CASE followed by the test expression.
Responda
  • true
  • false

Questão 49

Questão
What two logical operators perform short circuit evaluation?
Responda
  • AND and OR
  • NOT and OR
  • AND and NOT
  • all of the above
  • none of the above

Questão 50

Questão
Which operator is used to determine that the operands are not exactly of the same value?
Responda
  • ==
  • =!
  • =
  • !
  • none of the above

Questão 51

Questão
In an expression with an OR operator, it does not matter which sub expression is true for the compound expression to be true.
Responda
  • true
  • false

Questão 52

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

Questão 53

Questão
Which of the following is a logical operator?
Responda
  • NOT
  • AND
  • OR
  • all of the above
  • none of the above

Questão 54

Questão
In many languages the case structure is called a _____ statement.
Responda
  • branch
  • selective
  • jump
  • switch

Questão 55

Questão
A nested decision structure can be used to test more than one condition.
Responda
  • true
  • false

Questão 56

Questão
A nested decision structure can be used to test more than one condition.
Responda
  • true
  • false

Questão 57

Questão
If the expression is false, the ________ operator will return true.
Responda
  • AND
  • OR
  • NOT
  • All of the above

Questão 58

Questão
The if-then-else statement should be used to write a single alternative decision structure
Responda
  • true
  • false

Questão 59

Questão
A file that data is written to is known as a(n)
Responda
  • output file
  • sequential access file
  • binary file

Questão 60

Questão
A file that data is read from is known as a(n)
Responda
  • input file
  • output file
  • sequential access file
  • binary file

Questão 61

Questão
Before a file can be used by a program it must be
Responda
  • formatted
  • encrypted
  • closed
  • opened

Questão 62

Questão
This type of file contains data that has not been converted to text.
Responda
  • text file
  • binary file
  • English file
  • human readable file

Questão 63

Questão
This is a character or set of characters that marks the end of a piece of data
Responda
  • median value
  • delimeter
  • boundary marker
  • EOF marker

Questão 64

Questão
This is a character or set of characters that mark the end of a file
Responda
  • delimeter
  • boundary marker
  • EOF marker

Questão 65

Questão
This marks the location of the next item that will be read from a file
Responda
  • input position
  • delimeter
  • pointer
  • read position

Questão 66

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

Questão 67

Questão
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.
Responda
  • true
  • false

Questão 68

Questão
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
Responda
  • true
  • false

Semelhante

Organização político administrativa - UNIÃO
eliana_belem
Guia de Redação do ENEM
Alessandra S.
Simulado de física
Alessandra S.
Princípios da Administração pública
Jay Benedicto
Fórmulas de Física para Vestibular
GoConqr suporte .
1º Lista de exercícios - Limites
Professor José
Flashcard - Gestão de Projeto
Ariadne Aquino0790
TICs na Matemática
Erika Lopes
Química - Introdução
Carine Campos
PROTAGONISMO DO ALUNO
Alessandra S.
REDAÇÃO
Kamila Vieira