Sie sind auf Seite 1von 1

Enrollment No: ____________________

DEPARTMENT OF COMPUTER SCIENCE


ISHLS

Branch & Semester : Int.M.Sc(CA&IT)–VII/M.Sc-IT–I/Int. MCA-VII/MCA Total Marks: 40


End Semester Practical Examination (Nov/Dec 2019)
Subject Code & Name : IMSC0705/MSC0109/IMCA0708/MCA-312 - Introduction to Python
Date & Day : 04th November -2019 Wednesday

Write a python script to calculative sum of a list, the problem statement asks to produce a new list whose ith elements
will be equal to the sum of the ( i + 1) elements.
Sample input & output
I/P: [2,6,8,3,1]
O/P: [2,8,16,19,20]

Enrollment No: ____________________


DEPARTMENT OF COMPUTER SCIENCE
ISHLS

Branch & Semester : Int.M.Sc(CA&IT)–VII/M.Sc-IT–I/Int. MCA-VII/MCA Total Marks: 40


End Semester Practical Examination (Nov/Dec 2019)
Subject Code & Name : IMSC0705/MSC0109/IMCA0708/MCA-312 - Introduction to Python
Date & Day : 04th November -2019 Wednesday

Write a python script to print and write in file all prime numbers in an interval between the range which is entered by
user.

Enrollment No: ____________________


DEPARTMENT OF COMPUTER SCIENCE
ISHLS

Branch & Semester : Int.M.Sc(CA&IT)–VII/M.Sc-IT–I/Int. MCA-VII/MCA Total Marks: 40


End Semester Practical Examination (Nov/Dec 2019)
Subject Code & Name : IMSC0705/MSC0109/IMCA0708/MCA-312 - Introduction to Python
Date & Day : 04th November -2019 Wednesday

Write a python script to Check enter number is Armstrong Number or not, also find first 3 Armstrong from
given range if not found then show appropriate message to user.

Das könnte Ihnen auch gefallen