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 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.
What type of data structure is used to store a sequence of elements that can be accessed by an index?
Graph
Set
List
Tree
How would you remove all elements from a given list named 'data'?
data.append()
data.clear()
data.remove()
data.pop()
What is considered best practice when creating passwords?
Repeating the same password across all accounts for convenience
Utilizing common words or easily guessable passwords like "123456"
Writing down passwords and keeping them next to devices for easy remembrance
Using long, complex passwords that include mixed characters

How are we doing?
Give us your feedback and let us know how we can improve
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.
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.
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