Data Science 1
Data Science 1
3. Which type of machine learning algorithm aims to mimic the process of human learning?
(a) Supervised learning
(b) Unsupervised learning
(c) Reinforcement learning
(d) Deep learning
4. Which technique is used to reduce the impact of noise and outliers in a dataset?
(a) Feature extraction
(b) Regularization
(c) Cross-validation
(d) Principal Component Analysis (PCA)
Page 1 of 6
6. Machine learning is a subset of which of the following.
(a) Artificial intelligence
(b) Deep learning
(c) Data learning
(d) None of the above
Page 2 of 6
(b) To summarize and describe the main features of a dataset
(c) To infer conclusions about a population based on a sample
(d) To test hypotheses and relationships between variables
13. In a symmetrical dataset, which measure of central tendency will be approximately equal?
(a) Mean and median
(b) Mean and mode
(c) Median and mode
(d) Mean, median, and mode
14. What is common between the following? Facebook, Twitter, Instagram, Pinterest.
(a) All are accessible from dark web.
(b) All are social networking sites.
(c) All are new web sites.
(d) All of the above
15. In terms of Facebook's ranking algorithm, what does "weight" refer to?
(a) The amount of comments, likes, etc. a content post receives
(b) How often a profile produces content
(c) How many highly ranked content posts a profile has in a given week
(d) How many followers/friends a company has
Page 3 of 6
(d) None of the above
17. Which social network is considered the most popular for business to business marketing?
(a) Facebook
(b) LinkedIn
(c) Tiktok
(d) WhatsApp
18. Which of the following is the most viral section of the internet?
(a) Chat Messenger
(b) Social networking sites
(c) Tutorial sites
(d) Chat-rooms
19. Which of the following is not an appropriate measure for securing social networking accounts?
(a) Strong passwords
(b) Link your account with a phone number
(c) Never write your password anywhere
(d) Always maintain a soft copy of all your passwords in your PC
20. Which type of data analysis focuses on the question "what might happen in the future" and helps in
making predictions about some sort of data?
(a) Descriptive data analysis
(b) Diagnostic data analysis
(c) Predictive data analysis
(d) Prescriptive data analysis
Page 4 of 6
2. List two advantages and two disadvantages of supervised learning. (4Mks)
3. List three (03) applications of unsupervised learning. (3Mks)
4. In Network Analysis, what are the indicators used to measure the centrality of a node?
(3Mks)
5. List and explain the functioning of two (02) basic graphs in data science. (4Mks)
6. What are similarities between data analysis and data science? (2Mks)
1. What are the basic data types in Python? (Show how you can declare a variable of each type).
(4.5Mks)
2. Illustrate how to compute mean, median and mode in a given dataset. (4.5Mks)
3. What is the use of Range function? (2Mks)
4. Distinguish between array and list. (3Mks)
5. How can you add comments in your code? (2Mks)
6. How can you add an element in a list? How can you remove an element from a list?
(4Mks)
Page 5 of 6