PREP EXAM 2022/2023 DETAILED QUESTIONS AND ANSWERS
What is an advantage of using programming libraries? (correct answers)The save development time.
What is a programming language library? (correct answers)A set of related modules; possibly
precompiled.
Which aspect of a programming language would not likely affect the execution time (speed) of a
program? (correct answers)The compiler.
Which language is built on object-oriented design principles? (correct answers)Java
In which programming language is a constructor used? (correct answers)Java
When should a use case be written? (correct answers)After gathering requirements.
What does UML provide? (correct answers)A way to visually model computing applications.
What is the correct rule regarding the number of elements a Python list may contain? (correct
answers)It must be a sequence of zero or more elements.
What does a use case diagram do? (correct answers)Provides an overview of several use cases.
What are two purposes of a use case diagram? (correct answers)To document how to use system.; To
visualize the fuctional requirements of a system.
, What is necessary for an entity to be considered an actor in a use case? (correct answers)The entity
needs to exist outside the described system.
How does a hash-based index increase lookup speed? (correct answers)By mapping an index to a speed
table.
Which storage method ensures the fastest access to input data? (correct answers)Dictionaries or Hash
Table
What is the main factor that determines the speed of an algorithm? (correct answers)The size of input.
Which execution time determines the overall efficiency of an algorithm? (correct answers)Worst-case
What is being measured when a programmer measures how algorithm speed varies with the amount of
input? (correct answers)Memory usage
Which two factors affect cost of an algorithm? (correct answers)Time & Memory
What is one factor that affects cost of an algorithm? (correct answers)Time
What is one factor that affects cost of an algorithm? (correct answers)Memory
When analyzing algorithms (correct answers)which case is the most important to consider?,Worst-case
What is an algorithm? (correct answers)A finite set of steps for performing a task or solving a problem.