Intro to Programming Logic and
Design Final Exam Questions and
Answers
Differences between low level and high level language? - ANSWER-High level is
easier to understand since low level language is all composed of 1's and 0's.
What is an interpreter? - ANSWER-A program that both translates and executes the
instructions in a high-level language program, each individual instruction at a time.
What is system software? - ANSWER-The programs that control and manage the
basic operations of a computer. Usually includes operating systems, utility systems
and software development tools.
What is operating systems? - ANSWER-the most fundamental set of programs on a
computer. The operating system controls the internal operations of the computer's
hardware, manages all of the devices connected to the computer, allows data to be
saved to and retrieved from storage devices, and allows other programs to run on
the computer.
What are utility programs? - ANSWER-They are designed to optimize the
performance of the computer
What are software development tools? - ANSWER-The programs that programmers
use to create, modify, and test software. Like compilers and interpreters.
What are application softwares? - ANSWER-They are designed to make users more
productive and/or assist them with personal tasks.
What is pseudocode? - ANSWER-An informal language that has no syntax rules,
and is not meant to be compiled or executed.
What is a flowchart? - ANSWER-A diagram that graphically depicts the steps that
take place in a program.
What is input, output and variable? - ANSWER-Output is data that is generated and
displayed by the program. Input is data that the program receives. When a program
receives data, it stores it in variables, which are named storage locations in memory.
What are the rules to declaring variables? - ANSWER-Variables must be one word
with no space. Better to use alphabet and numbers because punctuation cannot be
used in most languages. The first character of the name cannot be a number.
What is a string? - ANSWER-A sequence of characters that is used as data
, What is an algorithm? - ANSWER-A set of well-defined logical steps that must be
taken to perform a task.
What does "=" mean in an assignment statement? - ANSWER-It will assign a certain
value to a variable.
Ex: Hour = 6
What is the hierarchy of arithmetic operations: - ANSWER-perform any operations
that are within parentheses,
perform any operations that use exponent operator,
perform any multiplication or division or modulus operations as they appear from left
to right,
then perform any addition or subtractions as they appear from left to right
What is a variable declaration? - ANSWER-This is a statement that specifies the
variable's name and it's data type.
What is a variable's data type? - ANSWER-The type of data that the variable will
hold. Such as "integer", "real" and "string".
What is variable initialization? - ANSWER-The assignment of a value to a variable at
the time the variable is declared.
What is an uninitialized variable? - ANSWER-A variable that has been declared, but
has not been initialized or assigned a value.
What is a named constant? - ANSWER-A name that represents a value that cannot
be changed during the program's execution.
What are external documentations? - ANSWER-Aspects of the program that are for
the user. Can consist of docs such as reference guides describing the program's
features.
What are internal documentations? - ANSWER-This is solely for the programmer
and explain how parts of the program works. Usually appear as comments in the
program's code.
What is a module? - ANSWER-A group of statements that exist for the purpose of
performing a specific task within a program.
What are the benefits of using modules? - ANSWER-Simpler code; Code Reuse;
Better testing; Easier maintenance; Faster development; Easier facilitation of
teamwork
How do you define a module? - ANSWER-In most languages, it will have two parts:
header and body. Header indicates the starting point and the body is a list of
statements that belong to the module.
Design Final Exam Questions and
Answers
Differences between low level and high level language? - ANSWER-High level is
easier to understand since low level language is all composed of 1's and 0's.
What is an interpreter? - ANSWER-A program that both translates and executes the
instructions in a high-level language program, each individual instruction at a time.
What is system software? - ANSWER-The programs that control and manage the
basic operations of a computer. Usually includes operating systems, utility systems
and software development tools.
What is operating systems? - ANSWER-the most fundamental set of programs on a
computer. The operating system controls the internal operations of the computer's
hardware, manages all of the devices connected to the computer, allows data to be
saved to and retrieved from storage devices, and allows other programs to run on
the computer.
What are utility programs? - ANSWER-They are designed to optimize the
performance of the computer
What are software development tools? - ANSWER-The programs that programmers
use to create, modify, and test software. Like compilers and interpreters.
What are application softwares? - ANSWER-They are designed to make users more
productive and/or assist them with personal tasks.
What is pseudocode? - ANSWER-An informal language that has no syntax rules,
and is not meant to be compiled or executed.
What is a flowchart? - ANSWER-A diagram that graphically depicts the steps that
take place in a program.
What is input, output and variable? - ANSWER-Output is data that is generated and
displayed by the program. Input is data that the program receives. When a program
receives data, it stores it in variables, which are named storage locations in memory.
What are the rules to declaring variables? - ANSWER-Variables must be one word
with no space. Better to use alphabet and numbers because punctuation cannot be
used in most languages. The first character of the name cannot be a number.
What is a string? - ANSWER-A sequence of characters that is used as data
, What is an algorithm? - ANSWER-A set of well-defined logical steps that must be
taken to perform a task.
What does "=" mean in an assignment statement? - ANSWER-It will assign a certain
value to a variable.
Ex: Hour = 6
What is the hierarchy of arithmetic operations: - ANSWER-perform any operations
that are within parentheses,
perform any operations that use exponent operator,
perform any multiplication or division or modulus operations as they appear from left
to right,
then perform any addition or subtractions as they appear from left to right
What is a variable declaration? - ANSWER-This is a statement that specifies the
variable's name and it's data type.
What is a variable's data type? - ANSWER-The type of data that the variable will
hold. Such as "integer", "real" and "string".
What is variable initialization? - ANSWER-The assignment of a value to a variable at
the time the variable is declared.
What is an uninitialized variable? - ANSWER-A variable that has been declared, but
has not been initialized or assigned a value.
What is a named constant? - ANSWER-A name that represents a value that cannot
be changed during the program's execution.
What are external documentations? - ANSWER-Aspects of the program that are for
the user. Can consist of docs such as reference guides describing the program's
features.
What are internal documentations? - ANSWER-This is solely for the programmer
and explain how parts of the program works. Usually appear as comments in the
program's code.
What is a module? - ANSWER-A group of statements that exist for the purpose of
performing a specific task within a program.
What are the benefits of using modules? - ANSWER-Simpler code; Code Reuse;
Better testing; Easier maintenance; Faster development; Easier facilitation of
teamwork
How do you define a module? - ANSWER-In most languages, it will have two parts:
header and body. Header indicates the starting point and the body is a list of
statements that belong to the module.