0% found this document useful (0 votes)
4 views6 pages

CSIT143

The document is an examination paper for a course on Problem Solving Using Computers and Python Programming, consisting of multiple sections with various questions. It includes sections A, B, and C, where students are required to answer questions related to software, Python programming concepts, and coding tasks. The total duration of the exam is 3 hours, and the maximum marks are 60.

Uploaded by

Shinchan Nohara
Copyright
© © All Rights Reserved
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
0% found this document useful (0 votes)
4 views6 pages

CSIT143

The document is an examination paper for a course on Problem Solving Using Computers and Python Programming, consisting of multiple sections with various questions. It includes sections A, B, and C, where students are required to answer questions related to software, Python programming concepts, and coding tasks. The total duration of the exam is 3 hours, and the maximum marks are 60.

Uploaded by

Shinchan Nohara
Copyright
© © All Rights Reserved
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/ 6

F100

[No. of Printed Pages - 6]


Enrol. No. .......3ALO
CSIT143
[ET]
2023
END SEMESTER EXAMINATION: DECEMBER,

PROBLEM SOLVING USING COMPUTERS


& PYTHON PROGRAMMING
Time : 3 Hrs. Maximum Marks : 60

Attempt questions from all sections as directed.


Note:

SECTION -A (24 Marks)

Attempt any four questions out of five.

Each question carries 06 marks.

1. What is a software? differentiate between application

and system software? Write the use of any one type


of software with some example.

2. Writepseudocode and draw flowchart forthe problem


of finding greatest of three numbers.

3. (a) "Strings in python are immutable", Explain this

statement with example. (2)

P.T.O.
CSIT143 2 FI00

to find the factorial


of a
(b)Write a python program
(4)
number entered by user using recurssion.

4. Write a note on each of the following Python language

constructs :

()) quotes (sinlge, double, triple)

(ii) multiline statements

(iii) indentation

5. Explain Map and Reduce functions in Python


programming, Give an example program to

demonstrate their use.

SECTION -B (20Marks)
Attempt any two questions out of three.
Each question carries 10 marks.

6 Write a menu driven progran which creates an empty


list and gives the following options to the user to

perform various operations

(i) Append an element to the list


CSITI43 3 F00
() Input an clement from the user and remove it

from the list

(iii) Remove all elements from the list

(iv) Count the number of occurrences of an elemnent


in the list

(v) Reverse the list

The program should


terminate when the user
choose
to exit.

7. (a) Write a program to demOnstrate the use of single

level inheritance and multi level inheritance.

(4)

(b)Describe the syntax for the following functions


and explain with an example. (6)

(i) abs(0

(ii) max()

(ii) divmod)

(iv) pow0

(v) len)

P.T.O.
4 FI00
CSITI43

different from list and


8. (a) How are dictionaries

tuple? Can sequence operations such as slicing


and concatenation be applied to dictionaries?
(6)
Why?

(b)Explain in detail the different types of errors in

programming. (4)

SECTION - C (16 Marks)


(Compulsory)

9. (a) The following picce of code goes into infinite loop.


Why? (4)

a=int(input("Enter a number:"))

b=int(input(""Enter another number:))

if a>b:

step = -1
else:

step =I
while a!=b:

if (atb%2>0):

print(atb,sep-"-")

a=tstep
FI00
5
CSITI43
(4)
(b) Predict the output

text = "abracadabraabbcrr"

counts

ct-0

Ist[)

for word in text:

if word not in Ist:

Ist.append(word)

counts(word]-0

ct-ct+1

counts[word]-counts[word]+I

print(counts)

print(Ist)

(c) Write a program toShow the concept of class and


objects.
(4)

P.T.O.
6 FI00
CSITI43

programn to show the use of tern ary


(d) Write a

operator and while loop.


(4)

You might also like