UNIT II

2 MARKS

  1. What is control structure?
  2. What is infinite loop?
  3. Mention the uses of Infinite loop.
  4. What is boolean flag?
  5. List any eight-sequence operation on strings in Python.
  6. What is a bit?
  7. What is meant by a “straight-line” program?
  8. What is the difference between a control statement and a control structure?
  9. State the purpose of indentation in Python.
  10. What is string?
  11. List the three fundamental forms of control in programming.
  12. What is iterative control statement?
  13. Write a note on selection control.
  14. What do you mean by if statement in python?
  15. State the purpose of multi-way selection.
  16. Name the operations performed on list.
  17. Write the use of selection control statement.
  18. Show the example for Boolean flag.
  19. Write a note on definite loop.
  20. What is a list?
  21. What is While Statement?
  22. What is List traversal?

5 MARKS

  1. Explain indentation in Python with an example.
  2. Write a python program to find factorial of a number.
  3. Write a Python program to display the number of days in a given month.
  4. Explain the selection control statement with a program example.
  5. Explain the use of special methods in python.
  6. Explain the nested if statements in Python with example.
  7. What are the common list operations in Python? Explain.
  8. Summarize the building blocks of python programs.
  9. Explain the operations commonly performed on lists.
  10. Explain the relational operators in python with examples.
  11. Compare and Construct lists and Dictionary.

10 MARKS

  1. Explain the sequence operations in python with examples.
  2. List and explain the sequence operation on strings in python.
  3. Describe in detail iterating over list in python.
  4. Illustrate the lists and other sequence types in Python.
  5. Explain the two means of constructing multi-way selection in Python with examples.
  6. Write a python program to convert Fahrenheit to Celsius.
  7. Discuss the syntax and example for the While statement in python.