CSI-117 FINAL EXAM

Description

Quiz on CSI-117 FINAL EXAM, created by Angela Knott on 10/12/2013.
Angela Knott
Quiz by Angela Knott, updated more than 1 year ago
Angela Knott
Created by Angela Knott over 10 years ago
1770
0

Resource summary

Question 1

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

Question 2

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

Question 3

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

Question 4

Question
To execute a module, we must ____ it
Answer
  • compile
  • parse
  • define
  • debug
  • call

Question 5

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

Question 6

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

Question 7

Question
The top-down design process is sometimes called stepwise refinement.
Answer
  • true
  • false

Question 8

Question
The module definition comprises the module header and the module _________.
Answer
  • arguments
  • body
  • parameters
  • statements
  • call

Question 9

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

Question 10

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

Question 11

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

Question 12

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

Question 13

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

Question 14

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

Question 15

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

Question 16

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

Question 17

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

Question 18

Question
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.
Answer
  • true
  • false

Question 19

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

Question 20

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

Question 21

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

Question 22

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

Question 23

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

Question 24

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

Question 25

Question
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.
Answer
  • true
  • false

Question 26

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

Question 27

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

Question 28

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

Question 29

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

Question 30

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

Question 31

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

Question 32

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

Question 33

Question
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.
Answer
  • true
  • false

Question 34

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

Question 35

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

Question 36

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

Question 37

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

Question 38

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

Question 39

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

Question 40

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

Question 41

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

Question 42

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

Question 43

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

Question 44

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

Question 45

Question
Decision structures are also known as selection structures
Answer
  • true
  • false

Question 46

Question
It is possible to write a complete program using only a decision structure
Answer
  • true
  • false

Question 47

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

Question 48

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

Question 49

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

Question 50

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

Question 51

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

Question 52

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

Question 53

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

Question 54

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

Question 55

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

Question 56

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

Question 57

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

Question 58

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

Question 59

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

Question 60

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

Question 61

Question
Before a file can be used by a program it must be
Answer
  • formatted
  • encrypted
  • closed
  • opened

Question 62

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

Question 63

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

Question 64

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

Question 65

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

Question 66

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

Question 67

Question
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.
Answer
  • true
  • false

Question 68

Question
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
Answer
  • true
  • false
Show full summary Hide full summary

Similar

The Geography Of Earthquakes
eimearkelly3
How does Shakespeare present villainy in Macbeth?
maxine.canvin
GCSE CHEMISTRY UNIT 2 STRUCTURE AND BONDING
mustafizk
Sociology - Unit 1:Families and households
Jake Pickup
IGCSE Chemistry Revision
sachakoeppen
The Five Minute Lesson Plan Template
tom.roche_
Writing successful GCSE English essays
Sarah Holmes
I wish I..
Cristina Cabal
SalesForce ADM 201 Study Quiz
Brianne Wright
CST Module 6a
Jane Foltz
General Pathoanatomy Final MCQs (1-110)- 3rd Year- PMU
Med Student