CSI-117 FINAL EXAM

Beschreibung

Quiz am CSI-117 FINAL EXAM, erstellt von Angela Knott am 10/12/2013.
Angela Knott
Quiz von Angela Knott, aktualisiert more than 1 year ago
Angela Knott
Erstellt von Angela Knott vor mehr als 10 Jahre
1770
0

Zusammenfassung der Ressource

Frage 1

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

Frage 2

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

Frage 3

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

Frage 4

Frage
To execute a module, we must ____ it
Antworten
  • compile
  • parse
  • define
  • debug
  • call

Frage 5

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

Frage 6

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

Frage 7

Frage
The top-down design process is sometimes called stepwise refinement.
Antworten
  • true
  • false

Frage 8

Frage
The module definition comprises the module header and the module _________.
Antworten
  • arguments
  • body
  • parameters
  • statements
  • call

Frage 9

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

Frage 10

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

Frage 11

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

Frage 12

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

Frage 13

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

Frage 14

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

Frage 15

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

Frage 16

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

Frage 17

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

Frage 18

Frage
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.
Antworten
  • true
  • false

Frage 19

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

Frage 20

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

Frage 21

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

Frage 22

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

Frage 23

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

Frage 24

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

Frage 25

Frage
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.
Antworten
  • true
  • false

Frage 26

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

Frage 27

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

Frage 28

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

Frage 29

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

Frage 30

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

Frage 31

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

Frage 32

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

Frage 33

Frage
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.
Antworten
  • true
  • false

Frage 34

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

Frage 35

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

Frage 36

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

Frage 37

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

Frage 38

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

Frage 39

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

Frage 40

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

Frage 41

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

Frage 42

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

Frage 43

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

Frage 44

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

Frage 45

Frage
Decision structures are also known as selection structures
Antworten
  • true
  • false

Frage 46

Frage
It is possible to write a complete program using only a decision structure
Antworten
  • true
  • false

Frage 47

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

Frage 48

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

Frage 49

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

Frage 50

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

Frage 51

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

Frage 52

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

Frage 53

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

Frage 54

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

Frage 55

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

Frage 56

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

Frage 57

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

Frage 58

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

Frage 59

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

Frage 60

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

Frage 61

Frage
Before a file can be used by a program it must be
Antworten
  • formatted
  • encrypted
  • closed
  • opened

Frage 62

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

Frage 63

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

Frage 64

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

Frage 65

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

Frage 66

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

Frage 67

Frage
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.
Antworten
  • true
  • false

Frage 68

Frage
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
Antworten
  • true
  • false
Zusammenfassung anzeigen Zusammenfassung ausblenden

ähnlicher Inhalt

Französisch für Anfänger
JohannesK
Altenpflege Prüfungsfragen
anna.grillborzer0656
Öff. Recht - Streitigkeiten Staatshaftungsrecht
myJurazone
Ich liebe dich in 25 Sprachen
deutschlernerblog.de
PuKw Step 6 - Fragen aus der VO/Literatur
frau planlos
Epochen und Literaturströmungen für das Abitur 2016
Laura Overhoff
GPSY ALPS
Simon Wirsching
Φαρμακολογία 1 Δ
Lampros Dimakopoulos
Vetie: Lebenmittel 2019
Johanna Tr
Vetie - Milchhygiene 2012
steff Müller
Vetie AVO 2020
M W