0% found this document useful (0 votes)
194 views2 pages

Data Engineering with Python Exam 2023

Internal

Uploaded by

supriya.msc2009
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
194 views2 pages

Data Engineering with Python Exam 2023

Internal

Uploaded by

supriya.msc2009
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Osmania University

Faculty of Science
DEGREE 2nd Year III-SEMESTER (CBCS)
1st INTERNAL ASSESSMENT EXAM Sep-2023
Group: [Link].(D.S) Paper: Data Engineering with Python Marks: 15
Name: Date:
Roll. No: Invigilator sign:
I. Multiple Choice Questions 10 x ½ = 5M
1. JSON stands for { }
a. Java script Object Notation b. Java Object Notation
c. JSON object notation d. All the above
2. To read two characters form a file object infile, we use _____ { }
a. [Link](2) b. [Link]() c. [Link]() d. [Link]()
3. ___ file mode is used to open a text file in read mode. { }
a. rb b. a c. w d. r
4. The ____ module that support regular expression is { }
a. regEx b. re c. PyregEx d. string
5. The process of converting a word form to their root is { }
a. Stemming b. Lemmatization c. Tokenization d. None of the above
6. Which module is used work with file system { }
a. [Link] b. os c. Both a & b d. None of the above
7. The process of pickling in python includes { }
a. Conversion of a list to a data table
b. Conversion of a byte stream into python object hierarchy
c. Conversion of python object hierarchy into byte stream d. None of the above
8. The full form of abbreviation of XML is { }
a. Extensible markup language b. Excisable markup language
c. Executive markup language d. Extensible managing language
9. Consider the following XML code and identify the root element { }
<?xml version=”1.0” encoding=”UTF-8”>
<fullname>
<firstname>Alex</firstname>
<lastname>Stanley</lastname>
<employeecode>EC123</employeecode>
</fullname>
a. <fullname b. <firstname> c. <lastname> d. <employeecode>
10. ___ method is used for converting python object into Json object { }
a. load() b. dump () c. Both a & b d. None of the above
II. Fill In the blanks 10 x ½ = 5M
1. ____________ is all about obtaining the artifacts that contain the inputdata from a variety of
sources.
2. An ___________ is defined as specifying the location of a file or directory form the root
directory.
3. To read the entire content of the CSV file, we use ________________ method.
4. Python supports _______________ types of files.
5. Python ______________ module provides the interaction between the user and the
operating system.
6. In python, the _____________ allows the developer to convert the complex object structure
into a stream of bytes.
7. The read lines () method returns_____________________.
8. HTML stands for _____________________.
9. All NLTK corpora are stored in the module ____________________.
10. ______________ expressions use groups to capture strings of interest.
III. Short Answer Questions 5 x 1 = 5M
1. What is a file?

2. What is relative path?

3. What is CSV file?

4. What is regular expression?

5. What is tokenization?

Common questions

Powered by AI

JSON stands for JavaScript Object Notation. It is popularly used in data engineering with Python for data interchange between a server and a web application as it is lightweight, easy to read and write for humans, and easy to parse and generate for machines .

File I/O operations are fundamental in data engineering for importing, processing, and exporting data. Python facilitates these operations with built-in functions like read(), write(), and modules like 'os' for efficient speed and simplicity. These capabilities are crucial for managing large-scale data pipelines and systems .

Python's 're' module is advantageous for pattern recognition and manipulation in text data. It allows for efficient searching, matching, and replacing of text patterns, which is beneficial in scenarios requiring text data cleaning, validation, or transformation, such as extracting specific patterns from large datasets .

Python manages interaction with the operating system through built-in modules like 'os', allowing for operations such as file handling, environment variable management, and process handling. This interaction is important as it abstracts complex system-level tasks into manageable scripts, enhancing efficiency and productivity in software development .

The Python 'os' module provides a way to use operating system-dependent functionality like reading or writing to the file system. It includes several important methods, such as os.path for file paths, and is crucial in data engineering for managing and accessing files and directories efficiently .

The 'dump' method in Python is used to convert a Python object into a JSON object. This process, often referred to as serialization, is crucial for transmitting data in web applications and storing objects in a readable text format, which simplifies data interchange between applications .

NLTK corpora are essential collections of texts provided by the Natural Language Toolkit in Python. They serve as a foundation for NLP tasks by providing a vast repository of linguistic data (such as words and sentences) that can be used for training and testing language models, enabling applications like sentiment analysis and language modeling .

Reading from a file in binary mode ('rb') in Python handles data as bytes, suitable for non-text files like images. Text mode ('r') reads data as a string, used for reading human-readable text files. Understanding the appropriate mode is essential for data integrity and software compatibility in data engineering tasks .

Stemming and lemmatization are both processes used in text processing to reduce words to their base form. Stemming aggressively cuts off word endings, producing root forms that may not be actual words. Lemmatization, conversely, reduces words to their dictionary form, considering the context. This distinction is crucial in Python for accurate text analysis where maintaining meaningful words is necessary .

Pickling in Python is the process of converting a Python object hierarchy into a byte stream to save it as a file or across a network. This process is significant in data engineering for data serialization, as it enables complex data structures to be easily stored and retrieved without losing integrity .

You might also like