Professional Documents
Culture Documents
1. Why Python is famous? Discuss its features and the domains where it can be used for problem solving.
2. Discuss any two reasons why people use Python.
3. Python code execution is slower in comparison to C or C++. State True or False and justify.
4. Explain working on Python Virtual machine with suitable diagram.
5. What are Frozen Binaries?
6. What is Integrated Development Environment? Name any two Python IDEs.
6. Write short note about pass, break and continue. Give example for each of them.
7. Write a program which showcase use of list comprehension with map and without map.
8. How map can be used in Python program? Explain with a suitable example.
9. Write a Python program to find reverse of given number using user defined function.
10. Find output
l=[(x, y) for x in [1,2,3] for y in [3,1,4] if x != y]
print l
11. Write list comprehensions for [3]
a. Write div(n) function which returns sum of positive divisors of given number
b. return a string with vowels removed
c. Finding intersection from two lists
d. x is an alphabet in word ‘MATHEMATICS’, x is a vowel
e. Take two list of same length as input and return a dictionary with one as keys and other as values
1. Explain Set data structure. Discuss any three mathematical operations supported on set with suitable example.
2. What is dictionary in Python? Explain with an example.
3. Explain how stack and queues are implemented in Python.
4. Differentiate between tuples and sets based on their mutability, orderedness and uses.
5. How can all keys and values of a dictionary be traversed? Explain with an example.
1. Define
a. Web crawling
b. Web scraping
c. Spider
d. Scrapy
2. Write overview of working of Web scraping with suitable diagram.
3. Compare Scrapy Vs. BeautifulSoup.
7. Explain use of cssSelectors in web scraping with suitable example.
8. Write a program to read any webpage and print title of the web page.
9. Explain use of Xpath for Data Extraction in web scraping with suitable example.
10. Define web scraping. Discuss any two use cases where scraping is useful. Explain working of Scrapy with
suitable diagram.
11. Explain web scraping process with suitable diagram. Discuss the components used for extracting information.