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
You are on page 1/ 2
V.R.S.
College of Engineering and Technology
Arasur – 607 107, Viluppuram District. (Reaccredited by NAAC and an ISO 9001:2008 Recertified Institution)
Department of Science &Humanities
GE3151 – Problem Solving and Python Programming Question Bank Unit – 1 1. What is an algorithm? Summarize the characteristics of a good algorithm. 2. Discuss about the building blocks of algorithm. 3. Explain in detail about flowchart with an example. 4. Briefly describe iteration and recursion. Illustrate with an example. Program 5. Outline the Tower of Hanoi problem. Suggest a solution to the Tower of Hanoi problem with relevant diagrams. 6. Write an Algorithm, Pseudocode and draw a flowchart to find the minimum number in a given list of numbers. 7. Write an Algorithm, Pseudocode and draw a flowchart to insert a card into a list of sorted cards. 8. Write an Algorithm, Pseudocode and draw a flowchart to guess an integer number in a range Unit – 2 1. Explain about the data types available in python with examples. 2. Explain various types of operators in python. 3. Briefly explain about the concept of precedence of operators. Program 4. Write a python function to swap the values of two variables with and without third or temporary variable. 5. Write a python program to circulate the values of n variables, 6. Write a python program to find distance between two points. Unit – 3 1. Describe the conditional branching statements of python with examples. 2. Write the syntax of while loop and use the same to classify if a given number is prime or not.(Iteration) 3. List out the control flow statements in python and explain repetition type in detail with a sample program. 4. Explain various string methods and functions in detail. 5. Brief fruitful function and void functions with example. 6. Describe parameter passing in function using examples. 7. Discuss about the scope and lifetime of variable considering functions. Program 8. Write a program to perform search operation which sequentially checks each element of the list until a match is found or the whole list has been searched.(Linear and Binary serch) 9. Write a program to find the sum and average of array of numbers. 10. Write a python program to accept two numbers find the greatest and print the result. 11. Write a python program to find the GCD, Square root and Exponentiation. Unit – 4 1. Explain in detail about lists, list operations and list slices. 2. Write separate Python programs to illustrate create, access, concatenate and delete operations in a tuple. 3. Explain in detail about dictionary with an example. Program 4. Write a script in python to sort n numbers using sorting technique. 5. Write a program to generate electricity bill based upon the no. of units consumed. Refer the table below for unit and price details. 6. Demonstrate with simple code to draw the histogram in python. 7. Write a Python Program to print Students marks Statement and Retail bill preparation. Unit – 5 1. Why does python require file handing? Explain opening files in python with all modes. 2. How do you use the command line arguments to give input to the program? 3. Explain the use of packages modules in python with examples. 4. What is an exception? Elaborate exception handling in python. Program 5. Write a python program to count number of lines, words and characters in a text file. 6. Write a python function that copies a file reading and writing upto 50 characters at a time. 7. Write a program to handle the division by zero exception. 8. Write a program to display the contents of a file by performing split operation whenever a comma is encountered in a file. 9. Write a Python program to implement stack operations using modules.