WorksheetsDS- Introduction to Python - Quiz
Total questions: 15
Worksheet time: 8mins
What is Data Science?
A. Study of hardware
B. Extracting useful insights from data
C. Writing programs only
D. Data storage technique
Which of the following is a facet of data?
A. Structured
B. Unstructured
C. Semi-structured
D. All of the above
Which step comes first in the Data Science process?
A. Model building
B. Data visualization
C. Data collection
D. Deployment
Which function is used to take user input in Python?
A. input()
B. print()
C. read()
D. scan()
Which of the following is an immutable data type?
A. List
B. Set
C. Dictionary
D. Tuple
Which control flow statement is used for decision making?
A. for
B. while
C. if
D. break
What will be the output of range(5)?
A. 1 to 5
B. 0 to 5
C. 0 to 4
D. 1 to 4
Which keyword is used to define a function in Python?
A. function
B. def
C. define
D. fun
Which data structure allows duplicate elements?
A. Set
B. Dictionary
C. List
D. None
What symbol is used to create a dictionary in Python?
A. ( )
B. [ ]
C. { }
D. < >
Which data structure does NOT allow duplicate values?
A. List
B. Tuple
C. Set
D. String
Which of the following is a list in Python?
A. (1, 2, 3)
B. {1, 2, 3}
C. [1, 2, 3]
D. <1, 2, 3>
How are elements accessed in a list?
A. Using keys
B. Using index
C. Using values
D. Using functions
Which of the following correctly accesses value 85 from a dictionary d = {"marks":85}?
A. d[0]
B. d["marks"]
C. d(marks)
D. d{marks}
Which data structure stores elements as key–value pairs?
A. List
B. Tuple
C. Set
D. Dictionary
