Title: Final Exam
Course: COP 1510 Programming Concepts > Section: Module 15 - GUI Applications

Q: Which of the following is not an example of operating system software?
- Microsoft Word
- Windows Vista
- Linux
- Mac OS X
- None of these
A: Microsoft Word

Q: What function(s) does an interpreter perform with the instructions in a high-level programming language?
- Translates
- Compiles
- Compiles and Translates
- Executes
- Translates and Execute
A: Translates and Execute

Q: True/False: The term "software" refers to all the physical devices, or components, that a computer is made of.
- True
- False
A: False

Q: Programs that make a computer useful for everyday tasks are known as ________.
- System Software
- Operation System
- Application Software
- Utility Programs
- None of these
A: Application Software

Q: True/False: A computer is not a single device, but a system of devices that work together to manipulate data according to the instructions provided.
- True
- False
A: True

Q: True/False: Computers are designed to do just one job.
- True
- False
A: False

Q: True/False: 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.
- True
- False
A: True

Q: True/False: RAM is a volatile memory used for temporary storage while a program is running.
- True
- False
A: True

Q: What is the encoding technique called that is used to store negative numbers in the computer's memory?
- Unicode
- ASCII
- Floating-point notation
- Twos complement
- None of these
A: Twos complement

Q: The ________ coding scheme contains a set of 128 numeric codes that are used to represent characters in a computer's memory.
- Unicode
- ASCII
- ENIAC
- Binary numbering
- Twos compliment
A: ASCII

Q: Which of the following is not a microprocessor manufacturing company?
- Intel
- Dell
- AMD
- Motorola
- None of these
A: Dell

- C++
- Assembly language
- JAVA
- Machine language
- C #
A: Machine language

Q: Which computer language uses short words known as mnemonics for writing programs?
- Assembly
- Java
- C#
- Pascal
- Visual Basic
A: Assembly

Q: The process known as the ________ cycle is used by the CPU to execute instructions in a program.
- Decode- fetch-execute
- Decode-execute-fetch
- Fetch-decode-execute
- Fetch-execute-decode
- Execute-fetch-decode
A: Fetch-decode-execute

Q: The term used for a set of rules that must be strictly followed when writing a program is ________.
- Semantics
- Syntax
- Grammar
- Key words
- Punctuations
A: Syntax

Q: ________ was the first high-level programming language designed that could perform complex mathematical calculations.
- COBOL
- C++
- Java
- FORTRAN
- Ada
A: FORTRAN

Q: What term can be used to describe anything that uses binary numbers?
- digital
- computer
- processor
- machine language
- mnemonic
A: digital

Q: Data is not recorded magnetically on a(n) ________, but is encoded as a series of pits on the disk surface.
- disk drive
- floppy disk
- USB drive
- optical disk
- None of these
A: optical disk

Q: Which of the following devices is a computer?
- iPods®
- Car navigation systems
- BlackBerries®
- Cell phones
- All of these
A: All of these

Q: A computer system consists of all of the following, except ________.
- Central processing system
- Main memory
- Operating System
- Input and Output devices
- Secondary storage devices
A: Operating System

Q: The disk drive is a secondary storage device that stores data by ________ encoding it onto circular disks.
- electrically
- magnetically
- digitally
- optically
- None of these
A: magnetically

Q: The smallest storage location in a computer's memory is known as a ________.
- byte
- word
- letter
- switch
- bit
A: bit

Q: What is the largest value that can be stored in one byte?
- 255
- 128
- 8
- 65535
- 16
A: 255

Q: True/False: A sequence of characters that is used as data is called a string in programming.
- True
- False
A: True

Q: True/False: Ovals are used as terminal symbols marking the starting and end of the pseudocode.
- True
- False
A: False

Q: True/False: Programmers use pseudocode to create "mock-ups" of programs because they do not have to worry about syntax rules.
- True
- False
A: True

Q: True/False: It has been proven by a group of mathematicians that all programs can be written using only three structures.
- True
- False
A: True

Q: True/False: 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.
- True
- False
A: True

Q: True/False: If you mistakenly write pseudocode into an editor for an actual programming language, such as Python or Visual Basic, errors will result.
- True
- False
A: True

Q: True/False: Most programming languages do not automatically print spaces between multiple items that are displayed on the screen.
- True
- False
A: True

Q: Which error produces incorrect results but does not prevent the program from running?
- syntax
- logic
- grammatical
- human
- None of these
A: logic

Q: The program development cycle is made up of ________ steps that are repeated until no errors can be found in the program.
- Five
- Four
- Three
- Six
- None of these
A: Five

Q: What is the informal language that programmers use to create models of programs that have no syntax rules and are not meant to be compiled or executed?
- Program
- Flowchart
- Algorithm
- Code
- Pseudocode
A: Pseudocode

Q: The ________ is a diagram that graphically depicts the steps that take place in a program.
- Program
- Flowchart
- Algorithm
- Code
- Pseudocode
A: Flowchart

Q: A ________ structure is a set of statements that execute in the order they appear.
- Control
- Repetition
- Decision
- Sequence
- None of these
A: Sequence

Q: Which symbol is used for an assignment statement in a flowchart?
- Processing
- I/O
- Terminal
- Parallelogram
- None of these
A: Processing

Q: Which mathematical operator is used to raise five to the second power?
- MOD
- *
- /
- ~
A: (a choice with no text)

Q: The value of the expression 12 - 4 * 3 / 2 + 9 is ________.
- 21
- 15
- -6
- 2.18
- None of these
A: 15

Q: Which of the following is not a variable data type?
- Number
- Integer
- Real
- String
- None of these
A: Number

Q: ________ documentation is a reference guide that describes the features of the program, designed for the user.
- Internal
- External
- Program
- Block
- Line
A: External

Q: A(n) ________ is a name that represents a value that cannot be changed during the program's execution.
- Uninitialized variable
- Named variable
- Named constant
- Input variable
- None of these
A: Named constant

Q: What is another term used for "desk checking"?
- Hand tracing
- Debug
- Execute
- Run
- Checking
A: Hand tracing

Q: The process where the programmer steps through each of the program's statements one by one is called ________.
- Hand tracing
- Debug
- Execute
- Run
- Checking
A: Hand tracing

Q: What symbol is used to mark the beginning and end of a string?
- Slash
- Asterisk
- Quotation
- Comma
- Question
A: Quotation

Q: The following is an example of what type of statement:
Set rate = 5.75
- Declaration
- Assignment
- Input
- Output
- None of these
A: Assignment

Q: What is the first step of the program development cycle?
- Write the code
- Correct syntax errors
- Debug the code
- Test the executable code
- Design the program
A: Design the program

Q: Which of the following is not an actual programming language?
- C++
- Visual Basic
- Java
- Pseudocode
- Python
A: Pseudocode

Q: True/False: Programs that use an interpreter generally execute faster than compiled programs because they are already entirely translated into machine language when executed.
- True
- False
A: False

Q: What term is used for a string that appears in the actual code of a program?
- String literal
- Virtual string
- Hard copy
- Strongly typed
- None of these
A: String literal

Q: True/False: Each instruction written in a high-level programming language is called a statement.
- True
- False
A: True

Q: True/False: Most programs written in a high-level language need to be translated into machine language.
- True
- False
A: False

Q: True/False: The instruction set for a microprocessor is unique and is typically understood only by the microprocessors of the same brand.
- True
- False
A: True

Q: True/False: Assembly language is referred to as a low-level language because it is close to the C++ language.
- True
- False
A: False

Q: True/False: A bit that is turned off is represented by the value -1.
- True
- False
A: False

Q: True/False: The CPU understands instructions in machine language, which are written in binary.
- True
- False
A: True

Q: True/False: The scope of the parameter variables is the entire program and it is visible to any statement in the program.
- True
- False
A: False

Q: True/False: When an argument is passed by value, the communication channel works only in one direction.
- True
- False
A: True

Q: True/False: A module can have two variables of the same name because they are within the same scope.
- True
- False
A: False

Q: True/False: The arguments in a module call and the parameters listed in the module header must be of compatible data types.
- True
- False
A: True

Q: True/False: An attempt to pass a non-variable argument into a reference variable parameter will cause an error.
- True
- False
A: True

Q: True/False: Modules can be written for commonly needed tasks, and those modules can be incorporated into each program that needs them.
- True
- False
A: True

Q: True/False: The hierarchy chart does not reveal any details of the steps taken inside the module.
- True
- False
A: True

Q: True/False: A pass by reference argument establishes a two-way communication with the module, but the value of the argument cannot be modified via the reference variable.
- True
- False
A: False

Q: The module definition comprises the module header and the module ________.
- Body
- Statements
- Call
- Arguments
- Parameters
A: Body

- Definition
- Header
- Body
- Display
- Execution
A: Execution

Q: True/False: In most languages a module definition has three parts: a header, body, and footer.
- True
- False
A: False

Q: Which of the following is not a benefit of using modules?
- Simpler Code
- Faster Development
- Code Reuse
- Better Testing
- None of these
A: None of these

Q: What tool would a programmer use to visualize the relationship between modules?
- Flowchart
- Hierarchy charts
- Pseudo charts
- Modular charts
- None of these
A: Hierarchy charts

Q: What is the term used for the variable that receives an argument that passed into a module?
- Global
- Local
- Parameter
- Constant
- None of these
A: Parameter

Q: What is the term used for the memory address of the location of the statement immediately after the module call?
- Return address
- Return point
- Continue point
- Resume point
- Resume address
A: Return point

Q: In a flowchart, the module call is represented by a ________ symbol with vertical bars at each side.
- Parallelogram
- Square
- Rhombus
- Rectangle
- None of these
A: Rectangle

Q: Which type of variable is not recommended to be used in programs because they make programs hard to understand and debug?
- Local
- Pass by value
- Reference
- Global
- Pass by reference
A: Global

Q: A pass by ________ argument means that the argument is passed into a parameter that will reference the content of the argument in the module.
- Value
- Constant
- Reference
- Variable
- None of these
A: Reference

Q: Which type of variable is visible to every module and the entire program?
- Local
- Pass by value
- Reference
- Global
- Pass by reference
A: Global

Q: Passing an argument by ________ means that only a copy of the argument's value is passed into the parameter variable.
- Value
- Constant
- Reference
- Variable
- None of these
A: Value

Q: What phrase is placed in the starting terminal symbol of a module in a flowchart?
- Start
- Begin
- Name of the module
- Continue
- Resume
A: Name of the module

Q: ________ variables are useful for establishing two-way communication between modules.
- Value
- Constant
- Reference
- I/O
- None of these
A: Reference

Q: Function is another name for ________.
- Module
- Variable
- Reference
- Sub class
- None of these
A: Module

Q: When an argument is passed by ________, it is not affected by a change of the content of the parameter variable.
- Value
- Constant
- Reference
- Variable
- None of these
A: Value

Q: True/False: Programmers start writing code as the first step when they begin a new project.
- True
- False
A: False

Q: To execute a module, we must ________ it.
- Parse
- Debug
- Call
- Compile
- Define
A: Call

Q: To create a module you write its ________.
- Definition
- Body
- Pseudocode
- Flowchart
- Name
A: Definition

Q: Modules are commonly called what?
- Procedures
- Subroutines
- Subprograms
- Methods
- All of these
A: All of these

Q: True/False: A named constant can be assigned a value using a Set statement.
- True
- False
A: False

Q: True/False: An uninitialized variable is a variable that has been declared and automatically initialized to zero.
- True
- False
A: False

Q: True/False: The expressions (a + b) / c and a + b / c will always yield identical results.
- True
- False
A: False

Q: True/False: The structure of the camelCase naming convention is to write the first word of the variable name in lowercase letters and then to capitalize the first character of the second and subsequent words.
- True
- False
A: True

Q: The procedures that the object performs are known as ________.
- Records
- Methods
- Addresses
- Fields
- None of these
A: Methods

Q: The variables, arrays, or other data structures that are stored in the object are known as the object's ________.
- Records
- Methods
- Addresses
- Fields
- None of these
A: Fields

Q: What software entity contains both data and procedures?
- Objects
- Instances
- Events
- Memory location(s)
- None of these
A: Objects

Q: What type of programming encapsulates data and functions together in an object?
- Object-oriented
- Interactive
- Procedural
- Menu-driven
- None of these
A: Object-oriented

Q: The word Private that appears before a field declaration, in a class definition, is known as a(n) ________.
- access specifier
- specifier
- Class specifier
- Inside specifier
- None of these
A: access specifier

Q: What is the term used for the fields and methods that belong to a class?
- body
- definition
- return
- members
- None of these
A: members

Q: The class ________ starts with the word Class followed by the name of the class.
- body
- definition
- return
- members
- None of these
A: definition

Q: The programmer determines the fields and methods of an object and creates the ________ code.
- Print
- Class
- Module
- Procedure
- None of these
A: Class

Q: True/False: In an inheritance relationship, the superclass inherits members from the subclass, not the other way around.
- True
- False
A: False

Q: True/False: When a class variable is assigned the address of an object, it is said that the variable references the object.
- True
- False
A: True

Q: True/False: The private object fields can be directly manipulated by outside entities.
- True
- False
A: False

Q: True/False: When the program is running, it can use the class to create, in memory, one object of a specific type as needed.
- True
- False
A: False

Q: What type of programming is centered on the procedures or actions that take place in a program?
- Object-oriented
- Interactive
- Procedural
- Menu-driven
- None of these
A: Procedural