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

PSPP Model Important Questions

The document contains a series of questions and tasks related to Python programming, algorithms, and data structures. It covers topics such as defining algorithms, writing Python functions, explaining data types, and understanding control flow statements. Additionally, it includes practical programming exercises and theoretical questions to assess knowledge in these areas.

Uploaded by

harishjothima
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)
13 views2 pages

PSPP Model Important Questions

The document contains a series of questions and tasks related to Python programming, algorithms, and data structures. It covers topics such as defining algorithms, writing Python functions, explaining data types, and understanding control flow statements. Additionally, it includes practical programming exercises and theoretical questions to assess knowledge in these areas.

Uploaded by

harishjothima
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/ 2

2 marks :

1. What are the simple strategies for developing algorithms ?


2. Define an iterative statement ?
3. How do you assign a value to a tuple in python?
4. Identify the operand (s) and operator(s) in the following expression :
Sum = a+b
5. What are the purpose of pass statement in python ?
6. Write a simple function to multiply two numbers in python ?
7. How python’s dictionaries store data? give example
8. Write a program to create a clone of the list: list 1=[1,2,3,4,5,6]
9. List any four file operations.
10. Write a pyton program to count words in a sentence using split() function.
11. Define algorithm .give an example.
12. Write an algorithm to find smallest among three numbers
13. List any four built in data types in python
14. What is an indentation in python ? give an example
15. Define recursive function
16. Write a python program to find leap year
17. How are the values of tuple accessed ? illustrate with an example
18. What are the list comprehension ? mention its advantages.
19. Write a significance of format operator
20. What are the exceptions ?
21. List the symbols used in drawing the flow chart
22. Distinguish between algorithms and programs
23. Mention the types of arguments in python
24. Write a python program to swap two numbers
25. Write a python program to print sum of cubes of the values of n variables
26. What is recursive function ? write advantages and disadvantages ?
27. Difference between tuple and list ? give an example
28. How to slice list in python ?
29. What is command line arguments
30. Define file and list the types of files ?

15 marks :

1. A).Compare machine language ,assembly language and high level language (8)

B).Write the pseudocode for the following (8)

a. Find minimum in a list


b. Towers of Hanoi.
2. Explain in detail about the building blocks of an algorithms
3. i.Draw a flow chart to accept three distinct numbers ,find the greatest and print the results
ii.Draw a flow chart to find the sum of the series
1+2+3+4+….+100
4. Explain in details about the strategies of an algorithm with an example
5. Outline the data types supported by python with an example
6. Name the types of operators supported by python and outline any two with an example
7. Write and explain the python program to swap two numbers with and without temporary
variables
8. i. List down the rules of naming the variable with examples
ii. List out the order of precedence and demonstrate in detail with example

9. I.Write a python program to calculate the distance between two points


II.Write a python program to find the roots of a quadratic equation given the coefficients
a,b,c
10. What is difference between break and continue in python ? explain with suitable examples
11. What is string functions in python ? explain three python string methods with an example
12. Describe the conditional branching statement of python with an example
13. Write in detail about functions with an examples
14. What is list and explain the list methods ?
15. Explain the list slicing and list comprehension with an example
16. Explain in detail about dictionary ? with an examples
17. Explain in detail about in tuple with an examples
18. Explain various types of file operations in detail in python
19. Explain command line arguments in python with example
20. Explain the packages and modules in python with an examples
21. Write a simple python program to count the numbers of words in the sentence using the spilt
method and list other count methods .

You might also like