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

Python Module1 QuestionBank

The document is a question bank for a Python Programming for Data Science course at SJB Institute of Technology. It includes various questions covering topics such as Python features, error types, data types, string manipulation, and methods. The questions are designed to assess understanding of fundamental Python concepts and programming practices.

Uploaded by

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

Python Module1 QuestionBank

The document is a question bank for a Python Programming for Data Science course at SJB Institute of Technology. It includes various questions covering topics such as Python features, error types, data types, string manipulation, and methods. The questions are designed to assess understanding of fundamental Python concepts and programming practices.

Uploaded by

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

||JAI SRI GURUDEV||

Sri Adichunchanagiri Shikshana Trust ®


SJB INSTITUTE OF TECHNOLOGY
An Autonomous Institution under Visvesvaraya Technological University, Belagavi
Approved by AICTE, New Delhi, Accredited by NAAC, New Delhi with ‘A+’ Grade, Accredited by National Board of Accreditation, New Delhi
Recognized by UGC, New Delhi with 2(f) and 12(B), Certified by ISO 9001-2015
No. 67, BGS Health & Education City, Dr. Vishnuvardhan Road, Kengeri, Bengaluru - 560 060

Department of Computer Science & Engineering (Data Science)

Course Name: Python Programming for Data Science Course Code: 23CDE312
Faculty: Mrs. Jasma Bhavani B

Question Bank
Module 1
Introduction to Python

1. Explain the features of Python and why it is widely used.

2. Define statement in Python. Explain simple and compound statements with suitable examples.

3. What are the different types of errors in Python? Explain syntax errors and runtime errors with
examples.

4. What are tokens in Python? Explain keywords, identifiers, literals, operators, punctuators, and
comments with examples.

5. Explain different types of literals in Python with examples.

6. Explain Python's block structure. How does Python use indentation to define blocks?

7. Explain nested blocks in Python with suitable examples.

8. What are variables in Python? Explain the rules and conventions for naming variables.

9. Explain different types of assignment statements in Python with examples.

10. Explain dynamic type checking in Python. Write its advantages and disadvantages with examples.

11. What is type conversion? Differentiate between implicit and explicit type conversion with examples.

12. Explain different data types available in Python.

13. Explain bytes, bytearray, and memoryview with examples.

14. Discuss collection data types in Python.

15. What are strings? Explain properties of strings in Python with examples.

16. Explain string indexing and slicing with suitable examples.

17. Explain string concatenation and repetition with suitable examples.

18. Strings are immutable—explain with examples.

19. Explain various methods used for cleaning strings.


||JAI SRI GURUDEV||
Sri Adichunchanagiri Shikshana Trust ®
SJB INSTITUTE OF TECHNOLOGY
An Autonomous Institution under Visvesvaraya Technological University, Belagavi
Approved by AICTE, New Delhi, Accredited by NAAC, New Delhi with ‘A+’ Grade, Accredited by National Board of Accreditation, New Delhi
Recognized by UGC, New Delhi with 2(f) and 12(B), Certified by ISO 9001-2015
No. 67, BGS Health & Education City, Dr. Vishnuvardhan Road, Kengeri, Bengaluru - 560 060

Department of Computer Science & Engineering (Data Science)

20. Explain the split() method with syntax and examples.

21. Explain the format() method with examples.

You might also like