Advertisements
Advertisements
Consider the following string mySubject:
mySubject = "Computer Science"
What will be the output of the following string operation:
print(mySubject[:: -2])
Concept: undefined >> undefined
Consider the following string mySubject:
mySubject = "Computer Science"
What will be the output of the following string operation:
print(2*mySubject)
Concept: undefined >> undefined
Advertisements
Write a program to read a list of n integers (positive as well as negative). Create two new lists, one having all positive numbers and the other having all negative numbers from the given list. Print all three lists.
Concept: undefined >> undefined
Write a program to read a list of elements. Modify this list so that it does not contain any duplicate elements, i.e., all elements occurring multiple times in the list should appear only once.
Concept: undefined >> undefined
Consider the following tuples, tuple1 and tuple2:
tuple1 = (23,1,45,67,45,9,55,45)
tuple2 = (100,200)
Find the output of the following statement:
print(tuple1.index(45))Concept: undefined >> undefined
Consider the following tuples, tuple1 and tuple2:
tuple1 = (23,1,45,67,45,9,55,45)
tuple2 = (100,200)
Find the output of the following statement:
print(tuple1.count(45))Concept: undefined >> undefined
Consider the following tuples, tuple1 and tuple2:
tuple1 = (23,1,45,67,45,9,55,45)
tuple2 = (100,200)
Find the output of the following statement:
print(len(tuple2))Concept: undefined >> undefined
Consider the following tuples, tuple1 and tuple2:
tuple1 = (23,1,45,67,45,9,55,45)
tuple2 = (100,200)
Find the output of the following statement:
print(max(tuple1))Concept: undefined >> undefined
Consider the following tuples, tuple1 and tuple2:
tuple1 = (23,1,45,67,45,9,55,45)
tuple2 = (100,200)
Find the output of the following statement:
print(min(tuple1))Concept: undefined >> undefined
Consider the following tuples, tuple1 and tuple2:
tuple1 = (23,1,45,67,45,9,55,45)
tuple2 = (100,200)
Find the output of the following statement:
print(sum(tuple2))Concept: undefined >> undefined
Consider the following tuples, tuple1 and tuple2:
tuple1 = (23,1,45,67,45,9,55,45)
tuple2 = (100,200)
Find the output of the following statement:
p r i n t ( s o r t e d ( t u p l e 1 ) )
print(tuple1)Concept: undefined >> undefined
Write a program to input the names of n students and store them in a tuple. Also, input a name from the user and find if this student is present in the tuple or not. We can accomplish these by:
using the built-in function
Concept: undefined >> undefined
Every mode of transport utilizes a reservation system to ensure its smooth and efficient functioning. If you analyze you would find many things in common. You are required to identify any one mode of transportation and prepare a reservation system for it. For example, let us look at the Railway reservation system we talked about earlier. The complex task of designing a good railway reservation system is seen as designing the different components of the system and then making them work with each other efficiently. Possible subsystems are shown in Figure 1. Each of them may be modelled using functions.
Write a python code to automate the reservation needs of the identified mode of transport.

Railway reservation system
Concept: undefined >> undefined
Preeti celebrated her birthday with her family. She was excited to share the moments with her friend Himanshu. She uploaded selected images of her birthday party on a social networking site so that Himanshu can see them. After a few days, Preeti had a fight with Himanshu. The next morning, she deleted her birthday photographs from that social networking site, so that Himanshu cannot access them. Later in the evening, to her surprise, she saw that one of the images which she had already deleted from the social networking site was available with their common friend Gayatri. She hurriedly enquired Gayatri “Where did you get this picture from?”. Gayatri replied, “Himanshu forwarded this image a few minutes back”.
Help Preeti to get answer to the following question. Give justification for your answer so that Preeti can understand them clearly.
How could Himanshu access an image which I had already deleted?
Concept: undefined >> undefined
Preeti celebrated her birthday with her family. She was excited to share the moments with her friend Himanshu. She uploaded selected images of her birthday party on a social networking site so that Himanshu can see them. After a few days, Preeti had a fight with Himanshu. The next morning, she deleted her birthday photographs from that social networking site, so that Himanshu cannot access them. Later in the evening, to her surprise, she saw that one of the images which she had already deleted from the social networking site was available with their common friend Gayatri. She hurriedly enquired Gayatri “Where did you get this picture from?”. Gayatri replied, “Himanshu forwarded this image a few minutes back”.
Help Preeti to get the answer to the following question. Give justification for your answer so that Preeti can understand them clearly.
Had these images not been deleted from my digital footprint?
Concept: undefined >> undefined
Preeti celebrated her birthday with her family. She was excited to share the moments with her friend Himanshu. She uploaded selected images of her birthday party on a social networking site so that Himanshu can see them. After a few days, Preeti had a fight with Himanshu. The next morning, she deleted her birthday photographs from that social networking site, so that Himanshu cannot access them. Later in the evening, to her surprise, she saw that one of the images which she had already deleted from the social networking site was available with their common friend Gayatri. She hurriedly enquired Gayatri “Where did you get this picture from?”. Gayatri replied, “Himanshu forwarded this image a few minutes back”.
Help Preeti to get the answer to the following question. Give justification for your answer so that Preeti can understand them clearly.
Can anybody else also access these deleted images?
Concept: undefined >> undefined
List down the steps you need to take in order to ensure -
smart and safe Internet surfing.
Concept: undefined >> undefined
Neerja is a student of Class XI. She has opted for Computer Science. Neerja prepared the project assigned to her. She mailed it to her teacher. The snapshot of that email is shown below.

Find out which of the following email etiquettes are missing in it. Justify your answer.
- The subject of the mail
- Formal greeting
- Self-explanatory terms
- Identity of the sender
- Regards
Concept: undefined >> undefined
Suhana is down with fever. So, she decided not to go to school tomorrow. Next day, in the evening she called up her classmate, Shaurya and enquired about the computer class. She also requested him to explain the concept. Shaurya said, "Mam taught us how to use tuples in python". Further, he generously said, "Give me some time, I will email you the material which will help you to understand tuples in python". Shaurya quickly downloaded a 2-minute clip from the Internet explaining the concept of tuples in python. Using video editor, he added the text "Prepared by Shaurya" in the downloaded video clip. Then, he emailed the modified video clip to Suhana. This act of Shaurya is an example of:
Concept: undefined >> undefined
What is the advantage of preparing digital content in the Indian language using UNICODE font?
Concept: undefined >> undefined
