0% found this document useful (0 votes)
43 views7 pages

All - Unit Possible Question PSPP

Python questions

Uploaded by

anbesivam548
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)
43 views7 pages

All - Unit Possible Question PSPP

Python questions

Uploaded by

anbesivam548
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
You are on page 1/ 7

A V S COLLEGE OF TECHNOLOGY - Salem-636106

First Semester
Regulation-2017

Dept: Subject Code & Name: GE8151&Problem Solving & Python Programming.

PART - A
1. Define an Algorithm and write its characteristics.
2. What are the kinds of statements?
3. What is pseudo code & write pseudo code for adding of two numbers?
4. Draw the flowchart symbols with description.
6. List out the advantages and disadvantages of flow chart?
7. Write the advantages of pseudo code?
8. Differentiate: Recursion and Iteration.
9. Draw the diagram for Algorithm design & analysis process.
10. Define an Algorithm and what are the quality measures?
11. What is flowchart & Write any two rules?
12. What is pseudo code & write any two disadvantages?
13. Draw the flowchart symbols with description.
14. Write the pseudo code for area of rectangle.
15. Write the Basic Guideline for flowchart.
16. Define function, why do we write function?
17. Draw the diagram for Algorithm design & analysis process.
18. Draw the selection control structures with syntax available in algorithmic problem solving?
19. Define pseudo code and write down the pseudo code for sum of two numbers.
20. Write the basic guidelines for writing pseudo code.
21. List out the programming languages.
PART -B
1. i) Discuss about Building the block of algorithm. (8)
ii) Write Algorithm, Pseudo code and draw flowchart for biggest among three numbers (8)
2. i) Discuss Pseudo code and write advantages.(8)
ii) Write a python program for Add the two numbers with flowchart and pseudo code. (8)
3. i) Find the factorial for a given number with algorithm , pseudo code and flowchart (8)
ii) Explain the concept of Algorithmic problem solving. (8)
4. i) Discuss about basic design in flow of control. (8)
ii) Explain in detail about iteration and recursion.(8)

5. i) Discuss about pseudo code and write its basic guide lines with example.(8)
ii) Explain selection control structures with pseudocode and flow chart (8)
6. i) Find the area and circumference of circle with algorithm, pseudo code and flowchart (8)
ii) Explain the towers of hanoi (8)
7. i) Explain about flowchart with symbols and write its basic guide lines. (6)
ii) Draw the flow chart, algorithm, pseudo code for calculates the given year is leap or not.(8)

UNIT -2 DATA, EXPRESSIONS, STATEMENTS


PART-A
1. What is python? what are the benefits of using python?
2. How python is interpreted?
3. How memory is managed in python?
4. What are python decorators?
5. What are the tools that help to find bugs or perform static analysis?
6. Mention some benefits of using python.
7. What is the purpose of PYTHONPATH environment variable?
8. What is the purpose of PYTHONSTARTUP environment variable?
9. What are the supported data types in python?
10. What are the types of numbers present in python
11. What are tuples in python?
12. What is the difference between tuples and lists in python?
13. What are python’s dictionaries?
14. How will you create a dictionary in python?
15. How will you get all the keys from the dictionary?
16. How will you get all the values from the dictionary?
17. Explain the use of with statement?
18. How to create and assign numbers(number objects)
19. What is variable? Give example.
20. How will you concatenate the variables in python?
21. Write the content of swapping of two numbers in a single line.
22. What is expression? give example.
23. What is a statement in python?
24. Give example for tuple assignment.
25. List out the points of precedence of operators.
26. Give example for comments in python.
27. Define module.
28. What is function ? list out its types.
29. Define parameters.
PART-B
1.Briefly explain about the data types available in python with examples.
2. Define variable and explain how to declare variable and explain about the scope of the variable.
3. Briefly explain about the concept of precedence of operators.
4. Illustrate the concept of modules in details.
5. Explain in details about the concept of flow of execution.
6. Explain in detail about the concept of parameters arguments.
7. (a) Write the python program for the concept of exchange the values of two variables.
(b)write a python program to check whether the year is leap year or not:

UNIT-3 CONTROL, FLOW, FUNCTION


PART-A
1. Define Boolean values?
2. List out the Boolean operators:
3. Define operator. give example of operator.
4. List out the types of operator.
5. What is the purpose of ** operator?
6. What is the purpose of // operator?
7. What is the purpose of is operator?
8. What is the purpose of not in operator?
9. Define conditional statements.
10. What is the purpose of iteration? Give example
11. What are unconditional looping statements?
12. What is the purpose break statement in python?
13. What is the purpose continue statement in python?
14. What is the purpose pass statement in python?
15. What are function and fruitful function?
16. Define parameter. List out its types.
17. How will you call a function by arguments?
18. Define scope of the variable and its types.
19. List out some escape sequence in python.
20. How will you slice the given string in python?
21. Is strings are immutable in python?
22. List out some important string methods.
23. What is string module?
24. Is array act as major role in python? Justify.
PART-B
1. What are operators? Illustrate each one with example.
2. Explain the branching statements in python with relevant syntax and example.
3. Explain the iteration in python with relevant syntax and example.
4. Explain about unconditional looping statements with relevant example.
5. Briefly explain about fruitful functions with examples.
6. What is composition? Explain in details with example.
7. Briefly explain about recursion with example program.
8. Explain in details about strings with example.
9. List out the string special operators with examples.
10. List out the string formatting operator with example.
11. Discuss briefly about string slices with examples.
12. List out the string functions and methods with examples.
13. Briefly discuss about string module with relevant example.
14. Why we need list instead of array in python? Explain in details about lists with example.
15. Write a python program to calculate square root
16. Write a python program to calculate GCD
17. Write a python program to calculate sum the arrays of numbers
18. Write a python program to search a required number in set of numbers using the concept of linear
search.
19. Write a python program to search a required number in set of numbers using the concept of
binary search.

UNIT-1V COMPOUND DATA: LISTS, TUPLE,DICTIONARIES


PART-A
1. Define list with example.
2. Give example for list membership.
3. What is list slices?
4. What is the purpose of list methods?
5. List out the types of list methods.
6. Define range function with example.
7. What is the purpose to use list loop in python?
8. What is aliasing? Give example.
9. What are the uses of cloning list?
10. What is list parameter?
11. Define tuples.
12. Give example for tuple assignment.
13. Give example for tuples as return values.
14. What is dictionary in python?
15. List out the operations on dictionaries.
16. List out the methods on dictionaries.
17. Define comprehension.
18. Define the term sorting.
19. List out the types of sorting techniques.
20. What is meant by internal and external sorting? give some examples of each type.

PART-B
1. Briefly explain about the concept of list and explain how to accessing elements in a list.
2. Explain about list operations with clear example.
3. Illustrate with an example about list slices.
4. Explain in detail about the methods available in list
5. Explain the concept of loop using in list with relevant example.
6. How can implement mutable in the concept of lists. Explain with example and how to delete a
particular element in a list.
7. Give example for aliasing and cloning lists with relevant example.
8. Explain about tuples and also the concept of tuple assignment and tuples as return value with
example.
9. What is dictionary in python? And list out the operations and methods with examples.
10. Explain in details about list comprehension with example.
11. Write a python program for selection sort.
12. Write a python program for insertion sort.
13. Write a python program for merge sort.
14. Write a python program for quick sort.

UNIT-V FILES, MODULES, PACKAGES


PART-A
1. What is file? List out its types.
2. List out the types of file mode.
3. List out the types of file operations.
4. Give the syntax and example of file open
5. What is file object attributes. List out its attributes.
6. What is tell() in python.
7. What is seek() in python.
8. Give syntax and example for remove() function.
9. Give syntax and example for rename() function.
10. List out the important directories in python.
11. How to parse command line argument?
12. What is error? List out the basic categories of error.
13. List out the common python syntax errors.
14. Give some examples of runtime errors.
15. Give some examples of logical errors.
16. What is exception in python?
17. How to handle exception in python?
18. List any four standard exception in python.
19. What is the goal of assertion error?
20. Give the syntax for raise exception.
21. What are advantages of exception handling?
22. What is module in python? Give an example.
23. Differentiate: locals() and globals() functions
24. What is a package in python?
25. Differentiate: module and package in python.
PART-B
1. Give brief introduction about files in python.
2. Briefly explain about the concept of file operations with relevant examples.
3. How to create a text file and how to split a line in a specific text file?
4. Briefly explain how to manipulate a file? What are all methods are available in it? Explain with
examples.
5. List out and explain the directories in python.
6. Illustrate the concept of command line arguments with syntax and example.
7. What is error? Explain the types of error.
8. List out and describe the pre-defined methods of exception handling.
9. How to handle exception? Explain in details.
10. Explain in details about used defined exception with example.
11. Illustrate the important of modules with example.
12. Explain in detail about packages in python.
13. Write a python program to count no. of words appear in a file.
14. Write a python program to copy a source file to destination file.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy