Python
Python
(i) Flowchart
2020
(ii) Structure chart
Time : 3 hours
(iii) Both (i) and (ii)
The figures in the right-hand margin indicate marks. (c) What is the maximum possible length of an
identifier ?
Answer all questions.
(i) 31 characters
1. Choose the correct answer of the following :
(ii) 63 characters
1×8 = 8
(iii) 79 characters
(a) An algorithm represented in the form of
(iv) None of these
programming language is :
(d) All keywords in python are in —————.
(i) Flowchart
(i) Lower case
(ii) Pseudo code
(ii) Upper case
(iii) Program
(iii) Capitalized
(iv) None of these (iv) None of these
(b) Write a note on modular design. What do you mean by error in programming ?
(c) What are the building blocks of Explain different types of errors with
algorithm ? example.
(d) Give the feature of Python dictionaries. 5. Write a flow chart to find sum of first N natural
typles ? OR
(f) List some built-in modules in Explain the difference between recursion and
Python. iteration with example.
(g) What is chained conditional statement ? 6. Explain the basic data types available in Python
(h) Write the syntax and usage of while with example. 8
loop ? OR
(i) What is python break statement ? Write a Python program to take a string
(j) How modules are incorporated in a python from user and count number of vowels present in
program ? it.
OR