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

Programming in Python - - Unit 5 - Week 5 (Contents)_ String Manipulation

The document outlines the contents and assessments for Week 5 of a Python programming course, focusing on string manipulation. It includes various programming questions with correct answers and scores for each assignment submitted. The document also details upcoming weeks and their topics related to Python programming.

Uploaded by

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

Programming in Python - - Unit 5 - Week 5 (Contents)_ String Manipulation

The document outlines the contents and assessments for Week 5 of a Python programming course, focusing on string manipulation. It includes various programming questions with correct answers and scores for each assignment submitted. The document also details upcoming weeks and their topics related to Python programming.

Uploaded by

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

4/23/24, 3:23 AM Programming in Python - - Unit 5 - Week 5 (Contents): String Manipulation

(https://swayam.gov.in) (https://swayam.gov.in/nc_details/CEC)

[email protected]

CEC (https://swayam.gov.in/explorer?ncCode=CEC) » Programming in Python (course)

Course Assessment-5-2024
outline The due date for submitting this assignment has passed.
Due on 2024-03-23, 23:59 IST.
Week 1 Score: 10/10=100%
(Contents) :
Planning the
Computer Assignment submitted on 2024-03-21, 15:15 IST
Program () 1) What will be the output of the following code: 1 point
print ("Python" * 3)
Week 2
(Contents): Python
Techniques Python*3
of Problem
PythonPythonPython
Solving ()
Error
Week 3 Yes, the answer is correct.
(Contents): Score: 1
Introduction Accepted Answers:
to Python () PythonPythonPython

Week 4 2) What will be the output of the following code? 1 point


(Contents): str = "My roll numeber is 29";
Conditional print(str.isalnum())
Statements
and Looping False
() True

Yes, the answer is correct.


Week 5 Score: 1
(Contents): Accepted Answers:
String False
Manipulation
()
3) What does the isalpha() method check in Python? 1 point

https://onlinecourses.swayam2.ac.in/cec24_cs01/unit?unit=25&assessment=96 1/3
4/23/24, 3:23 AM Programming in Python - - Unit 5 - Week 5 (Contents): String Manipulation

Lecture 1: Checks if the string contains only alphabetic characters


Introduction to
Checks if the string is in uppercase
string (unit?
unit=25&lesso Checks if the string is alphanumeric
n=26) Checks if the string is empty

Lecture 2: Yes, the answer is correct.


Basic Score: 1
Operations of Accepted Answers:
string (unit? Checks if the string contains only alphabetic characters
unit=25&lesso
4) What will be the output of the following code? 1 point
n=27)
text = "I Love Programming"
Lecture 3: print(text.count('o'))
String slices,
function and 0
methods (unit?
1
unit=25&lesso
n=28) 2
3
Lecture
Material (unit? Yes, the answer is correct.
unit=25&lesso Score: 1
n=29) Accepted Answers:
2
Quiz:
Assessment-
5) What is the output of the following code? 1 point
5-2024
(assessment?
str1 = 'String'
name=96) print (str1[1:3] + ' is interesting')

Week 6 tr is interesting
(Contents): st is interesting
Introduction str is interesting
to list. ()
string is interesting

Week 7 Yes, the answer is correct.


(Content): Score: 1
Introduction Accepted Answers:
tr is interesting
to tuples. ()

Week 8 6) Strings are immutable in Python. 1 point


(Contents):
False
Introduction
to True
dictionaries Yes, the answer is correct.
() Score: 1
Accepted Answers:
Week 9 True
(Contents):
Python 7) The index of the first character of a string is 0. 1 point
Functions ()
False
Week 10 True
(Contents) :
Yes, the answer is correct.

S 1

https://onlinecourses.swayam2.ac.in/cec24_cs01/unit?unit=25&assessment=96 2/3
4/23/24, 3:23 AM Programming in Python - - Unit 5 - Week 5 (Contents): String Manipulation

Python Score: 1
Modules () Accepted Answers:
True
Week 11
8) What will be the output of the following code? 1 point
(Contents):
print('abc'+ 3)
Input-Output
() abc + 3
abc abc abc
Week 12
(Contents): abc+abc+abc
Exception Error
Handling ()
Yes, the answer is correct.
Score: 1
Accepted Answers:
Error

9) What is the output of the following code? 1 point


my_string = "Dibrugarh"
my_string += " University"
print(my_string)

Dibrugarh University
Dibrugarh
University
Error
Yes, the answer is correct.
Score: 1
Accepted Answers:
Dibrugarh University

10) What is the output of the following code? 1 point


word = "Programming"
print(word[1:4])

Prog
Pro
rog
rogr

Yes, the answer is correct.


Score: 1
Accepted Answers:
rog

You were allowed to submit this assignment only once.

https://onlinecourses.swayam2.ac.in/cec24_cs01/unit?unit=25&assessment=96 3/3

You might also like