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

Python Programming Questions Guide

The document outlines unit-wise questions for a B.Sc. in Data Science course focusing on Problem Solving and Python Programming. It includes both short and long answer questions covering topics such as flowcharts, algorithms, control statements, functions, strings, lists, dictionaries, file handling, and object-oriented programming concepts. Each unit is designed to test students' understanding of fundamental programming principles and Python syntax.

Uploaded by

Saritha Reddy
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)
3 views3 pages

Python Programming Questions Guide

The document outlines unit-wise questions for a B.Sc. in Data Science course focusing on Problem Solving and Python Programming. It includes both short and long answer questions covering topics such as flowcharts, algorithms, control statements, functions, strings, lists, dictionaries, file handling, and object-oriented programming concepts. Each unit is designed to test students' understanding of fundamental programming principles and Python syntax.

Uploaded by

Saritha Reddy
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

B.

SC I DATASCIENCE I YEAR I SEM

PROBLEM SOLVING AND PYTHON PROGRAMING

UNIT-WISE QUESTIONS

UNIT I

SHORT ANSWER QUESTIONS

1. What is Flowchart? What are the standard symbols used in flowchart?

2. What is pseudocode? Write pseudocode to swap two numbers

3. What are identifiers? Write rules of identifier.

4. Explain type conversion

5. What is the purpose of break and continue statements?

LONG ANSWER QUESTIONS

1. What is an algorithm? Discuss about the characteristics and building


blocks of an algorithm with an example.

2. What are operators? Explain different operators with example programs.

3. What are control statements? Explain conditional control statements with


example programs

4. What are control statements? Explain iteration statements with example


programs

5. Explain in detail about input and output statements in python with


example programs

UNIT II

SHORT ANSWER QUESTIONS

1. Differentiate local and global variables

2. What is the difference between formal and actual arguments

3. Explain the concept of command-line arguments

4. What is String slicing? How is it used?

5. Explain about comparing strings.


LONG ANSWER QUESTIONS

1. Discuss in detail about various types of function parameters in Python


with example programs for each.

2. What is a function? What are different types of functions? Discuss in detail


about user-defined functions with example programs.

3. What is String? Discuss the various built-in methods of a string?

OR

Explain various String methods.

4. Explain the following operations on String with suitable examples

a) Splitting b) Joining c) Replacing.

5. Explain the following operations on String with suitable examples.

a) forward and backward indexing b) slicing

UNIT III

SHORT ANSWER QUESTIONS

[Link] is aliasing and cloning of Lists?

2. What is List comprehension?

3. What is the difference between tuple and dictionary?

4. What is the functionality of seek() and tell() methods in file handling?

5. Explain except with multiple exceptions.

LONG ANSWER QUESTIONS:

[Link] List. How is it created? Explain various built-in methods of list with
suitable code snippets.

2. What is Dictionary? Explain how to create a dictionary and the various


built-in methods of dictionary with suitable code.

3. What is a file? Explain in detail the different modes of opening a file with
program.

4. Explain the following file operations along with syntax and examples

a) read() b) readline() c) write() d) writelines()


5. Define Exception? Explain exception handling in detail with example
program

OR

Define exception? Explain try, except and finally blocks of exception handling

UNIT IV

SHORT ANSWER QUESTIONS

1. What is class? Write syntax for defining a class.

2. What is ‘self’ in OOP?

3. What are class attributes?

4. What is a destructor? How do we define it.

5. What is an iterator?

LONG ANSWER QUESTIONS

1. What are the characteristics of Object-oriented programming.

2. What is inheritance? Explain different types of inheritance.

3. What are constructors in Python? Explain in detail with example.

4. Explain the concept of anonymous functions in detail with suitable


programs.

5. What is Encapsulation? How does it work in Python? Illustrate with suitable


example

You might also like