Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

GOVERNMENT ENGINEERING COLLEGE

YARAMARUS CAMP, Raichur-584135

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING


Internal Assessment Test – II
---------------------------------------------------------------------------------------------------------------------------

USN:

Course Name : Python application programming (18CS752) Date: 06/12/2023


Course Code :C705 Time: 10:00-11:30
AM
Course Year : 2023-2024 Max. Marks:50
Semester / Branch: 7th, Subject Faculty Name: Azeemoddin

COURSE OUTCOMES
Students must be able to
Course
Course Outcomes Blooms Level
Code
C705.1 L1,L2
Explain the object-oriented concepts and JAVA

Answer any Two full questions.


Q No Questions Marks CO’s PO’s RBT

a Explain any 5 string methods with example. 10 CO1 PO1,PO2,PO3 L1,L2

1 Write a python program to read input string and display the


b 07 CO1 PO1,PO2,PO3 L1,L2
count of vowels and consonants in the input string.

c Explain file open, file read, file write and file close concept in 08 CO1 PO1,PO2,PO3 L1,L2
python
What is a list? Explain the concept of list slicing and list
a 12 CO1 PO1,PO2,PO3 L1,L2
traversing with example.
2 b With suitable example explain list methods append, extend, sort 07 C02 PO1,PO2,PO3 L1,L2
and pop.
c Write a python program to accept file name from the user and 06 CO1 PO1,PO2,PO3 L1,L2
print the lines that starts with 'From:'.
Write a python program to count occurance of words in a file
a. 10 CO2 PO1,PO2,PO3 L1,L2
using dictionary.

What is dictionary? How is it different from list? Write a


b
python program to count occurance of character in a string and 10 CO1 PO1,PO2,PO3 L1,L2
3. .
print the count using dictionar

Write a python program that accepts a sentence and build a


c. dictionary with LETTER,DIGIT, UPPER and LOWER as key 05 CO1 PO1,PO2,PO3 L1,L2
values and their occurance in sentence as values.

Signature of the Course Teacher: Signature of the Reviewer:


Signature of NBA coordinator: Signature of HOD:

You might also like