6.2
- Describe the significance of the global variable index. How was it used in this app? Based on your answer, why might indexing be important in programming? The global variable index was used to set question one to the current question when the app is launched, it was generally used in the setting of the questions. Indexing is an important as it allows a programmer to easily retrieve specific data from a list.
- Using what you have learned about lists and indexing, how might you enhance this app so that it is a multiple choice quiz? You could probably have an index of answers for each question, possibly connected to four buttons that switches the current answers with the current question, this would happen when the "next" button is clicked.
6.4
- Choose one of the data sets listed above in the Activity section and give a brief description of it. What specifically were the types of data (text, sounds, transactions, etc.) included in the data set you chose? The data chart I chose was the internet growth chart, which shows the amount of petabytes used throughout the years. The type of data was internet usage and people.
- What new facts did you learn when exploring the data set? List at least 3 facts. 1. Internet traffic more than doubles between 2007 and 2009. 2.The data set includes a detailed timeline, with the history of things such as firefox. 3. If 14,414PB of data were stored in standard DVDs placed side by side, it would span the distance between the earth and the moon. (Actual fact from the timeline.)
- Write a question you have about the data set you chose. Now, convert that question into a hypothesis (a statement) with your prediction about the data.
(Hypotheses take the form of "If __________, then _________." For example, a hypothesis about the student debt data could be, "If the tuition costs are higher at an institution, the student debt will be higher." If internet traffic doubles between 2009 and 2011, then it will double between 2011 and 2013. - Identify at least one security and/or privacy concern that is associated with the data in the data set you chose? One privacy concern is that it very easy to know how many people use the internet. Which, could be used for good or bad, depending on the situation.
- If your data set included a visualization, explain the purpose of the visualization. How would you change or improve the visualization? If it did not include a visualization, describe one that you think would be useful in understanding the data. The purpose of the visulization is to show the great increases between the early years and more recent years of the internet history. One improvement is that it could have some sort of converter to convert between petabytes, megabytes, etc.
6.5
- Describe and give an example of the difference between synchronous and asynchronous data access. Synchronous retrieval happen instantly, and can't be performed over the internet. An example of this wouldbe TinyDB. Asynchronous retieval doesn't happen instantly, but can be performed over the internet. An example of this would Firebase.
- True or False. When an app retrieves data from Firebase, it first requests the data and then it stops whatever it is doing and waits for the data to arrive. Explain. True, It simply takes a few more milliseconds to retrieve when the app requests the data, during that time it stops.
- One aspect of abstraction is that it helps to reduce details to focus on what's relevant. How does the use of an external database in this app help reduce detail in the program? It helps reduce detail in the program as it takes out parts, such as TinyDB, that could be in the app and takes them out of the app. Instead of the information being stored on the app/device, it is stored on the internet.
6.6
- Describe how using a list of lists allowed the Presidents Quiz app to have more variety.
It allows for the user to give multiple possible answers for a question, instead of just one question.
6.7
All I had to do to create the chart was change the butterfly data from a bar graph to a pie chart, it was really simple.