Review Questions

Review Questions

1 .
Which HLL was developed first?
  1. COBOL
  2. C
  3. Java
  4. 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?
  1. paradigm
  2. best practice
  3. model
  4. 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?
  1. UX
  2. GUI
  3. API
  4. 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?
  1. string
  2. array
  3. number
  4. object
12 .
What best defines a function interface?
  1. parameter
  2. return
  3. code block
  4. signature
13 .
What type of operator has only a single operand?
  1. logical
  2. relational
  3. unary
  4. 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?
  1. synchronization
  2. polymorphism
  3. mutual exclusion
  4. parallelism
20 .
What is the term for a process used to return memory that is no longer needed?
  1. instantiation
  2. polymorphism
  3. starvation
  4. 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?
  1. interpreter
  2. compiler
  3. assembler
  4. linker
29 .
The middle end stage of compilation is responsible for what task?
  1. lexical analysis
  2. optimization
  3. code generation
  4. assembly
30 .
Software that provides a complete program execution environment is the reproduction of which computer architecture?
  1. dynamic linker
  2. parser
  3. virtual machine
  4. 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?