Algorithms & Programming Fundamentals
When translating a sequence of characters representing DNA bases into a list representation, which data type would be suited for individual base storage?
Floating-point number type
Boolean type
Integer type
Character type
What is a list in computer science?
The main function where a program starts execution.
A collection of elements that can be of the same or different data types.
A single variable holding one piece of data.
A set of commands executed by a program.
If you have a list with strings ['a', 'b', 'c'], what would you use to access the second element?
[2]
[0]
[1]
[b]
What type of data structure is used to store a sequence of elements that can be accessed by an index?
Graph
Set
List
Tree
Which is the best indicator that a list manipulation function performs correctly under all circumstances when handling an empty list?
The function adds a default element to avoid processing an empty list.
The function returns an indication of no change or appropriate exception without causing program failure.
The function proceeds as usual and processes next instructions without error messages.
The program's runtime slightly increases when encountering an empty list during execution.
How would you remove all elements from a given list named 'data'?
data.append()
data.clear()
data.remove()
data.pop()
What unintended consequence should be addressed when developing an algorithmic job-matching service leveraging extensive databases of employer requirements and applicant profiles?
Job market homogenization where companies overlook unique candidate qualities not considered by standardized algorithms.
Elimination of workplace discrimination because hiring decisions are made purely based on algorithmic assessments.
Increased hiring efficiency as companies quickly match with ideal candidates reducing unemployment rates.
Enhanced career satisfaction due to precise matching between individual skills/interests and job descriptions.

How are we doing?
Give us your feedback and let us know how we can improve
What happens if you try to access an index in a list that doesn't exist?
The last item in the lists returned as default value.
Nothing happens, the invalid access is simply ignored.
An error occurs because the index is out of range for the list.
The list automatically extends to include more indices.
If you want to find out how many items are in a list, which property or method would you typically use?
Index
Capacity
FirstElement
Length/Size
In a list consisting of the integers [3, 5, 7, 9], what is the value at index 2?
9
7
5
The list does not contain a value at index 2.