Review Questions
1
.
Which HLL was developed first?
-
COBOL
-
C
-
Java
-
Fortran
2
.
What is the term used to describe the most accepted style and structure of code that can be used to ensure proper software development?
-
paradigm
-
best practice
-
model
-
abstraction
3
.
Which abbreviation refers to a library shipped with the language which contains objects and useful functions for the tasks for which the language is purposed?
-
UX
-
GUI
-
API
-
UI
4
.
Why are various HLLs related to each other and/or part of the same history?
5
.
What is event-driven programming?
6
.
What are the names of some different programming paradigms?
7
.
What is the difference between a compiled and an interpreted HLL?
8
.
What are the typical constituent parts of an HLL development environment or IDE?
9
.
What is weak typing? What is strong typing? What is the difference between them?
10
.
What are the equivalents of dynamic and static typing?
11
.
What is an example of a data type that is always primitive?
-
string
-
array
-
number
-
object
12
.
What best defines a function interface?
-
parameter
-
return
-
code block
-
signature
13
.
What type of operator has only a single operand?
-
logical
-
relational
-
unary
-
Boolean
14
.
What is “short circuiting” in the context of HLL expressions evaluation?
15
.
What is the difference between variable passing by value versus passing by references?
16
.
What is the difference between integer data types and floating-point data types?
17
.
What are composite types?
18
.
What is the difference between subroutines and modules?
19
.
What term represents a feature in OOP?
-
synchronization
-
polymorphism
-
mutual exclusion
-
Parallelism
20
.
What is the term for a process used to return memory that is no longer needed?
-
instantiation
-
polymorphism
-
starvation
-
garbage collection
21
.
What is a high-order function in a functional HLL?
22
.
What is typically the last statement of a recursive function?
23
.
Give the definition of a thread.
24
.
Explain encapsulation, inheritance, and polymorphism in object-oriented HLLs.
25
.
What is the difference between concurrency and parallelism?
26
.
Explain mechanisms that may be used to enable synchronization in concurrent programming.
27
.
What types of problems are best solved by scripting HLLs?
28
.
What is the name for software that scans and translates the source code one line at a time?
-
interpreter
-
compiler
-
assembler
-
linker
29
.
The middle end stage of compilation is responsible for what task?
-
lexical analysis
-
optimization
-
code generation
-
assembly
30
.
Software that provides a complete program execution environment is the reproduction of which computer architecture?
-
dynamic linker
-
parser
-
virtual machine
-
static linker
31
.
What is the difference between the front end, middle end, and back end compiler phases?
32
.
Explain the different phases of compilation.
33
.
What is the difference between static and dynamic linking?
34
.
Explain late binding.
35
.
Explain the different phases of code improvement.
36
.
Why is there such a focus on loops improvement as part of code optimization?