1. How memory is managed in python?
Memory management in Python is handled by the Python memory manager. The memory allocated by the manager is in the form of a private heap space dedicated to python.
2. What is the use of ord() function?
The ord() function tells as the numeric value of a simple ASCII character.
3. How are strings stored internally in Python 3?
a. inverted
b. EBCDIC
c. Unicode
d. UTF-16
e. bubble memory
Answer: c. Unicode
4. When reading data across the network (i.e. from a URL) in python 3, what method must be used to convert it to the internal format used by strings?
a. decode()
b. rstrip()
c. encode()
d. split()
e. internal()
Answer: a. decode()
5. How to save pandas data frame to working directory?
df.to_csv("filename.csv")
6. What is the use of dropna() function in pandas dataframe()?
We can remove missing values using dropna() function.
Memory management in Python is handled by the Python memory manager. The memory allocated by the manager is in the form of a private heap space dedicated to python.
2. What is the use of ord() function?
The ord() function tells as the numeric value of a simple ASCII character.
3. How are strings stored internally in Python 3?
a. inverted
b. EBCDIC
c. Unicode
d. UTF-16
e. bubble memory
Answer: c. Unicode
4. When reading data across the network (i.e. from a URL) in python 3, what method must be used to convert it to the internal format used by strings?
a. decode()
b. rstrip()
c. encode()
d. split()
e. internal()
Answer: a. decode()
5. How to save pandas data frame to working directory?
df.to_csv("filename.csv")
Click the ad for more interview questionsπππππ
We can remove missing values using dropna() function.
7. DBMS
Database Management System (DBMS) is a software for storing and retrieving users' data
8. RBDMS
A relational database refers to a database that stores data in a structured format, using rows and columns.
9.Big Data
Big data is a field that treats ways to analyze, systematically extract information from, or otherwise deal with data sets that are too large or complex to be dealt with by traditional data-processing
10.Cloud computing
Cloud computing is the delivery of different services through the Internet. These resources include tools and applications like data storage, servers, databases, networking, and software.
Click the ad for more interview questionsπππππ
11.XML
XML (Extensible Markup Language) is a text-based format used to share data on the World Wide Web, intranets, and elsewhere.
12.How is memory managed in Python?
Ans:
Memory management in python is managed by Python private heap space. All Python objects and data structures are located in a private heap. The programmer does not have access to this private heap. The python interpreter takes care of this instead.
The allocation of heap space for Python objects is done by Python’s memory manager.
13. pass keyword in python
Use the pass keyword when you do not want to add any other properties or methods to the class.
Comments
Post a Comment