WorksheetsBATCH-1 : Data Analytics Day -1 Workshop Quiz (25-11-2024)
Total questions: 10
Worksheet time: 5mins
1. What is Python?
a) A type of snake
b) A high-level programming language
c) A web browser
d) A type of database
2. Which of the following is an application of Python?
a) Machine learning
b) Data analytics
c) Web development
d) All of the above
3. What is the file extension of a Python script?
a) .java
b) .py
c) .cpp
d) .html
4. Which tool is used to run Python code in the cloud without setup?
a) Microsoft Excel
b) Jupyter Notebook
c) Google Colab
d) Photoshop
5. What is the output of the following code?
x = 10
y = 5
print(x + y)
a) 10
b) 5
d) 50
c) 15
6. Which of these is not a Python datatype?
a) Integer
b) Float
c) Boolean
d) Array
7. What does the input() function do in Python?
a) Displays output
b) Receives input from the user
c) Performs addition
d) Defines a variable
8. How can you access the first element of a list in Python?
fruits = ["apple", "banana", "cherry"]
a) fruits(1)
b) fruits[0]
c) fruits[1]
d) fruits.first()
9. In Python, what does a dictionary store?
a) Ordered elements
b) Key-value pairs
c) Only strings
d) Only numbers
10. What is the output of the following code?
x = "Python"
print(len(x))
a) 6
b) 5
c) 7
d) Error
