CSCI 1730 TEST 1 QUESTIONS AND ANSWERS
Machine language - Answer -Binary code made up of 0s and 1s; usually this is data
converted from a high-level language by a compiler. Often used as a synonym for low-
level programming language.
Assembly Language - Answer -Programming language that has the same structure and
set of commands as machine languages but allows programmers to use symbolic
representations of numeric machine code.
Assemblers - Answer -Tools that convert assembly code into the necessary machine-
compatible binary language for processing activities to take place.
high-level language - Answer -a programming language that is human readable (App
Inventor) and provides the programmer with easy to understand abstractions
Compilers - Answer -programs that automatically translate high-level language
programs into executable programs
interpreter - Answer -Converts a program written in a higher level language into a lower
level language and executes it, beginning execution before converting the entire
program.
scripting language - Answer -A computer programming language that is typically
interpreted into a language the computer can understand without the need of a
compiler.
Performance Tip 1.1 - Answer -Interpreters have an an advantage over compilers in
Internet scripting. An interpreted program can begin executing as as soon as it's
download to the client's machine, without needing to be compiled before it can execute.
On the downside, interpreted scripts generally run slower and consumer more memory
than compiled code
C/C++ - Answer -C++ is a general-purpose programming language. It has imperative,
object-oriented and generic programming features, while also providing facilities for low-
level memory manipulation.
C++ Standard Library - Answer -programs in C++ consist of pieces called classes and
functions
software reuse - Answer -using existing software to make new programs
Function - Answer -Houses the program statements that actually perform its task.
Hides these statements from the user
, Class - Answer -Houses a set of functions that perform the class's tasks
member function - Answer -A function that is defined by a class and operates on
objects of that class.
Instantiation - Answer -Process of creating an object, an instance of a class; creates
space in memory for the new object and binds a name for the object with the object's
data in memory.
Member Function Call - Answer -Messages implemented that tells a member function
of the object to perform its task
Encapsulation - Answer -Keeping details (like data and procedures) together in one
part of a program so that programmers working on other parts of the program don't
need to know about them. AKA information hiding
Typical C++ Development Environment - Answer -Phase 1: Editing
Phase 2: Preprocessing
Phase 3: Compiling
Phase 4: Linking
Phase 5: Loading
Phase 6: Executing
Editing - Answer -Consists of editing a file with an editor program, normally known
simply as an editor
Preprocessing - Answer -executes automatically before the compiler's translation
phase begins
preprocessing directive - Answer -a message to the C++ preprocessor; indicate that
certain manipulations are to be performed on the program before compilation
Compiling - Answer -The process where source code is converted to code the
computer understands.
Linking - Answer -A linker connects the object code with the code for the missing
functions to produce an executable program
Loading - Answer -Placing the program in memory
execution - Answer -Running
garbage collection - Answer -Releases memory that was used for a variable's value
once the variable is no longer to be used by a program.
Machine language - Answer -Binary code made up of 0s and 1s; usually this is data
converted from a high-level language by a compiler. Often used as a synonym for low-
level programming language.
Assembly Language - Answer -Programming language that has the same structure and
set of commands as machine languages but allows programmers to use symbolic
representations of numeric machine code.
Assemblers - Answer -Tools that convert assembly code into the necessary machine-
compatible binary language for processing activities to take place.
high-level language - Answer -a programming language that is human readable (App
Inventor) and provides the programmer with easy to understand abstractions
Compilers - Answer -programs that automatically translate high-level language
programs into executable programs
interpreter - Answer -Converts a program written in a higher level language into a lower
level language and executes it, beginning execution before converting the entire
program.
scripting language - Answer -A computer programming language that is typically
interpreted into a language the computer can understand without the need of a
compiler.
Performance Tip 1.1 - Answer -Interpreters have an an advantage over compilers in
Internet scripting. An interpreted program can begin executing as as soon as it's
download to the client's machine, without needing to be compiled before it can execute.
On the downside, interpreted scripts generally run slower and consumer more memory
than compiled code
C/C++ - Answer -C++ is a general-purpose programming language. It has imperative,
object-oriented and generic programming features, while also providing facilities for low-
level memory manipulation.
C++ Standard Library - Answer -programs in C++ consist of pieces called classes and
functions
software reuse - Answer -using existing software to make new programs
Function - Answer -Houses the program statements that actually perform its task.
Hides these statements from the user
, Class - Answer -Houses a set of functions that perform the class's tasks
member function - Answer -A function that is defined by a class and operates on
objects of that class.
Instantiation - Answer -Process of creating an object, an instance of a class; creates
space in memory for the new object and binds a name for the object with the object's
data in memory.
Member Function Call - Answer -Messages implemented that tells a member function
of the object to perform its task
Encapsulation - Answer -Keeping details (like data and procedures) together in one
part of a program so that programmers working on other parts of the program don't
need to know about them. AKA information hiding
Typical C++ Development Environment - Answer -Phase 1: Editing
Phase 2: Preprocessing
Phase 3: Compiling
Phase 4: Linking
Phase 5: Loading
Phase 6: Executing
Editing - Answer -Consists of editing a file with an editor program, normally known
simply as an editor
Preprocessing - Answer -executes automatically before the compiler's translation
phase begins
preprocessing directive - Answer -a message to the C++ preprocessor; indicate that
certain manipulations are to be performed on the program before compilation
Compiling - Answer -The process where source code is converted to code the
computer understands.
Linking - Answer -A linker connects the object code with the code for the missing
functions to produce an executable program
Loading - Answer -Placing the program in memory
execution - Answer -Running
garbage collection - Answer -Releases memory that was used for a variable's value
once the variable is no longer to be used by a program.