Quiz
CSI-117 FINAL EXAM
Erstelle ein kostenloses Konto, um dieses Quiz zu beenden
Speichere deinen Fortschritt und sieh dir dein Endergebnis an.
oder mit deiner E-Mail registrieren
Schon ein Konto? Anmelden
Fragen in diesem Quiz (68)
1Which type of variable is visible to every module and the entire program?
- Alocal
- Bglobal
- Creference
- Dpass by value
- Epass by reference
2The scope of the parameter variables is the entire program and it is visible to any statement in the program
- Atrue
- Bfalse
3A module can have two variables of the same name because they are within the same scope
- Atrue
- Bfalse
4To execute a module, we must ____ it
- Acompile
- Bparse
- Cdefine
- Ddebug
- Ecall
5When an argument is passed by value, the communication channel works only in one direction.
- Atrue
- Bfalse
6_________ variables are useful for establishing two-way communication between modules.
- Aconstant
- BI/O
- Creference
- Dvalue
- Enone of the above
7The top-down design process is sometimes called stepwise refinement.
- Atrue
- Bfalse
8The module definition comprises the module header and the module _________.
- Aarguments
- Bbody
- Cparameters
- Dstatements
- Ecall
9Which of the following is not a benefit of using modules?
- Asimpler code
- Bcode reuse
- Cbetter testing
- Dfaster development
- Enone of the above
10The following is an example of a module _______.
Call showNetPay( )- Aheader
- Bbody
- Cdisplay
- Ddefinition
- Eexecution
11When an argument is passed by ______., it is not affected by a change of the content of the parameter variable.
- Areference
- Bconstant
- Cvariable
- Dvalue
- Enone of the above
12The arguments in a module call and the parameters listed in the module header must be of compatible data types.
- Atrue
- Bfalse
13Passing an argument by ____ means that only a copy of the argument's value is passed into the parameter variable.
- Aconstant
- Bvalue
- Creference
- Dvariable
- Enone of the above
14The scope of the variable is the segment of the program in which the variable can be accessed.
- Atrue
- Bfalse
15In most languages a module definition has three parts: a header, body, and a footer.
- Atrue
- Bfalse
16Which type of variable is not recommended to be used in programs because they make programs hard to understand and debug?
- Areference
- Bglobal
- Cpass by reference
- Dpass by value
- Elocal
17Modules can be written for commonly needed tasks and those modules can be incorporated into each program that needs them.
- Atrue
- Bfalse
18A 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.
- Atrue
- Bfalse
19A bit that is turned off is represented by the value -1.
- Atrue
- Bfalse
20RAM is a volatile memory used for temporary storage while a program is running.
- Atrue
- Bfalse
21The process known as the _____ cycle is used by the CPU to execute instructions in a program.
- Adecode-execute-fetch
- Bexecute-decode-fetch
- Cdecode-fetch-execute
- Dfetch-decode-execute
- Efetch-execute-decode
22What functions(s) does an interpreter perform with the instructions in a high level programming language?
- Atranslates
- Bcompiles
- Ccompiles and translates
- Dtranslates and execute
- Eexecute
23The following is an example of an instruction written in which computer language?
10110000- AJAVA
- BC#
- CC++
- DMachine Language
- EAssembly Language
24Programs that use an interpreter generally execute faster than compiled programs because they are already entirely translated into machine language when executed.
- Atrue
- Bfalse
25The 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.
- Atrue
- Bfalse
26Most programs written in high-level language need to be translated into machine language.
- Atrue
- Bfalse
27Programs that make a computer useful for everyday tasks are known as _______.
- Autility programs
- Bsystem software
- Capplication software
- Doperation system
- Enone of the above
28The term used for a set of rules that must be strictly followed when writing a program is ________.
- Asemantics
- Bpunctuations
- Csyntax
29The CPU understands instructions in machine language, which are written in binary.
- Atrue
- Bfalse
30Which computer language uses short words known as mnemonics for writing programs?
- AJava
- BVisual Basic
- CPascal
- DAssembly
- EC#
31Assembly language is referred to as a low-level language because it is close to the C++ language.
- Atrue
- Bfalse
32It has been proven by a group of mathematicians that all programs can be written using only three structures.
- Atrue
- Bfalse
33A variable is a storage location in memory that is represented by a name and can hold different values during the execution of the program.
- Atrue
- Bfalse
34What term is used for a string that appears in the actual code of the program?
- Avirtual string
- Bhard copy
- Cstrongly typed
- Dstring literal
- Enone of the above
35Most programming languages do not automatically print spaces between multiple items that are displayed on the screen.
- Atrue
- Bfalse
36A ______ structure is a set of statements that execute in the order that they appear.
- Asequence
- Bcontrol
- Crepetition
- Ddecision
- Enone of the above
37A sequence of characters that is used as data is called a string in programming.
- Atrue
- Bfalse
38Programmers start writing code as the first step when they begin a new project.
- Atrue
- Bfalse
39The expressions (a+b) / c and a + b /c will always yield identical results.
- Atrue
- Bfalse
40Which of the following is not a variable data type?
- Ainteger
- Bnumber
- Creal
- Dstring
- Enone of the above
41Although the sequence structure is heavily used in programming, it cannot handle every type of task.
- Atrue
- Bfalse
42A case structure is a ________ alternative decision structure.
- Adual
- Bmultiple
- Csingle or dual
- Dsingle
- Eall of the above
43What type of operators are the following?
> = = = ! =- Aboolean
- Bmathematical
- Crelational
- Dlogical
- Enone of the above
44An If statement will produce unpredictable results if the programmer does not use proper indentations in psuedocode
- Atrue
- Bfalse
45Decision structures are also known as selection structures
- Atrue
- Bfalse
46It is possible to write a complete program using only a decision structure
- Atrue
- Bfalse
47Which operator is best to determine whether x contains a value in the range of 10 through 57?
- AAND
- B==
- CNOT
- DOR
- Enone of the above
48The first line of the case structure starts with the word CASE followed by the test expression.
- Atrue
- Bfalse
49What two logical operators perform short circuit evaluation?
- AAND and OR
- BNOT and OR
- CAND and NOT
- Dall of the above
- Enone of the above
50Which operator is used to determine that the operands are not exactly of the same value?
- A==
- B=!
- C=
- D!
- Enone of the above
51In an expression with an OR operator, it does not matter which sub expression is true for the compound expression to be true.
- Atrue
- Bfalse
52What type of operator can be used to determine whether a specific relationship exists between two values?
- Amathematical
- Blogical
- Crelational
- Dboolean
- Enone of the above
53Which of the following is a logical operator?
- ANOT
- BAND
- COR
- Dall of the above
- Enone of the above
54In many languages the case structure is called a _____ statement.
- Abranch
- Bselective
- Cjump
- Dswitch
55A nested decision structure can be used to test more than one condition.
- Atrue
- Bfalse
56A nested decision structure can be used to test more than one condition.
- Atrue
- Bfalse
57If the expression is false, the ________ operator will return true.
- AAND
- BOR
- CNOT
- DAll of the above
58The if-then-else statement should be used to write a single alternative decision structure
- Atrue
- Bfalse
59A file that data is written to is known as a(n)
- Aoutput file
- Bsequential access file
- Cbinary file
60A file that data is read from is known as a(n)
- Ainput file
- Boutput file
- Csequential access file
- Dbinary file
61Before a file can be used by a program it must be
- Aformatted
- Bencrypted
- Cclosed
- Dopened
62This type of file contains data that has not been converted to text.
- Atext file
- Bbinary file
- CEnglish file
- Dhuman readable file
63This is a character or set of characters that marks the end of a piece of data
- Amedian value
- Bdelimeter
- Cboundary marker
- DEOF marker
64This is a character or set of characters that mark the end of a file
- Adelimeter
- Bboundary marker
- CEOF marker
65This marks the location of the next item that will be read from a file
- Ainput position
- Bdelimeter
- Cpointer
- Dread position
66When a file is opened in this mode, data will be written at the end of the file's existing contents
- Aappend mode
- Bbackup mode
- Cread-only mode
67When 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.
- Atrue
- Bfalse
68In 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
- Atrue
- Bfalse
Informationen
- Beschreibung
- Quiz am CSI-117 FINAL EXAM, erstellt von Angela Knott am 10/12/2013.
- Autor
- Angela Knott
- Sprache
- English
- Aufrufe
- 1.836
- Bewertung
- Noch keine Bewertungen Bewerte dieses Quiz