Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
5 views

Python

Uploaded by

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

Python

Uploaded by

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

B.

Tech(CSE/CE) 2nd Sem

End Semester Examination

FUNDAMENTALS OF INFORMATION TECHNOLOGY AND PROGRAMMING USING PYTHON


CSL-126

Note: Attempt any four questions.

Time Allowed: 2 hours Max. Marks: 100

Section A

1. (a) Explain any two output devices of computer.


(b) Draw a block diagram of computer and explain any one input device of it.
10x2=20
2. Write any five differences between the followings:
(i) RAM vs ROM
(ii) High Level Language Vs Assemble Language
(iii) Hard Disk Drive vs SSD
(iv) Complier vs Interpreter

4x5=20

Section B

3. (i) Write an algorithm and draw its flowchart to check whether a given number is prime or
not.
(ii) Write a program in python to calculate the sum of first 100 numbers which are divisible
by 20.
10x2=20
4. Explain the various data types of python with example of each.
20

Section C

5. What do you mean by recursion? What is the procedure to implement it? Justify your
answer by giving some programming example.
20
6. Write a program in python to create a module with the following functionality and access it
in an another python program :
(i) To find the sum of the list of elements
(ii) To sort a list of elements
10x2=20

Section D

7. What is the use of file handling in python? What is the use of data file? Explain the various
file operations with some examples and their syntax.
3,3,14
8. (a) Write a program in python to print only those names from a list of 50 names that
contains “eep” word.
(b) Name and explain the various modes of file handling that ate used while creating a text
and binary file with some example.
10x2=20

You might also like