50% found this document useful (2 votes)
563 views3 pages

Question Bank - Data Analysis Using Python

The document contains a question bank on data analysis using Python. It includes 50 questions covering various Python concepts like features, data types, operators, loops, functions, modules, libraries and data structures.

Uploaded by

manishdahiya731
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
Download as docx, pdf, or txt
50% found this document useful (2 votes)
563 views3 pages

Question Bank - Data Analysis Using Python

The document contains a question bank on data analysis using Python. It includes 50 questions covering various Python concepts like features, data types, operators, loops, functions, modules, libraries and data structures.

Uploaded by

manishdahiya731
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1/ 3

Question Bank of Data Analysis using Python

B.Tech. (CSE-AIML)
Sem-2

1. What are the features of python?


Answer. The following are some of the features in Python that are discussed
below:
 Easy to Code. Python is a very high-level programming language, yet it is
effortless to learn. ...
 Easy to Read. ...
 Free and Open-Source. ...
 Robust Standard Library. ...
 Interpreted. ...
 Portable. ...
 Object-Oriented and Procedure-Oriented. ...
 Extensible.

2. Why do we use Python for data analysis?


, Python is a great choice for data analysis because of its simplicity, community
support, rich ecosystem of libraries and tools, interoperability with other languages,
and high-level programming capabilities..

3. Explain the limitations of python.


Python may not be suitable for high-performance or memory-intensive
tasks, and its dynamic typing can lead to potential errors that might not be
caught until runtime. Additionally, it may not be as fast as compiled
languages like C++ or Java.

4. How and why language semantics are important?


Semantics is important because it helps us understand the meaning of words in a
sentence and the relationships between words. It allows us to create connections
between words and concepts, improving our understanding of language and
communication . Semantics also plays a crucial role in language comprehension
and in terms of semantic characteristics . Additionally, semantics is vital for
successful human communication and can enhance vocabulary development and
language proficiency . In the context of technology, semantics is used to provide
sustainable solutions to environmental issues and to develop smart cities that
can gather and interpret information based on ontologies . Furthermore,
semantics is essential in the field of lexical semantics, as it helps us understand
how word meanings vary with context and how acquired language disorders can
impact word comprehension . Overall, semantics is important for understanding
and conveying meaning in language, improving communication, and developing
innovative solutions in various domains.
5. What do you mean by scalar types.
Question Bank of Data Analysis using Python
B.Tech. (CSE-AIML)
Sem-2
All of the data types we have seen so far, char, int, short long, float,
and double are called scalar (or base) data types because they hold a single

data item. (Chapters and describe compound data types provided


in C). There are two other scalar types in the language: enum and void which
are described in this section. We will refer to float and double types as
floating point types and to all sizes of integers, char and enum types as
integral types. In addition, we describe how a user defined type may be
declared.
6. What is operator explain.
In mathematics and computer programming, an operator is a
character that represents a specific mathematical or logical action or
process. For instance, "x" is an arithmetic operator that indicates
multiplication, while "&&" is a logical operator representing the logical
AND function in programming.
7. What is the difference between list and tuple.
The key difference between tuples and lists is that while tuples are
immutable objects, lists are mutable. This means tuples cannot be
changed while lists can be modified. Tuples are also more memory
efficient than the lists. When it comes to time efficiency, tuples have a
slight advantage over lists especially when we consider lookup value.
If you have data that shouldn’t change, you should choose tuple data
type over lists

8. Explain variable and assignment with example.

9. Explain branching concept in python.


10. Explain date time module with example.
11. Explain for loop with example.
12. Explain if else statement with example.
13. Print int cube root if it exists of an integer if the input is not a perfect cube it
prints a message to that effect used while loop.
14. Write a program to take input from user and convert It into capital letter.
15. WAP which will find no. Bet 101 and 901 (both included) such that each digit is
of a no. Is even no.
16. Write a program to count vowels in given string.
17. Explain string formatting with example.
18. Explain positional and keyword argument with example.
19. What is string. explain three methods of string.
20. What is difference between str.strip() and str.split().
21. Explain positive and negative slicing with example.
22. Write a Python program to count repeated characters in a string.
23. What is function and how its important in programming?
24. What do you understand slicing? Explain.
Question Bank of Data Analysis using Python
B.Tech. (CSE-AIML)
Sem-2
25. What do mean by Spyder IDE?
26. Explain advantages and disadvantages of Python.
27. Import Numpy to create a program to get the first element from the array
[1,2,3,4]
28. What is the difference between list.extend() and list.append().
29. Explain lamda() with example.
30. Explain map() with example.
31. What is languages semantics and how it is important in programming. Explain
Briefly.
32. What is difference between Mutable and Immutable Objects. Explain with
example.
33. What is difference between Numpy and Pandas library. Explain with example.
34. What is difference between Matplotlib and Seaborn library. Explain with
example.

35. What is languages semantics and how it is important in programming. Explain


Briefly.
36. Define Data structures used in python with example.
37. Explain continue and break statement in python.
38. What is difference between reversed() and list.reverse().
39. Explain zip() with example.
40. Write a program to sort element of a list using list
comprehension.
41. What is difference between zip() and enumerate(). Explain with example.
42. What is file handling explain with example?
43. What do understand by array? Explain array creation functions.
44. What do mean by Pandas?
45. Why we use pandas in Python? Explain.
46. Import pandas to create a Dataframe using list.
47. What is numpy?
48. Write a program to create multidimensional array.
49. What is difference between zeros and ones?
50. How we use matplotlib and seaborn in Python? Give an example of plotting a
Distplot.

You might also like