0% found this document useful (0 votes)
1 views

Python

python

Uploaded by

Akansha S
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1 views

Python

python

Uploaded by

Akansha S
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

BCA(IV) — Pyth.

(b) A chart that contains only function flow and


Prog. (SECC – 1)
no code is called as :

(i) Flowchart
2020
(ii) Structure chart
Time : 3 hours
(iii) Both (i) and (ii)

Full Marks : 80 (iv) None of these

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

EI – 30/2 ( Turn over ) EI – 30/2 (2) Contd.


(e) What is the return type of function id ? (ii) Int

(i) int (iii) Bool

(ii) float (iv) Str

(iii) bool 2. Answer any eight questions of the following :

(iv) dict 2×8 = 16

(f) Which of these is floor division ? (a) What is Pseudo Code ?

(i) / (b) What is the difference between algorithm


and flowchart ?
(ii) //
(c) Name the four types of scalar objects python
(iii) %
has.
(iv) None of these
(d) What is the use of comparison
(g) What is the result of cmp(3, 1) ?
operator ?
(i) 1
(e) What is meant by value in python ?
(ii) 0
(f) What is a variable ?
(iii) True
(g) What are the expressions ?
(iv) False
(h) What is docstring ?
(h) The format function, when applied on a string
(i) What is multiline statement ?
returns —————.
(j) What is the use of dir( ) function ?
(i) Error

EI – 30/2 (3) ( Turn over ) EI – 30/2 (4) Contd.


3. Answer any eight questions of the following : 4. Explain the steps involved in program

3×8 = 24 development cycle. 8

(a) Explain ** operator. OR

(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

(e) What is a list ? How lists differ from number. 8

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.

EI – 30/2 (5) ( Turn over ) EI – 30/2 (6) Contd.


7. Discuss different types of control flow statements
available in Python. 8

OR

Write a Python program to create a user


defined function to calculate square of a number
and square root of a number. Take number from
user.

EI – 30/2 (100) (7) BCA(IV) — Pyth.


Prog. (SECC – 2)

You might also like