Chapter 6 The Browning Version | class 11th | Important Question for English Hornbill

Short Answer Type Questions

Q1. Where did Taplow meet Frank?
 
Ans. Taplow had been asked to do some extra work by Mr. Crocker Harris. He was waiting for the master in the school. Frank also came there and met Taplow.

Q2. What subjects does Taplow want to opt for? Why?

Ans. Taplow feels if his grades are good, he would opt for science. He feels science is more interesting than the study of classics.

Q3. What does Mr. Frank suggest Taplow to do because Mr. Crocker Harris is ten minutes late?
                                             
Ans. Frank asked Taplow not to wait for Mr. Crocker Harris and play golf but Taplow is really shocked and is afraid that Mr. Crocker Harris may follow him home or do something else.

Q4. Why does Mr. Frank envy Mr. Crocker Harris?
 
Ans. Mr. Frank envies Mr. Crocker Harris for the effect he has on the boys in the class. Mr. Crocker Harris does not tell the results before they are officially announced. And in spite of making students take extra work they still like Mr. Crocker Harris.

Q5. How does Mr. Crocker Harris differ from other masters in his reactions towards others?
 
Ans. Mr. Crocker Harris did not get pleasure out of giving pain. He was not a sadist. In fact he had no feelings. He was all dry like a nut. He seemed to hate the idea of people liking him.

Q6. Who is a sadist? Why is Taplow afraid of Mr. Crocker Harris even though the latter is not a sadist?
 
Ans. A sadist is a person who gets pleasure while inflicting pain on others. Taplow says that he would not be so frightened of Mr. Crocker Harris if he were a sadist. He would at least show his feelings. Mr. Crocker Harris was indifferent and was like a nut.

Q7. Which incident does Taplow narrate to prove the fact that Crocker Harris does not like ‘being liked’?
 
Ans. Taplow narrates the incident about one day when Mr. Crocker Harris made one of his classical jokes in the class which no one understood. Taplow laughed out of politeness. Instead of feeli
ng thankful, Mr. Crocker Harris asked Taplow to explain the joke to the class. This incident proved that Mr. Crocker Harris did not like ‘being liked’.

Q8. What is Taplow’s attitude towards Mr. Crocker Harris?
 
Ans. Taplow is respectful towards Mr. Crocker Harris and likes him even though he is afraid of him and dare not cut the extra work even on the last day of the term.

Q9. Does Frank seem to encourage Taplow’s comments on Crocker Harris?
 
Ans. Frank encourages Taplow to comment on Mr. Crocker Harris by cleverly asking Taplow several questions. He appreciated Taplow’s imitation of Mr. Crocker Harris and also asks him to repeat it.

Q. Who was Millie Crocker Harris? What was she like?
 
Ans. Millie Crocker Harris was the young wife of Mr. Crocker Harris. She was a thin woman in her late 30s. She was more smartly dressed than the other school masters’ wives.

Q10. How does Millie Crocker Harris send Taplow away?
 
Ans. On seeing Taplow, Millie Crocker Harris points out that her husband was at the Bursar’s so he could go away for a quarter of an hour. But Taplow does not move. Millie assures him that she would take the blame. She takes out a prescription and requests him to bring some medicines from the chemist for her.

Q11. How does Taplow react to Millie’s arrival?
 
Ans. Taplow is nervous. He is unable to control his emotions and whispers to Frank if he thinks she has heard their conversation. Taplow feels that if she tells Mr. Crocker Harris, he would lose his form.

Q12. What do you gather about Mr. Frank from the play?
 
Ans. Mr. Frank is a young science teacher. He does not like the subject he teaches. He also admits that he tells the result to the students before it is officially announced by the head master. He feels envious of Crocker Harris because Taplow likes him.

Long Answer Type Questions

Q1. What do you gather about Crocker-Harris from the play?
 
Ans. Crocker-Harris is a very strict and disciplined teacher. It is his last day at school. He is leaving the school for good. Yet he gives extra work to Taplow who is one of his students. Taplow has missed a day during the week. Crocker wants him to make it up. So he gives him extra work. He tells Taplow that he would come and see his work. Thus we see how strict Crocker is. His students are afraid of him, but they don’t dislike him. Their fear is tinged with respect, not with hatred. He never does any favour or disfavour to a student. He gives what one deserves. He never does anything that goes against the rules of the school. We can say he is an ideal teacher.

Q2. Comment on the attitude shown by Taplow towards Crocker-Harris.
 
Ans. Taplow is a student of Crocker-Harris. Crocker is a very strict and disciplined teacher. But he has his own principles. He is true to his duty. It is the last day of the term. Crocker is going to leave the school for good. Yet he gives Taplow some extra work to do. He does so because Taplow had missed a day during the week for being ill. Most teachers tell the students about their result before the headmaster declares it. But Crocker never does that. He is a man of principles. Taplow is a little boy. But he understands all this. He has all respect for his teacher. He is afraid of him but he does not dislike him. He loves to go and play but doesn’t dare to leave without Crocker’s permission. His fear is tinged with respect not hatred.

Q3. Does Frank seem to encourage Taplow’s comments on Crocker-Harris?
 
Ans. Both Frank and Crocker-Harris are teachers in Taplow’s school. Crocker is a very strict and disciplined teacher. He has his own principles. He never does any favour or disfavour to his students. He gives what one deserves. Students are scared of him but they don’t dislike him. They have deep respect for him. Frank feels jealous of Crocker. So he encourages Taplow to say things against Crocker and mock at him. But Taplow does nothing of the kind. His act of imitating Crocker is no sign of disrespect. It is simply an act of mimicry. It is only by way of humour that he does so. There is no disrespect in it. But the way Frank encourages Taplow to do it is not like a teacher. In trying to degrade Crocker-Harris, he degrades himself only.

Q4. Give a brief character-sketch of Taplow.
 
Ans. Taplow is a student of Mr. Crocker-Harris. He has to stay behind even on the last day of the school. Mr. Crocker-Harris has given him extra work to do because he had been ill for a day during the week and missed the class. It is already very late. Mr. Crocker-Harris has not come yet. But Taplow is afraid of Crocker. He dare not leave the class until Crocker comes. Although he is afraid of Crocker, he doesn’t dislike him. He laughs at Crocker’s poor joke only out of respect. We can say that Taplow is a very obedient student.

Q5. Give a brief character-sketch of Millie.
 
Ans. Millie is Mr. Crocker-Harris’s wife. She is a thin woman and is in her late thirties. She dresses herself in smart clothes. She sees Taplow imitating her husband’s voice. But she takes it lightly. She finds Taplow waiting for her husband. She can understand very well that Taplow likes to go and play like other boys. She tells him that her husband is at the Bursars. It could take him a lot of time there. Thus she indirecdy hints to Taplow that he could go and play. Even then Taplow dare not go. Then she sends Taplow to a chemist to get some medicine. Her chief purpose is not to get the medicine. She only wants to help the poor boy enjoy his freedom for some time at least. Thus we can say that Millie is a loving and intelligent woman of helping attitude.

Q6. Compare and contrast the characters of Mr. Crocker-Harris and Frank.
 
Ans. Crocker-Harris and Frank are both teachers in Taplow’s school. But they are poles apart in their characters. Crocker is a very strict teacher. He is a man of discipline. He has his own principles. He is true to his duty. He never does any favour or disfavour to his students. On the other hand Frank is not true to his duty. He teaches science. He himself does not like the subject he teaches, but he calls his students slackers. He is jealous of Crocker. He encourages Taplow to say things against Crocker and mock at him. It does not behave a teacher to encourage a student against another teacher. In trying to degrade Crocker-Harris he degrades himself only.

Q7. Taplow is shown to be a sincere and dedicated student. How far do you agree to it?
 
Ans. Taplow is a boy of sixteen. He is pure at heart. He is a boy with no whims and fancy of his own. It is his frank nature which make us appreciate him all the more. It is great to watch that even after absenting himself from school for a day, he is ready to wait the next day to meet his teacher. His patience is all the more most attractive feature. Taplow paints before us a picture of a boy with divine nature. Inspite of having many good qualities Taplow is also good at flattery. He is waiting for the teacher because he wants extra marks for the test. Still inspite of follies he behaves in a simple, innocent manner. Infact he has not been touched by modernism and has a pure, serene heart.

Read More

Chapter 5 The Ailing Planet: the Green Movement’s Role | class 11th | Important Question for English Hornbill

The Ailing Planet: the Green Movement’s Role Important Extra Questions and Answers Class 11 English Hornbill

The Ailing Planet: the Green Movement’s Role Extra Questions and Answers Short Answer Type’

Question 1.
What awareness according to Nani Palkhivala is growing worldwide? Why?
Answer:
The movement, which has gripped the imagination of the entire human race, is the worldwide consciousness that the earth itself is a living organism of which we are parts. It has its own metabolic needs and vital processes that need attention because the earth’s vital signs reveal its declining health.

Question 2.
What is propagated by the concept of sustainable expansion?
Answer:
The World Commission on Environment and Development popularized the concept of sustainable development in 1987. It stressed the idea of development that meets the needs of the present, without compromising the ability of future generations to meet their needs, i.e., without stripping the natural world of resources future generations would need.

Question 3.
What is the global concern raised by Mr Lester R. Brown that threatens the very existence of man?
Answer:
Mr Lester R. Brown has noted the earth’s principal biological systems as fisheries, forests, grasslands, and croplands the foundation of the global economic system. They provide us with our food and virtually all the raw materials for industries. However, human claims are exhausting these resources leading to the collapse and disappearance of fisheries and grasslands.

Question 4.
What are the reasons that are leading to depletion of our natural resources?
Answer:
In a protein-conscious and protein-hungry world, over-fishing is common. In poor countries, local forests are being destroyed in order to procure firewood for cooking. As a consequence, in some places, firewood has become so expensive that fuel costs more than the food.

Question 5.
What steps has the Indian government taken to ensure the protection of the environment? What is the impact?
Answer:
The Indian government through Article 48A of the Constitution of India provides that the State shall try to protect and improve the environment and safeguard the forests and wildlife of the country. But the law has not had the due impact as laws are neither valued nor enforced in India.

Question 6.
The population in the world is growing at an alarming rate. Comment.
Answer:
The growing world population is deforming the future of human society. Human population reached its first billion around the year 1800. By the year 1900, a second billion was added, and another 3.7 billion in the twentieth century. Presently, the world population is estimated at 5.7 billion. Every day the world population increases by one million.

Question 7.
Why is the growing population detrimental to the world’s progress?
Answer:
Development will not be possible if the present increase in numbers continues. The rich get richer and the poor produce more children, hampering their economic growth. More children do not mean more workers, merely more people without work. Excessive population perpetuates poverty. People would die of hunger unless population growth is controlled.

Question 8.
Why is our age the ‘Era of Responsibility’?
Answer:
A growing anxiety about the survival of our planet has surfaced for the first time in human history. The emerging new world vision a holistic view of the source of our survival has steered in the Era of Responsibility; an ecological view of the world as a complete whole and not a disconnected collection of parts.

The Ailing Planet: the Green Movement’s Role Extra Questions and Answers Long Answer Type

Question 1.
“The earth’s vital signs reveal a patient in declining health.” What are these ‘vital signs’?
Answer:

A three-year study using satellites and aerial photography conducted by the United Nations, warns that the environment has worsened so badly that it is ‘critical’ in many of the eighty-eight countries investigated.

A recent report of our Parliament’s Estimates Committee has highlighted the near disastrous exhaustion of India’s forests over the last four decades. India, according to reliable data, is losing its forests at the rate of 3.7 million acres a year. Large areas, officially designated as forestland, “are already virtually treeless”.

The actual loss of forests is estimated to be about eight times the rate indicated by government statistics.
The world’s ancient patrimony of tropical forests is now eroding at the rate of forty to fifty million acres a year, and the growing use of dung for burning deprives the soil of an important natural fertilizer. The World Bank estimates that a five-fold increase in the rate of forest planting is needed to cope with the expected fuel wood demand.

Question 2.
Various visionaries and academicians have warned against hazardous consequences if we do not wake up to our responsibilities towards the environment. Elaborate.
Answer:

Mr L.K. Jha, a member of an international commission which dealt with the question of ecology and environment, raised the question of whether we would leave our successors a parched planet with increasing deserts, impoverished landscapes and ailing environment. Mr Lester R. Brown in his thought-provoking book, The Global Economic Prospect, points out that the earth’s principal biological systems, i.e., fisheries, forests, grasslands, and croplands form the foundation of the global economic system.

In large areas of the world, human claims on these systems are reaching an unsustainable level, a point where their productivity is being impaired. Dr Myers warns against the depletion of forests as a result of which several species face extinction. James Speth, the President of the World Resources Institute, said that we are losing the forests at an acre-and-a-half to a second.

Question 3.
What are the four systems that sustain life on earth? What threats are they facing?
Answer:

Mr Lester R. Brown in his thought-provoking book, The Global Economic Prospect, points out that the earth’s principal biological systems, i.e., fisheries, forests, grasslands, and croplands form the foundation of the global economic system. In addition to supplying our food, these four systems provide almost all the raw materials for industry except minerals and petroleum-derived synthetics. It is because of this that fisheries collapse, forests disappear, grasslands are converted into barren wastelands and croplands deteriorate. In a protein-conscious and protein-hungry world, over-fishing is common. In poor countries, local forests are being demolished in order to procure firewood for cooking. Since tropical forests house various species of life, they face extinction as a result of its destruction.

Question 4.
“Fertility falls as incomes rise, education spreads, and health improves.” Justify.
Answer:

Undoubtedly, the growth of world population is one of the strongest factors disfiguring the future of human society. The present world population is estimated at 5.7 billion. Every four days the world population increases by one million. Development is not possible if the present increase in numbers continue. The rich get richer and the poor beget more children, which in turn makes them poorer. More children do not mean more workers, merely more people without work.

The choice is really between control of population and perpetuation of poverty. The population of India has crossed 1.3 billion today. This leaves little doubt that hordes of people would die in their hungry hutments unless population control is given topmost priority.Compulsory sterilization is not the solution. Masses should be educated so that they volunteer for family planning without introducing an element of compulsion. It ought to be understood that the choice is between control of population and continuation of poverty.

Read More

Chapter 4 Landscape of the Soul | class 11th | Important Question for English Hornbill

Landscape of the Soul Important Extra Questions and Answers Class 11 English Hornbill

Landscape of the Soul Extra Questions and Answers Short Answer Type

Question 1.
Briefly narrate the story of the Emperor and the Chinese artist.
Answer:

A painter Wu Daozi, who lived in the eighth century was asked to paint a landscape by the Tang Emperor Xuanzong, to decorate a palace wall. The artist concealed his work behind a screen, so that only the Emperor would see it. For a long time, the Emperor admired the wonderful scene.

One day the painter showed him a cave at the foot of the mountain, and said that a spirit dwelt there. The painter clapped his hands, and the entrance to the cave opened. He then entered the cave and the entrance closed behind him. Since then nothing is known of the artist or the painting as the painting vanished off the wall.

Question 2.
How did stories such as the one about Wu Daozi play an important role in China’s classical education?
Answer:

Such stories played a significant part in China’s classical education. They helped the master to guide his pupil in the right direction. They were not merely tales, but were deeply illuminating of the essence of art. The books of Confucius and Zhuangzi are full of such stories. They reveal that art was considered the essence of inner life and spirit in Asia.

Question 3.
Why did the artist agree to get his daughter married to the blacksmith?
Answer:

Initially the artist was against the blacksmith, Quinten Metsys, marrying his daughter. However, one day Quinten slyly sneaked into the painter’s studio and painted a fly on his latest panel, that was so realistic that the master tried to swat it away. The artist was so impressed that he admitted Quinten as an apprentice into his studio and let him marry his beloved.

Question 4.
What is the difference between the Chinese and European art?
Answer:

The Chinese and European art are different as the European art is trying to achieve a perfect, illusionistic likeness in Europe, and the Chinese the essence of inner life and spirit in Asia. While the European wants you to look at the landscape through his eyes, the Chinese painter wants you to enter it from any point, then travel in it. He creates a path for your eyes to travel up and down, then back again, in a leisurely movement.

Question 5.
How does shanshui express the Daoist view of the universe?
Answer:

Shanshui means ‘mountainwater.’ It expresses the Daoist view. The mountain is Yang and it stretches vertically towards Heaven. It is stable, warm, and dry in the sun, while the water is Yin. It is horizontal and resting on the earth, fluid, moist and cool. The interaction of Yin, the receiver, feminine aspect of universal energy, and Yang, active and masculine, is the fundamental belief of Daoism.

Question 6.
What is lacking in Shanshui?
Answer:

The third element, the Middle Void where their interaction takes place, is lacking in Shanshui. The Middle Void is indispensable. Hence nothing can happen without it. This is the reason why the white, unpainted space in Chinese landscape is important. This is also where Man finds a fundamental role, in that space between Heaven and Earth, he becomes the medium of communication between both poles of the universe.

Question 7.
How is the pranayama compared to the Middle void?
Answer:

The Middle Void is vital as nothing can happen without it. This is the reason why the white, unpainted space in Chinese landscape is imperative. This is also where Man finds a fundamental role, in the yogic practice of pranayama we breathe in, retain and breathe out. The suspension of breath is the Void where meditation occurs.

Question 8.
How did the theory of ‘brut art’ put forward by Jean Dubuffet get credence?
Answer:

French painter Jean Dubuffet challenged the concept of ‘art brut’ in the 1940s. Before that the art of the untrained visionary was of minor interest. At about the same time ‘an untutored genius was creating paradise’. This was none other than Nek Chand, who cleared a little patch of jungle to make himself a garden sculpted with stone and recycled material known to the world today as the Rock Garden, at Chandigarh.

Landscape of the Soul Extra Questions and Answers Long Answer Type

Question 1.
Narrate the tale of the Chinese Emperor and the artist. What message does the story convey?
Answer:

Tang Emperor Xuanzong asked the painter Wu Daozi, to make a landscape to decorate a palace wall. The artist had hidden his work behind a screen, so only the Emperor would see it. The Emperor, for a long time, admired the wonderful scene, discovering forests, high mountains, waterfalls, clouds floating in an immense sky, men on hilly paths, birds in flight. One day the painter showed him a cave, at the foot of the mountain.

He said that a spirit lived there. Just then, the painter clapped his hands, and the entrance to the cave opened. The artist said that it was infinitely beautiful inside and he entered the cave. The entrance closed behind him. Since then nothing has been known of Wu Daozi.

The story underlines the message that the Emperor was only interested appreciating the outer appearance of the painting but the artist makes known to him the true meaning of his work. The Emperor admires the territory while the artist is filled with the ‘spirit’ within.

Question 2.
Narrate the anecdote that brings out that Europeans endeavoured to achieve ‘a perfect, illusionistic likeness’.
Answer:

In fifteenth century lived a blacksmith named Quinten Metsys who fell in love with a painter’s daughter. The father, being an artist, would not accept a son-in-law who was a blacksmith. So Quinten crept into the painter’s studio and painted a fly on his latest board. It seemed so real that even the artist thought it was real and tried to swat it away.

It was then he realised what had happened. He immediately took Quinten as a trainee into his studio. Quinten then married his beloved and went on to become one of the most famous painters of his age.This story exemplifies what European form of art was trying to achieve. They wanted a perfect, illusionistic likeness.

Question 3.
How do the Chinese expect the people to view the horizontal scroll? Why?
Answer:

Unlike European art, Chinese art is meant to be metaphorical. An artist in China would not like the onlooker to look at a particular landscape from a specific angle. The Chinese painter does not choose a specific viewpoint. One can enter his landscape from any point, and then travel in it. The artist creates a course for your eyes to journey up and down, then back again, at an unhurried pace.

This is even truer of the horizontal scroll. The action of slowly opening one section of the painting, then rolling it up to move on to the other, adds a dimension of time which is unknown in any other form of painting. It necessitates the active contribution of the viewer. It is the viewer who decides at what speed he will travel through the painting. The interaction is physical as well as mental. The Chinese painter wants you to enter his mind. The landscape is an inner one, a spiritual and abstract.

Question 4.
What was the revolutionary idea in art that was put forward by Jean Dubuffet? How did an Indian artist support his theory?
Answer:

Before the French painter Jean Dubuffet, challenged the concept of ‘art brut’ in the 1940s, people were not interested in the art of the untutored creative thinkers. It was he who defied this concept. As a consequence this ‘outsider art’ has steadily become the fastest growing area of interest in modem art worldwide. He felt that there are artists who have received no formal training, yet show talent and artistic insight. Their works are a motivating contrast to a lot of conventional ones.

At the time Dubuffet was advocating his theory, in India ‘an untutored genius was creating paradise’. Nek Chand made one of the biggest contributions by clearing a little patch of jungle to make himself a garden sculpted with stone and recycled material. This garden is known to the world today as the Rock Garden at Chandigarh.

Question 5.
Nek Chand’s work is acclaimed as the work of a genius and is appreciated world over. Justify.
Answer:

Nek Chand’s work is acknowledged as India’s biggest contribution to outsider art. The fiftieth issue of Raw Vision, a UK-based magazine that initiated the outsider art publications, featured Nek Chand, and his Rock Garden sculpture ‘Women by the Waterfall’ on its anniversary issue’s cover. It reported how Nek Chand had used every thing from a tin to a sink to a broken down car to create a work of art that took him to the pinnacles of glory.

The Swiss Commission for UNESCO applauded his art as ‘an outstanding testimony of the difference a single man can make when he lives his dream’, and decided to honour him. They decided to put up an exhibition of his works. The five-month interactive show, ‘Realm of Nek Chand’, is to begin in October. It is to be held at leading museums in Switzerland, Belgium, France and Italy. However, the greatest honour for him is seeing people enjoy the creation.

Read More

Chapter 3 Discovering Tut: the Saga Continues | class 11th | Important Question for English Hornbill

Short Answer Type Questions

Q1. Who was Howard Carter? What was his discovery?   

Ans. Howard Carter was a British archaeologist. After years of searching he discovered King Tut’s tomb in 1922 over 3300 years after his death. Tut died at the age of 19 but his death was a mystery for all. He was the last ruler of his powerful family that ruled Egypt for centuries. People believed that the king died in mysterious circumstances and his death may involve every possibility of murder.

Q2. Why did King Tut’s mummy have to undergo CT scan?

Ans. The mummy of King Tut has earned worldwide fame for the riches it was buried with. Further there arose a great controversy about the manner of his death and his age at the time of death. Keeping in the view this controversy, King Tut’s body was ordered to be scanned to examine the delayed medical mysteries about his life and death.

Q3. Which questions still linger about Tut?

Ans. The two biggest questions that still linger about Tut are how did he die and how old was he at the time of his death? He was the last of his family’s line, and his funeral was the death rattle of a dynasty but the particulars of his passing away and its aftermath were unclear.

Q4. Why was Tut’s dead body subjected to CT scrutiny?

Ans. Tut’s dead body was subjected to X-rays in 1968 and CT scan in 2005 to ascertain the cause of his death.

Q5. In 1968 what was the startling fact revealed by a professor of anatomy about king Tut?

Ans. In 1968, more than 40 years after Carter’s discovery of king Tut’s tomb, a professor of anatomy X-rayed Tut’s mummy. He revealed an astonishing fact that beneath the resin that layers his chest, his breast-bone and front ribs are missing. It startled everyone.

Q6. What did the tourists do at that time?

Ans. The tourists from around the world queued up as usual all afternoon into the narrowed rock-cut tomb. They lined up to pay their homage to king Tut. They watched the murals on the walls of the burial chamber. Some visitors read from guidebook. Others stood silently peering at Tut’s gilded face.

Q7. Wh
o did point out that the mummy was in a bad condition? Who was held responsible for it?

Ans. Zahi Hawass, Secretary General of Egypt’s Supreme Council of Antiquities, bent over the mummy and watched it very carefully. Then he said the mummy is in a very bad condition because of what Carter did in the 1920s. It was in 1922, Carter discovered king Tut’s tomb.

Q8. What was the fate of the contents of Tut’s mummy?

Ans. For over 80 years after the discovery ofTut’s tomb in 1922, surprisingly all its contents were complete. They remain the richest royal collection everyfound till 2005. They have now become part of the pharaoh’s legend.

Q9. Why did the artifacts cause a sensation at the time of discovery?

Ans. The artifacts discovered surprised all present there. They were all made of pure gold. Their shine was enteral and never fading. This eternal brilliance of the artifacts meant to guarantee revival from grave.

Q10. What was king Tut’s demise a big event, even by royal standards?

Ans. King Tut’s death was of course a big event. Even by royal standards he was the last ruler in his family line. His funeral was the death bell of a dynasty that ruled in Egypt for centuries. The big event is because of the fact that he died unexpectedly at young age. The particulars of his passing and its aftermath are not clear.

Q11. Why did some people think the King Tut’s untimely death as the Pharaoh’s curse?

Ans. After king Akhenaten’s death a mysterious ruler became the king for a short while and died. Then a very young Tutankhaten took the throne. He changed his name to Tutankhamun, “Living image of Amun.” He restored the worship of Amun whose images were broken and temples closed by the Pharaoh. Thus king Tut disturbed the Pharaoh. Akhenaten and his curse – death Akhenaten had befallen on Tut causing his untimely death in his late teens.

Q12. What problem did Carter face when he reached the mummy of King Tut? How did he find a way out?  

Ans: When Carter alongwith his men were working at the tomb of King Tut, they found that the ritual resins had hardened. They had cemented and the mummy of King Tut could not be taken out. The solidified material could be removed through chisels. The mummy was cut free. His men removed Tut’s head and severed every major joint. Then they were kept in a box on a layer of sand. He defended his act lest the mummy should not fall into the hands of thieves for getting gold.

Q13. List some adornments on Tut’s body. Why had the adornments been buried along with the body?

Ans. The mummy of Tut was decorated with precious collars, inlaid necklaces, rings, bracelets, amulets and a ceremonial apron. There were sandals, sheaths for fingers and toes and the inner golden coffin and mask. All of them were made of pure gold. According to the beliefs it was thought that they could take their riches with them to the great beyond.

Q14. How did Carter defend his action of cutting the mummy free?

Ans. Carter in his defense wrote later that if he hadn’t cut the mummy free, thieves would have avoided the guards and ripped it apart to remove all the gold. The mummy had been kept with a lot of wealth, in the form of gold ornaments, etc.

Q15. How can C.T scan prove more effective than X-Rays?

Ans. C.T scan can prove more effective than X-Rays because it produces hundreds of X-Rays in cross-section which are put together like slices of bread to create a three dimensional virtual body.

Q16. How was Tut’s body carried to the C.T scanner?

Ans. On the night of the scan, workmen carried Tut from the tomb in his box. Like pallbearers they climbed ramp and a flight of stairs into the swirling sand outside. Then they rose on a hydraulic lift into the trailer that held the scanner.

Q17. How was King Tut’s mummy scanned by the CT scanner?

Ans. In order to remove the mystery over the death of King Tut, a portable CT scanner was taken in a trailer to the sandy area near Tut’s tomb. His body was carried there from his tomb in a box. The CT machine scanned the mummy from head to toe, creating 1700 digital X-ray images in cross-section. His entire body was scanned in 0.62 millimetre slices.

Q18. What snag did the million dollar scanner develop? How was it set right?

Ans. The million dollar scanner had developed a snag because of sand in a cooler fan. Eventually substitute fans worked well enough to finish the procedure.

Q19. Explain the statement, “King Tut is one of the first mummies to be scanned – in death, as in life…”

Ans. It means that the mummy of King tut was the first one ever to be scanned. The purpose was to reveal the mysteries relating to the period when he was alive. Secondly, it also helped find out the cause of his death in mysterious circumstances. The death occurred only nine years after his taking the throne.

Q20. List the deeds that led Ray Johnson to describe Akhenaten as Wacky.

Ans. Akhenaten was a crazy and rash ruler. He attacked Amun – a major God, broke his statues and closed his temples. He even shifted the religious capital from the oddity of Thebes to the new city of Akhetaten.

Q21. What did the CT scan of Tut’s mummy reveal?

Ans. CT scanning gave surprising as well as fascinating images of Tut’s body. The image of a gray head appeared on the computer screen. Neck bones appeared quite clearly. Other images of Tut’s body appeared on the screen. They included a hand and several views of rib-cage and the skull.

Q22. “Curse of the Pharaoh”, joked a guard nervously. What is the curse and why did the guard say so?

Ans. The curse of the Pharaoh – death or misfortune falling upon those who disturbed him, is considered to be true. The fans of the CT scan machine got stuck with the sand dust and stopped working during scanning of the mummy. Then the guard jokingly said that it was the curse of the Pharaoh. Later another pair of white plastic fans were arranged which worked well enough.

Long Answer Type Questions

Q1. Who was King Tut? Why was his mummy taken out for a C.T. Scan?

Ans. King Tut was last Pharaoh of his family line which ruled Egypt for centuries. He was a very young boy when he took the throne of Egypt in 1332 B.C. The boy king soon changed his name to Tutankhamun, “living image of Amun,” and restored the old ways of religious belief. He ruled for about nine years and then died unexpectedly in 1322 B.C. King Tut’s death was a big event. He was the last Pharaoh of his family line. His funeral was the death bell of his dynasty. But the particulars of his death and the after happenings are not clear.

King Tut was buried in the ancient Egyptian cemetery known as the Valley of the Kings. Tut was loaded with glittering goods: precious neckbands, engraved necklaces and bracelets, rings, amulets, apron, sandals, sheaths, for fingers and toes and iconic inner coffin and mask all of pure gold.

Carter discovered Tut’s tomb for more than 3300 years after his death in 1922 and in 2005 his mummy was taken out of the tomb for the first time for his C.T. scan. The probe by the C.T, scanner was to look into the delayed medical mysteries of this little understood young ruler about his life and death.

Q2. What problems did Howard Carter face with regard to Tut’s mummy? How did he solve them?

Ans. Howard Carter, a British archaeologist, discovered King Tut’s tomb after years of searching in 1922. He found fabulous treasure in the tomb, even though it had been ransacked earlier. The treasure consisted of golden coffin, gold ornaments and even petty things of everyday need.

Carter found three nested coffin. In the first, he found the garlands of leaves and flowers. But when he reached the mummy, he ran into trouble. The resins spread below Tut’s body had hardened. The coffin was of solid gold. Neither human force nor the scorching sun could loosen the body. So Carter used chisel and hammer to remove the resins. He had little choice. Tut’s mummy also had to be removed part by part. Having taken .out the gold coffin, the body parts were reassembled, put in a wooden box and placed in the tomb again.

Q3. Sum up the main events of the lesson ‘Discovering Tut …’

Ans. King Tut was just a teenager when he died. He was the last heir of a powerful dynasty. His rule lasted for just nine years. The mystery of his early and unexpected death is still unresolved. His tomb was discovered in 1922 by a British archaeologist, Howard Carter. He found a big treasure in the form of ornaments, gold coffin and other everyday things—all of pure gold. The pharaohs or the Egyptian Kings believed that they would need gold as well as things of daily need, food and wine in afterlife. So they got them buried along with their mummies or dead bodies preserved with chemical pastes.

Tut’s untimely death in his late teens raised curiosity to know the cause. So 60 years later, his mummy was X-rayed. In 2005, this body was put to CT scanning. But to this day the details of his death and aftermath are unclear.

Q4. In 1922 Tut’s tomb was discovered. Much of the treasure buried in the tomb had already been plundered. Materialistic attitude of man does not allow even the dead to sleep in peace. Will there be any end to this attitude?

Ans. For a handful of gold man can go to any extent. Tut’s mummy was buried deep with a lot of gold and other things believing that the dead pharaoh would need those things in the afterlife. It was a matter of faith. When Tut’s tomb was discovered, much of the treasure had already been looted. The thieves did it being driven by the mad force of materialism. Materialistic attitude attaches no importance to beliefs, religious sentiments and social rites and rituals. Ethics and morals have no sanctity for them. Their aim is to get wealth by any means. This materialistic attitude will never see its dawn. God Himself may advise man to reject materialism and tell him that all paths lead to death and there is no use to perpetuate ill deeds. This sermon will have no effect and materialistic attitude will get sharpened day by day.

Read More

Chapter 2 We’re Not Afraid to Die…if We Can All Be Together | class 11th | Important Question for English Hornbill

Short Answer Type Questions

Q1. What preparations did the author and his wife make for their round to the world sea-voyage?

Ans. The narrator and his wife wanted to ‘duplicate’ the round—the world voyage made 200 years earlier by Captain James Cook. They had been making formidable preparations for the last 16 years. First of all they got a boat especially designed and professionally built for this purpose. It was a 23 metre, 30 tonne wooden-hulled boat. They tested it for months in the roughest weather. They were both mentally and physically prepared to undertake their exceptionally long and challenging sea-voyage.

Q2. When and how did they encounter their first troubles during the long voyage?

Ans. Everything went on well till they sailed down the west coast of Africa and reached Cape Town. The trouble started on the second day out of Cape Town. They began to encounter strong gales. They blew continuously for the next few weeks. Gales didn’t worry them. But the size of the waves was alarming—up to 15 metres. They rose as high as up to the main mast. They expected the weather to improve on the New Year’s Day. Sadly the weather changed but for the worse.

Q3. What were the first indications of the ‘impending disaster’ that ultimately struck them on January 2?

Ans. The first indication of the impending disaster came at about 6 p.m. on January 2. An ominous silence prevailed all around. The wind dropped. The sky immediately grew dark. Then came a growing roar. A huge vertical wave, almost twice the height of the other waves, came roaring towards the ship. These were the indications of the coming disaster.

Q4. How did the first ‘disaster’ strike the ship?

Ans. On New Year’s Day the weather changed for the worse. The waves were gigantic. Strong gales did trouble them. As the ship rose to the top of each wave, they could see endless huge waves. These were rolling towards them. The howling of the wind and the spray was painful to the ears. The sky grew dark. A torrent of green and white water broke over the ship. The captain was thrown overboard.

Q5. What precautions did the narrator take when huge waves struck the boat on January 2?     
       
Ans. Huge waves came rolling towards the boat. The howling of gales and spray was painful to the ears. First of all, they decided to slow down the boat. The storm jib was dropped. Heavy mooring ropes were looped across the stern. They went through their life-raft drill. They attached lifelines. Oilskins and life-jackets were donned. Larry and Herb were continuously pumping out the water like madmen.

Q6. How did the narrator accept his ‘approaching death and why was he still peaceful’?

Ans. The narrator saw a torrent of green and white water breaking over the ship. His head had smashed into the wheel. He felt himself flying overboard and sinking below the waves. He was losing consciousness. He accepted his approaching death without murmuring. He felt quite peaceful even when death was approaching and Wavewalker was near capsizing.

Q7. How did the narrator hurt himself on January 2?

Ans. Wavewalker was capsizing. Her masts had fallen. Huge waves struck the boat upright. The narrator grabbed the guard rails. He sailed through the air into Wavewalker’s main boom. Waves tossed him around the deck like a rag doll. His left ribs cracked and his mouth was filled with blood and broken teeth.

Q8. Who were Larry and Herb? What role did they play?  

Ans. Before heading east from Cape Town, the narrator employed two crewmen. They were Larry Vigil and Swiss Herb Seigler. They were to help them ‘to take one of the world’s roughest seas, the Southern Indian Ocean. Larry and Herb did their job quite well. When the gigantic waves struck Wavewalker, they continued pumping water out of the boat.

Q9. How did Sue hurt herself and how did she bear the injury?

Ans. The narrator crawled into the children’s cabin to find out if they were safe. Sue told him that her head was hurt a bit. He saw a big bump over her eyes. Sue’s head had swollen alarmingly. She showed a deep cut on her arm. But she didn’t want to worry them when they were trying to save them all.

Q10. Describe the situation on the morning of January 3.

Ans. By morning on January 3, the situation showed a little improvement. Pumps had been working round the clock. The water level was sufficiently under control. The crewmen could take two hours’ rest in rotation. But there was still a tremendous leak somewhere below the waterline. No doubt, they had survived for 15 hours since the wave hit Wavewalker. But it would not hold long enough for them to reach Australia.

Q11. Why and when did the captain send ‘May day calls’? What was the response?

Ans. On January 2 at 6 pm Wavewalker was hit by a gigantic wave. The captain and the crew tried their best to pump water out and steer the ship to safety. When nothing seemed to work well, May-day calls or SOS signals were sent for rescue and help. But they didn’t get any replies. It was not surprising in that remote corner of the world.

Q12. Describe the situation on January 4. Why did the narrator and Mary feel that ‘the end was very near’?

Ans. On January 4, after 36 hours of continuous pumping, they could pump the water out. Mary found some corned beef and biscuits. They ate their first meal in almost two days. But their respite was short-lived. At 4 pm black clouds began building up behind them. The wind was back to 40 knots and the wave rose high. By the morning of January 5, the situation became again desperate. The narrator and Mary sat together holding hands in the evening. Both of them felt that the end was very near.

Q13. How and when did Wavewalker ride out the storm? How did the narrator feel at that time?

Ans. By the morning of January 6, the wind eased. The narrator was back in the chart room and read on the sextant. They were somewhere in 1, 05,000 kilometres of ocean searching for a 65 kilometre-wide island. At about 2 pm he went on deck. He asked Larry to steer a course of 185 degrees. If they were lucky, they could expect to see the island at about 5 pm. Then with a heavy heart, he went below and dozed off. When he woke up at 6 pm, he knew they must have missed the island.

Q14. Why did Jonathan ask for a hug and called him the best daddy and the best captain in the world?
  
Ans. The children were excited. They saw the island before the narrator. Jonathan asked if he could have a hug. The narrator was surprised. His son declared that he was “the best daddy in the whole world and the best captain”. The narrator replied: “Not today”. Suddenly, the children shouted that the island was in front of them and it was as big as a battleship.

Q15. Describe Ile Amsterdam. How did its inhabitants behave with the newcomers?

Ans. When the narrator rushed on the deck he was relieved to see the outline of lle Amsterdam. It was a French base. It was ‘a black piece of volcanic rock’. It had little vegetation but still it appeared to be ‘the most beautiful island in the world’. They anchored offshore for the night. The next morning all 28 inhabitants of the island cheered them and helped them ashore.

Q16. What did the narrator think of on landing at Ile Amsterdam? Why?
 
Ans. On landing at Ile Amsterdam, the narrator’s thoughts were full of Larry and Herbie, his crew members who remained cheerful and optimistic throughout the hardships. He thought of his wife also, who stayed at the wheel for all those crucial hours? He also thought of his daughter, who had been so brave all through the ordeal and had not bothered about her head injury.

Q17. How can you say that Suzanne’s injuries were serious?
 
Ans. Suzanne’s injuries were serious because she had to undergo six minor surgeries to remove a recurring blood clot between her skin and skull. She had also injured her arm and had two black eyes.

Q18. Justify the title: “We’re Not Afraid to die …”

Ans. The lesson is aptly and logically titled: “We’re Not Afraid to Die …” These were the words of Jonathan, the son of the narrator. Like his brave father, Jon declared that they were not afraid to die if they could be all together—Daddy and Mummy and Sue and he. These words sum up the courage shown by the narrator, his
wife and children and, of course, the crewmen.

Q19. “We’re Not Afraid to Die” is a saga of patience and bravery. Comment.

Ans. “We’re Not Afraid to Die” is the story of rare courage and perseverance of the narrator’s family. It comprised his wife and children, with the crewmen. All the dangers and disasters were confronted with patience, courage and determination. Never did anybody shake or waver even for a second. Even the children showed an exemplary courage. They were not afraid to die. They were ready to die with their daddy and mummy together.

Q20. “Optimism and courage help to tide over difficulties”. How did the narrator succeed in searching the small island?
 
Ans. Despite the lost compass and a faulty compass, the author did not lose hope. He used his intelligence to estimate the influence of the westerly currents which flowed through that part of the Ocean. He asked Larry to steer a course of 185 degrees and remained optimistic about spotting the island at about 5 pm.

Q21. Why do you think people undertake such adventurous expeditions in spite of the risks involved?
 
Ans. People undertake such adventurous expeditions due to two reasons. They have the passionate thrive for risk, thrill and uncertainty and they push their limits of skill and endurance. They seek such adventures for pure joy and exhilaration. They also want to do certain things for attaining name, fame and recognition.

Long Answer Type Questions

Q1. Describe in brief how the voyage began in July 1976 from Plymouth, England and ended at a small island Isle Amsterdam in the South Indian Ocean.

Ans. The narrator wanted ‘to duplicate’ the round-the-world voyage made 200 years earlier by Captain James Cook. For the past 16 years they had been making preparations. They got a boat professionally built for this purpose. It was a 23 metre, 30 tonne wooden hulled boat. It had been tested for months in the roughest weather. The first leg of their 1, 05,000 kilometre journey passed pleasantly. They sailed down the west coast of Africa to Cape Town.

Their troubles started on the second day out of Cape Town. They encountered strong gales. Waves rose as high as their main mast. The boat was slowed down. The storm jib was dropped. Heavy ropes were looped across the stern. Lifelines were attached, oilskins and life jackets were donned. Wavewalker was near capsizing. Sue got a big bump over her eyes. The narrator was tossed over the deck. His left ribs cracked and teeth were broken. By morning on January 3, Larry and Herb brought the water level sufficiently under control.

On January 4, they received some respite. The situation was again quite grim. Jon asked if they were going to die. They were not afraid of dying if they could all die together. But by the morning of 6 January, Wavewalker rode out (of) the storm. lle Amsterdam was just in front of them. The next day all 28 inhabitants cheered and helped them ashore.

Q2. Describe the steps taken by the captain and the crewmen to protect the boat from the storm and the gigantic waves. Were they successful?

Ans. Just on the second day when they left Cape Town, Wavewalker began to face all kinds of troubles. Strong gales lashed it for the next few weeks. The size of the waves was really alarming. They went up as high as the main mast. The captain took immediate steps to save the boat. The boat was slowed down. The storm jib was dropped. Heavy mooring ropes were lashed across the stern. Lifelines were attached. Oilskins and life-jackets were donned. A tremendous explosion shook the deck. A torrent of green and white water broke over the ship. Wavewalker was near capsizing. Her masts had fallen flat. Waves tossed him around the deck like a rag doll. Larry and Herb continued pumping water out like madmen. Waterproof covers across the open holes were covered. Most of the water was now being thrown over the sides.

All the urgent steps were taken. Fortunately, they proved quite effective. By the morning of January 6, the wind eased. Wavewalker rode out storm. But still it couldn’t hold for long to reach Australia. Hence, the search for islands began. In the end, Wavewalker had a cheerful landing at lle Amsterdam.

Q3. Describe the behaviour of the narrator and his family, particularly of his children Jon and Sue, during the voyage.

Ans. The narrator, his wife and children, set sail from Plymouth, England with great hope, excitement and determination. The narrator was a 37-year-old businessman. He had dreamt of duplicating the round-the-world voyage made 200 years ago by Captain James Cook. He had worked hard in sharpening his seafaring skills in British waters. The first leg of their journey passed pleasantly. Their troubles started when they moved out of Cape Town. But even hostile weather couldn’t dampen their spirits. Though the weather changed for the worse on the New Year’s Day, they all participated in its celebra
tions.

The captain really showed his heroic qualities. He was thrown overboard and sinking below the waves. He didn’t panic. His left ribs cracked. His mouth was filled with blood and broken teeth. Somehow, he found the wheel and hung on. Even the behaviour of the crewmen Larry and Herb was quite praiseworthy. They continued pumping water out like madmen. The narrator’s wife Mary didn’t panic either. She only cried “We’re sinking”.

Jonathan and Sue proved that they were the children of brave and adventurous parents. Jon declared that they were “not afraid of dying if they could all die together”. The children were really excited when they saw the lle Amsterdam. Now the narrator was not an ordinary father. He was “the best daddy in the whole world—and the best captain”.

Q4. What do you think of the narrator as a captain? How did the crew and the family members show courage during distress?
 
Ans. This is a story of human endurance, selflessness and courage in the face of adversity. Traditionally, the captain of the ship must go down with it and attempt only to save the passengers. However, in this story, we see other traits in the narrator which make him a good captain.

The narrator was able to think rationally, prioritize and recall important information under distress. He was able to recall the backup electric pump, waterproofed the ship and performed repairs as required, identified nearest land/port and performed intense calculations despite the lack of proper equipment, did not convey his fears to his crew and presented a confident face throughout enhancing the morale of his team.

The narrator’s family and crew showed unconditional team spirit during adversity. His wife helped with the navigation of the ship while his children offered moral support. The crew members Larry and Herb worked tirelessly and did not abandon ship.

Despite their young years, Jonathan and Suzanne showed courage and optimistic fervour. Suzanne did not bother her parents with her injuries no matter how extensive they were. She also made a card for her parents to show her love and gratitude. Jonathan claimed he was not afraid even to die if he were with his family.

Read More

Chapter 1 The Portrait of a Lady | class 11th | Important Question for English Hornbill

Short Answer Type Questions

Q1. Describe the grandmother in your own words. 

Ans. The grandmother was a deeply religious woman. She was also kind hearted. She was not pretty to look at, yet she was beautiful. She was graceful and dignified in her bearing. She had perfect control over her emotions. She used to feed the dogs and birds.

Q2. How were the narrator and the grandmother good friends in the village?

Ans. Grandmother woke him up every morning and got him ready for school. She would bathe and dress him up. She gave him breakfast, got him his slate, ink-pot and accompanied him to school. While he learnt at school, grandmother used to read the scriptures in the temple. When the school was over, they would walk back home together and feed the village dogs on the way.

Q3. What was the turning point in their friendship?

Ans. Their arrival in the city was the turning point in the friendship of the author and the grandmother. She no longer accompanied him to school as he used to go by bus. She could not help him in his studies. They saw less of each other. The common link of friendship was snapped and the distance grew.

Q4. Why was the author’s grandmother unhappy with the city education?

Ans. The grandmother did not like the teaching at English school in the city. She was sad that they did not teach anything about God and the religious scriptures. Nor was she interested in science. She hated music lessons given in the school.

Q5. Why did the grandmother hate music?

Ans. Grandmother considered that music was indecent and was meant only for harlots and beggars. It was not meant for gentle folk or school children from respectable families.

Q6. Draw a comparison between village school education and city school education.       

Ans. In the city school English and Science were taught. Music was also one of the subjects. There was no teaching about God and scriptures. The village school was attached to a temple. The priest himself acted as the teacher and taught the children the alphabet and the prayer.

Q7. What used to be the happiest moments of the day for the grandmother?

Ans. The happiest moment of the day for grandmother was the time when she would feed the sparrows. In the afternoon, she sat in the verandah breaking the bread into little bits. Hundreds of sparrows collected around her. Some came and perched on her legs, others on her shoulders. Some even sat on her head. She smiled but never shooed them away. This used to be happiest moment of the day for her.

Q8. What was “the last sign” of physical contact between the author and the grandmother?

Ans. When the author was going abroad for further studies, his grandmother came to see him off at the railway station. She kissed his forehead silently. That was the last sign of physical contact between the author and the grandmother as he thought that at her age one could never tell whether he would find her alive after five years.

Q9. How did the grandmother celebrate the homecoming of her grandson?

Ans. Grandmother was overjoyed at the homecoming of her grandson. She collected the women of neighbourhood, beat the drum and sang for hours about the homecoming of warriors. She even forgot to pray.

Q10. Why did the grandmother stop talking before her death?

Ans. The old lady was taken ill. She had a mild fever. The doctor told her that she would be alright soon. But the grandmother declared that her end was near. She forgot to pray the last evening. She was not going to waste any more time talking to them.

Q11. What could have been the cause of grandmother’s falling ill?       

Ans. When the author came back from abroad after five years, grandmother collected the women from the neighbourhood. She kept singing and thumping a drum for several hours. This overstrained her body and she fell ill.

Q12. How did the sparrows mourn the death of grandmother?  

Ans. Hundreds of sparrows gathered around grandmother’s dead body. They did not chirrup and touch the breadcrumbs thrown to them. They seemed to mourn her death in silence and flew away when her body was taken away for cremation.

Q13. How can you say that the grandmother was a kind- hearted woman?

Ans. Grandmother was a kind-hearted woman. When she lived in the village, she used to feed dogs. When she came to the city, there were no dogs in the streets. So she took to feeding sparrows in the courtyard.

Q14. The grandmother has been portrayed as a very religious lady. What details in the story create that impression?

Ans. Her lips were always moving in silent prayer. Her one hand was always telling the beads of her rosary. She also read scriptures at the village temple. When she knew her end was near, she lay peacefully in bed praying and telling her beads till death.

Long Answer Type Questions

Q1. Describe the narrator’s grandmother as a very religious and kind-hearted woman.

Ans. The writer’s grandmother was a very religious and kind-hearted woman. She is a God-fearing woman and feels delight in reading scriptures. In the temple she has the habit of reading the scripture till her grandson remains in the school. In the house she was always busy in telling the beads of her rosary. Her lips always moved in silent prayer. When she used to bathe her grandson, she would say her prayers in a singsong manner so that the author would learn them by heart. She kept on praying and telling the beads of her rosary till her last breath.

She always treated her grandson with love and affection. She used to feed the village dogs with stale chapattis. When she moved to the city, she took delight in feeding the sparrows. They would perch on her legs, shoulders and head but she never shooed them away. Her joy knew no bounds, when her grandson returned from abroad. She was a woman of noble nature, kind and tender heart.

Q2. Write a character sketch of the author’s grandmother

Ans. The author’s grandmother was an affectionate and caring lady. She had boundless love for her grandson. When they lived in the village, she would wake him up in the morning and get him ready for school. She accompanied
him to school. While the author sang alphabet with other children, she sat inside the temple reading scriptures. They would walk back home after the school.

The grandmother was kind and benevolent. In the village she used to feed dogs. When she came to the city, there were no dogs in the streets. So she took to feeding the sparrows. In the afternoon, she would sit in the verandah, breaking the bread into small bits. Hundreds of sparrows would collect round her. Some even sat on her head. She smiled but never shoo’d them away.

The grandmother was a religious lady. Her lips were always moving in silent prayer. Her one hand was always telling the beads of her rosary. When she was in the village, she went to the temple to read scriptures. When her end was near, she lay in bed praying and telling her beads till death stole upon her.

The grandmother was a strong woman. When the friendship between her and the author was snapped and they saw less of each other, she bore all this ungrudgingly. Even when the author decided to go abroad for further studies, she did not show any feeling.

Q3. How did the grandmother receive the author when he returned from abroad?

Ans. When the author went abroad for higher studies, the grandmother went to the railway station to see him off. The author thought that it would be his last meeting with her. But he was wrong in his supposition. When he returned after five years, she came to the railway station to receive him. She celebrated his home-coming in a grand way.

In the evening she collected the women of the neighbourhood, got an old drum and started singing. She went on doing this for several hours and overstrained her. The next morning she was taken ill and she knew that her end was near. But she went on praying and telling her beads. Then her lips stopped moving and the rosary fell from her lifeless fingers. A peaceful pallor spread on her face and she was dead.

Q4. The grandmother herself was not formally educated but was serious about the author’s education. How does the text support this?

Ans. Although the grandmother had no proper schooling and was not formally educated but she was serious about the author’s education. The author’s parents had shifted to the city. He lived in the village with his grandmother. She would wake him up in the morning and get him ready for school. She would accompany him to the school and back. When the author’s parents were well- settled in the city they called them also. The author was sent to an English school.

Now his grandmother could not come to school with him. She continued to wake him up and get him ready for school. When he came back she would ask him what the teacher had taught him. She could not help him with his lesson. She was distressed that there was no teaching about God and the scriptures. She was disturbed when she was told that they were being given music lessons at school, but she said nothing. Later, she did not get sentimental when the author decided to go abroad for further studies. Actually, she did not want to stand in the way of the author’s education.

Q5. Gradually the author and the grandmother saw less of each other and their friendship was broken. Was the distancing in the relationship deliberate or due to the demand of the situation?           

Ans. Gradually, the author and his grandmother saw less of each other and their friendship was broken. This distancing was due to the demand of situation, not deliberate. When they came to the city, the author was sent to an English school. His grandmother no longer came to school with him as he used to go in a motor bus. Nor could she help him with his lessons because she did not know the things they taught at the English school. In fact, she was not happy with the things taught at school. For instance, she was shocked to learn that they were given music lessons at school.

According to her music was the monopoly of harlots and beggars and not meant for gentle folk. Consequently, there was a communication gap between them. They rarely spoke to each other, though they shared the same room. Then the author went to a university. He was given a separate room of his own. When the author went for higher studies for a period of five years, the distance increased all the more. Thus, the common link of relationship between them was snapped.

Read More

Chapter 11 : Societal Impact | class11th | Ncert solution computer

Class 11 Computer Science Ch 11 Societal Impacts NCERT Book Exercise Solution

Ch 11 Societal Impacts


Summary (A quick recap)


• Digital footprint is the trail of data we leave behind when we visit any website (or use any online application or portal) to fill-in data or perform any transaction.

• A user of digital technology needs to follow certain etiquettes like net-etiquettes, communicationetiquettes and social media-etiquettes.

• Net-etiquette includes avoiding copyright violations, respecting privacy and diversity of users, and avoiding cyber bullies and cyber trolls, besides sharing of expertise.

• Communication-etiquette requires us to be precise and polite in our conversation so that we remain credible through our remarks and comments.

• While using social media, one needs to take care of security through password, be aware of fake information and be careful while befriending unknowns. Care must be taken while sharing anything on social media as it may create havoc if being mishandled, particularly our personal, sensitive information.

• Intellectual Property Rights (IPR) help in data protection through copyrights, patents and trademarks. There are both ethical and legal aspects of violating IPR. A good digital citizen should avoid plagiarism, copyright infringement and trademark infringement.

• Certain software are made available for free public access. Free and Open Source Software (FOSS) allow users to not only access but also to modify (or improve) them.

• Cyber crimes include various criminal activities carried out to steal data or to break down important services. These include hacking, spreading viruses or malware, sending phishing or fraudulent emails, ransomware, etc.

• Excessive usage of digital devices has a negative impact on our physical as well as psychological well-being. Ergonomic positioning of devices as well as our posture are important.


NCERT Book Exercise Solution of Class 11 Computer Science


1. After practicals, Atharv left the computer laboratory but forgot to sign off from his email account. Later, his classmate Revaan started using the same computer. He is now logged in as Atharv. He sends inflammatory email messages to few of his classmates using Atharv’s email account. Revaan’s activity is an example of which of the following cyber crime?
Justify your answer.
a) Hacking
b) Identity theft
c) Cyber bullying
d) Plagiarism


Answer: (b) Identity theft

Identity theft means obtaining someone’s credentials to commit some online fraud.


2. Rishika found a crumpled paper under her desk. She picked it up and opened it. It contained some text which was struck off thrice. But she could still figure out easily that the struck off text was the email ID and password of Garvit, her classmate. What is ethically correct for Rishika to do?
a) Inform Garvit so that he may change his password.
b) Give the password of Garvit’s email ID to all other classmates.
c) Use Garvit’s password to access his account.

Answer: a) Inform Garvit so that he may change his password.


3. 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 —
a) Fair use
b) Hacking
c) Copyright infringement
d) Cyber crime

Answer: c) Copyright infringement


4. After a fight with your friend, you did the following activities. Which of these activities is not an example of cyber bullying?

a) You sent an email to your friend with a message saying that “I am sorry”.
b) You sent a threatening message to your friend saying “Do not try to call or talk to me”.
c) You created an embarrassing picture of your friend and uploaded on your account on a social networking site.


Answer: a) You sent an email to your friend with a message saying that “I am sorry”.


5. Sourabh has to prepare a project on “Digital India Initiatives”. He decides to get information from the Internet. He downloads three web pages (webpage 1, webpage 2, webpage 3) containing information on Digital India Initiatives. Which of the following steps taken by Sourabh is an example of plagiarism or copyright infringement? Give justification in support of your answer.
a) He read a paragraph on “ Digital India Initiatives” from webpage 1 and rephrased it in his own words. He finally pasted the rephrased paragraph in his project.
b) He downloaded three images of “ Digital India Initiatives” from webpage 2. He made a collage for his project using these images.
c) He downloaded “Digital India Initiative” icon from web page 3 and pasted it on the front page of his project report.

Answer: b & c

Plagiarism means using someone else’s work without giving adequate citation for use and presenting as your own work.

Copyright infringement means using copyright-protected material without obtaining copyright holder’s permission or without paying for it, if it is being sold.


6. Match the following:

Column AColumn B
PlagiarismFakers, by offering special rewards or money prize asked for personal information, such as bank account information
HackingCopy and paste information from the Internet into your report and then organise it
Credit card fraudThe trail that is created when a person uses the Internet.
Digital Foot PrintBreaking into computers to read private emails and other files

Answer:

Column AColumn B
PlagiarismCopy and paste information from the Internet into your report and then organise it
HackingBreaking into computers to read private emails and other files
Credit card fraudFakers, by offering special rewards or money prize asked for personal information, such as bank account information
Digital Foot PrintThe trail that is created when a person uses the Internet.

7. You got the below shown SMS from your bank querying a recent transaction. Answer the following —

a) Will you SMS your pin number to the given contact number?

Answer : No, I will not shared PIN to that contact number.

b) Will you call the bank helpline number to recheck the validity of the SMS received?

Answer : Yes. I will call the bank helpline number.


8. 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 few days, Preeti had a fight with Himanshu. 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 few minutes back”.
Help Preeti to get answers for the following questions.

Give justification for your answers so that Preeti can understand it clearly.

a) How could Himanshu access an image which I had already deleted?

Answer: Images loaded on a social networking site can be saved/downloaded or even screenshots may be taken.

b) Can anybody else also access these deleted images?

Answer: Yes, from the digital footprint, government and other agencies can obtain these legally, if needed.

c) Had these images not been deleted from my digital footprint?

Answer: Images deleted from a social website always remain part of a digital footprint.

Read More

Chapter 10 : Tuples and Dictionaries | class 11th | Ncert solution for computer

NCERT Solutions for Class 11 Science Computer science Chapter 10 – Tuples And Dictionaries

Page No 223:

Question 1:

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 statements:

  1. print(tuple1.index(45))
  2. print(tuple1.count(45))
  3. print(tuple1 + tuple2)
  4. print(len(tuple2))
  5. print(max(tuple1))
  6. print(min(tuple1))
  7. print(sum(tuple2))
  8. print(sorted (tuple1))
    print(tuple1)

ANSWER:

i. The ‘index()’ function returns the index of the first occurrence of the element in a tuple.
OUTPUT:


ii. The ‘count()’ function returns the numbers of times the given element appears in the tuple.
OUTPUT:
3

iii. ‘+’ operator concatenate the two tuples.
OUTPUT: 
(23, 1, 45, 67, 45, 9, 55, 45, 100, 200)

iv. The ‘len()’ function returns the number of elements in the given tuple.
OUTPUT:
2

v. The ‘max()’ function returns the largest element of the tuple.
OUTPUT:
67

vi. The ‘min()’ function returns the smallest element of the tuple.
OUTPUT:
1

vii. The ‘sum()’ function returns the sum of all the elements of the tuple.
OUTPUT:
300

viii. The ‘sorted()’ function takes element in the tuple and return a new sorted list. It doesn’t make any changes to the original tuple. Hence, print(tuple1) will print the original tuple1 i.e. (23, 1, 45, 67, 45, 9, 55, 45)
OUTPUT: 
[1, 9, 23, 45, 45, 45, 55, 67]
(23, 1, 45, 67, 45, 9, 55, 45)
 

Page No 224:

Question 2:

Consider the following dictionary stateCapital: 

stateCapital = {“AndhraPradesh”:”Hyderabad”,”Bihar”:”Patna”,”Maharashtra”:”Mumbai”, “Rajasthan”:”Jaipur”}
Find the output of the following statements:

  1. print(stateCapital.get(“Bihar”))
  2. print(stateCapital.keys())
  3. print(stateCapital.values())
  4. print(stateCapital.items())
  5. print(len(stateCapital))
  6. print(“Maharashtra” in stateCapital)
  7. print(stateCapital.get(“Assam”))
  8. del stateCapital[“Andhra Pradesh”]
    print(stateCapital)

ANSWER:

  1. Patna: ‘get() function returns the value corresponding to the key passed as an argument.
  2. dict_keys([‘AndhraPradesh’, ‘Bihar’, ‘Maharashtra’, ‘Rajasthan’]): ‘keys()’ function returns the list of the keys in the dictionary.
  3. dict_values([‘Hyderabad’, ‘Patna’, ‘Mumbai’, ‘Jaipur’]): ‘values()’ function returns the list of the values in the dictionary.
  4. dict_items([(‘AndhraPradesh’, ‘Hyderabad’), (‘Bihar’, ‘Patna’), (‘Maharashtra’, ‘Mumbai’), (‘Rajasthan’, ‘Jaipur’)]): ‘items()’ function returns the list of tuples in key value pair.
  5. 4: ‘len()’ functions return the length or number of key:value pairs of the dictionary passed as the argument.
  6. True: ‘in’ is a membership operator which returns true if a key is present in the dictionary.
  7. None:  ‘get()’ function returns ‘None’ if the key is not present in the dictionary.
  8. del stateCapital[“Andhra Pradesh”] will return an error as the key ‘Andhra Pradesh’ is not present in the dictionary. (‘Andhra Pradesh’ and ‘AndhraPradesh’ are different). However, if the key is present it will delete the key:value pair from the dictionary. If the statement is del stateCapital[“AndhraPradesh”], print(stateCapital) will then print the remaining key: value pair. {‘Bihar’: ‘Patna’, ‘Maharashtra’: ‘Mumbai’, ‘Rajasthan’: ‘Jaipur’}

Page No 224:

Question 3:

“Lists and Tuples are ordered”. Explain.

ANSWER:

In Lists and Tuples, the items are retained in the order in which they are inserted. The elements can always be accessed based on their position. The element at the position or ‘index’ 0 will always be at index 0. Therefore, the Lists and Tuples are said to be ordered collections.

Page No 224:

Question 4:

With the help of an example show how can you return more than one value from a function.

ANSWER:

In tuple, more than one value can be returned from a function by ‘packing’ the values. The tuple can be then ‘unpacked’ into the variables by using the same number of variables on the left-hand side as there are elements in a tuple. 
Example:

Program: 
#Function to compute area and perimeter of the square.
def square(r):
    area = r * r
    perimeter = 4 * r
    #Returns a tuple having two elements area and perimeter, i.e. two variables are packed in a tuple
    return (area, perimeter)
    ​#end of function

side = int(input(“Enter the side of the square: “))
#The returned value from the function is unpacked into two variables area and perimeter
area, perimeter = square(side)
print(“Area of the square is:”,area)
print(“The perimeter of the square is:”,perimeter)


OUTPUT:
Enter the side of the square: 4
Area of the square is: 16
The perimeter of the square is: 16 

Page No 224:

Question 5:

What advantages do tuples have over lists?

ANSWER:

The advantages of tuples over the lists are as follows:

  1. Tuples are faster than lists.
  2. Tuples make the code safe from any accidental modification. If a data is needed in a program which is not supposed to be changed, then it is better to put it in ‘tuples’ than in ‘list’.
  3. Tuples can be used as dictionary keys if it contains immutable values like strings, numbers or another tuple. ‘Lists’ can never be used as dictionary keys as ‘lists’ are mutable.

Page No 224:

Question 6:

 When to use tuple or dictionary in Python. Give some examples of programming situations mentioning their usefulness.

ANSWER:

Tuples are used to store the data which is not intended to change during the course of execution of the program. For example, if the name of months is needed in a program, then the same can be stored in the tuple as generally, the names will either be iterated for a loop or referenced sometimes during the execution of the program.

Dictionary is used to store associative data like student’s roll no. and the student’s name. Here, the roll no. will act as a key to find the corresponding student’s name. The position of the data doesn’t matter as the data can easily be searched by using the corresponding key. 

Page No 224:

Question 7:

Prove with the help of an example that the variable is rebuilt in case of immutable data types.

ANSWER:

When a variable is assigned to the immutable data type, the value of the variable cannot be changed in place. Therefore, if we assign any other value to the variable, the interpreter creates a new memory location for that value and then points the variable to the new memory location. This is the same process in which we create a new variable. Thus, it can be said that the variable is rebuilt in case of immutable data types on every assignment.

Program to represent the same:
#Define a variable with immutable datatypes as value
var = 50
#Checking the memory location of the variable
print(“Before: “,id(var))
#Assign any other value
var = 51
#Checking the memory location of the variable
print(“After: “,id(var))


OUTPUT:
Before: 10916064
After: 10916096


It can be seen that the memory location a variable is pointing after the assignment is different. The variable is entirely new and it can be said that the variable is rebuilt.

Page No 224:

Question 8:

TypeError occurs while statement 2 is running. Give reason. How can it be corrected?

>>> tuple1 = (5)    #statement 1
>>> len(tuple1)     #statement 2

ANSWER:

The ‘statement 1’ is creating a variable, tuple1 which is of ‘int’ data type. The ‘statement 2’ is checking for the length of the variable, but the argument passed is an ‘int’ data type. The ‘len() function can return the length only when the object is a sequence or a collection. This is the reason for the type error. 

The error can be corrected by adding one comma after ‘5’ in statement 1, as this will create a tuple and as a tuple is a collection, ‘len() function will not return an error. The correct statement will be: 
>>> tuple1 = (5,)    
>>> len(tuple1)   

Page No 224:

Question 1:

 Write a program to read email IDs of n number of students and store them in a tuple. Create two new tuples, one to store only the usernames from the email IDs and second to store domain names from the email ids. Print all three tuples at the end of the program. [Hint: You may use the function split()]
 

ANSWER:

Program:
#Program to read email id of n number of students. Store these numbers in a tuple.
#Create two new tuples, one to store only the usernames from the email IDs and second to store domain names from the email ids.
emails = tuple()
username = tuple()
domainname = tuple()
#Create empty tuple ’emails’, ‘username’ and domain-name
n = int(input(“How many email ids you want to enter?: “))
for i in range(0,n):
    emid = input(“> “)
    #It will assign emailid entered by user to tuple ’emails’
    emails = emails +(emid,)
    #This will split the email id into two parts, username and domain and return a list
    spl = emid.split(“@”)
    #assigning returned list first part to username and second part to domain name

    username = username + (spl[0],)
    domainname = domainname + (spl[1],)

print(“\nThe email ids in the tuple are:”)
#Printing the list with the email ids
print(emails)

print(“\nThe username in the email ids are:”)
#Printing the list with the usernames only
print(username)

print(“\nThe domain name in the email ids are:”)
#Printing the list with the domain names only
print(domainname)


OUTPUT:
How many email ids you want to enter?: 3
> abcde@gmail.com
> test1@meritnation.com
> testing@outlook.com

The email ids in the tuple are:
(‘abcde@gmail.com’, ‘test1@meritnation.com’, ‘testing@outlook.com’)

The username in the email ids are:
(‘abcde’, ‘test1’, ‘testing’)

The domain name in the email ids are:
(‘gmail.com’, ‘meritnation.com’, ‘outlook.com’)

Page No 224:

Question 2:

Write a program to input names of n students and store them in a tuple. Also, input  name from the user and find if this student is present in the tuple or not. 
We can accomplish these by: 
(a) writing a user defined function
(b) using the built-in function

ANSWER:

a) Program:
#Program to input names of n students and store them in a tuple.
#Input a name from the user and find if this student is present in the tuple or not.
#Using a user-defined function

#Creating user defined function
def searchStudent(tuple1,search):
    for a in tuple1:
        if(a == search):
            print(“The name”,search,”is present in the tuple”)
            return
    print(“The name”,search,”is not found in the tuple”)

name = tuple()
#Create empty tuple ‘name’ to store the values
n = int(input(“How many names do you want to enter?: “))
for i in range(0,n):
    num = input(“> “)
    #It will assign emailid entered by user to tuple ‘name’
    name = name + (num,)

print(“\nThe names entered in the tuple are:”)
print(name)

#Asking the user to enter the name of the student to search
search = input(“\nEnter the name of the student you want to search? “)
#Calling the search Student function
searchStudent(name,search)


OUTPUT:
How many names do you want to enter?: 3
> Amit
> Sarthak
> Rajesh

The names entered in the tuple are:
(‘Amit’, ‘Sarthak’, ‘Rajesh’)

Enter the name of the student you want to search? Amit
The name Amit is present in the tuple


b) Program:
#Program to input names of n students and store them in a tuple.
#Input a name from the user and find if this student is present in the tuple or not.
#Using a built-in function

name = tuple()
#Create empty tuple ‘name’ to store the values
n = int(input(“How many names do you want to enter?: “))
for i in range(0, n):
    num = input(“> “)
    #it will assign emailid entered by user to tuple ‘name’
    name = name + (num,)

print(“\nThe names entered in the tuple are:”)
print(name)

search=input(“\nEnter the name of the student you want to search? “)

#Using membership function to check if name is present or not
if search in name:
    print(“The name”,search,”is present in the tuple”)
else:
    print(“The name”,search,”is not found in the tuple”)


OUTPUT:
How many names do you want to enter?: 3
> Amit
> Sarthak
> Rajesh

The names entered in the tuple are:
(‘Amit’, ‘Sarthak’, ‘Rajesh’)

Enter the name of the student you want to search? Animesh
The name Animesh is not present in the tuple

Page No 225:

Question 3:

Write a Python program to find the highest 2 values in a dictionary.

ANSWER:

Program:
#Write a Python program to find the highest 2 values in a dictionary
#Defining a dictionary
dic = {“A”:12,”B”:13,”C”:9,”D”:89,”E”:34,”F”:17,”G”:65,”H”:36,”I”:25,”J”:11}

#Creating an empty list to store all the values of the dictionary
lst = list()

#Looping through each values and storing it in list
for a in dic.values():
    lst.append(a)

#Sorting the list in ascending order, it will store the highest value at the last index
lst.sort()

#Printing the highest and second highest value using negative indexing of the list
print(“Highest value:”,lst[-1])
print(“Second highest value:”,lst[-2])


OUTPUT:
Highest value: 89
Second highest value: 65

Page No 225:

Question 4:

Write a Python program to create a dictionary from a string.
Note: Track the count of the letters from the string.
Sample string  : ‘w3resource’
Expected output : {‘3’: 1, ‘s’: 1, ‘r’: 2, ‘u’: 1, ‘w’: 1, ‘c’: 1, ‘e’: 2, ‘o’: 1}

ANSWER:

Program:
#Count the number of times a character appears in a given string
st = input(“Enter a string: “)

dic = {}
#creates an empty dictionary

for ch in st:
    if ch in dic:
#if next character is already in the dictionary
        dic[ch] += 1
    else:
#if ch appears for the first time
        dic[ch] = 1

#Printing the count of characters in the string
print(dic)


OUTPUT:
Enter a string: meritnation
{‘m’: 1, ‘e’: 1, ‘r’: 1, ‘i’: 2, ‘t’: 2, ‘n’: 2, ‘a’: 1, ‘o’: 1}

Page No 225:

Question 5:

Write a program to input your friends’ names and their Phone Numbers and store them in the dictionary as the key-value pair. Perform the following operations on the dictionary:
a) Display the name and phone number of all your friends
b) Add a new key-value pair in this dictionary and display the modified dictionary
c) Delete a particular friend from the dictionary
d) Modify the phone number of an existing friend
e) Check if a friend is present in the dictionary or not
f) Display the dictionary in sorted order of names

ANSWER:

Program: 
dic = {}
#Creates an empty dictionary

#While loop to provide the options repeatedly
#it will exit when the user enters 7
while True:
    print(“1. Add New Contact”)
    print(“2. Modify Phone Number of Contact”)
    print(“3. Delete a Friend’s contact”)
    print(“4. Display all entries”)
    print(“5. Check if a friend is present or not”)
    print(“6. Display in sorted order of names”)
    print(“7. Exit”)
    inp = int(input(“Enter your choice(1-7): “))

    #Adding a contact
    if(inp == 1):
        name = input(“Enter your friend name: “)
        phonenumber = input(“Enter your friend’s contact number: “)
        dic[name] = phonenumber
        print(“Contact Added \n\n”)
    #Modifying a contact if the entered name is present in the dictionary
    elif(inp == 2):
        name = input(“Enter the name of friend whose number is to be modified: “)
        if(name in dic):
            phonenumber = input(“Enter the new contact number: “)        
            dic[name] = phonenumber
            print(“Contact Modified\n\n”)
        else:
            print(“This friend’s name is not present in the contact list”)
    #Deleting a contact if the entered name is present in the dictionary
    elif(inp == 3):
        name = input(“Enter the name of friend whose contact is to be deleted: “)
        if(name in dic):
            del dic[name]
            print(“Contact Deleted\n\n”)
        else:
            print(“This friend’s name is not present in the contact list”)
    #Displaying all entries in the dictionary
    elif(inp == 4):
        print(“All entries in the contact”)
        for a in dic:
            print(a,”\t\t”,dic[a])
        print(“\n\n\n”)
    #Searching a friend name in the dictionary
    elif(inp == 5):
        name = input(“Enter the name of friend to search: “)
        if(name in dic):
            print(“The friend”,name,”is present in the list\n\n”)
        else:
            print(“The friend”,name,”is not present in the list\n\n”)
    #Displaying the dictionary in the sorted order of the names
    elif(inp == 6):
        print(“Name\t\t\tContact Number”)
        for i in sorted(dic.keys()):
            print(i,”\t\t\t”,dic[i])
        print(“\n\n”)
    #Exit the while loop if user enters 7
    elif(inp == 7):
        break
    #Displaying the invalid choice when any other values are entered
    else:
        print(“Invalid Choice. Please try again\n”)


OUTPUT:

1. Add New Contact

2. Modify Phone Number of Contact

3. Delete a Friend’s contact

4. Display all entries

5. Check if a friend is present or not

6. Display in sorted order of names

7. Exit

Enter your choice(1-7): 1

Enter your friend name: Mohit

Enter your friend’s contact number: 98765*****

Contact Added 

1. Add New Contact

2. Modify Phone Number of Contact

3. Delete a Friend’s contact

4. Display all entries

5. Check if a friend is present or not

6. Display in sorted order of names

7. Exit

Enter your choice(1-7): 1

Enter your friend name: Mohan

Enter your friend’s contact number: 98764*****

Contact Added 

1. Add New Contact

2. Modify Phone Number of Contact

3. Delete a Friend’s contact

4. Display all entries

5. Check if a friend is present or not

6. Display in sorted order of names

7. Exit

Enter your choice(1-7): 6

Name Contact Number

Mohan   98764*****

Mohit   98765*****

1. Add New Contact

2. Modify Phone Number of Contact

3. Delete a Friend’s contact

4. Display all entries

5. Check if a friend is present or not

6. Display in sorted order of names

7. Exit

Enter your choice(1-7): 7

Read More

Chapter 9 : Lists | class 11th | Ncert solution for computer

NCERT Solutions for Class 11 Science Computer science Chapter 9 – Lists

Page No 204:

Question 1:

What will be the output of the following statements?

i)  list1 = [12,32,65,26,80,10] 
  list1.sort() 
  print(list1)

ii) list1 = [12,32,65,26,80,10] 
  sorted(list1) 
  print(list1)

iii)list1 = [1,2,3,4,5,6,7,8,9,10]
  list1[::-2]
  list1[:3] + list1[3:]

iv)list1 = [1,2,3,4,5] 
  list1[len(list1)-1]

ANSWER:


i) The sort() method will sort the list in ascending order in place.
OUTPUT:
[10, 12, 26, 32, 65, 80]


ii) The sorted() function takes a list as a parameter and creates a new list consisting of the same elements arranged in sorted order. It doesn’t change the list which is passed as a parameter itself.
OUTPUT: 
[12, 32, 65, 26, 80, 10]

iii) The statement in line 2 has a negative step size. This means that the list will be traversed in reversed order with step size 2.
OUTPUT: [10, 8, 6, 4, 2]
The statement in line 3 will print the complete list. i.e. [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]

iv) This will print the last element of the list. i.e. 5 

list1[len(list1)-1]

list1[5-1]
list1[4]
5

Page No 204:

Question 2:

Consider the following list myList. What will be the elements of myList after the following two operations: 
  myList = [10,20,30,40]
  i. myList.append([50,60])
  ii. myList.extend([80,90])
 

ANSWER:

i) append() function takes only one argument and inserts the element to the end of the list. Here, the argument is a list containing the element 50, 60. Therefore, the output will be: [10, 20, 30, 40, [50, 60]]

ii) extend() function takes a list as an argument and appends each element of the list in the same order. The final output will be: [10, 20, 30, 40, [50, 60],80,90]

Page No 205:

Question 3:

What will be the output of the following code segment:

myList = [1,2,3,4,5,6,7,8,9,10]
for i in range(0,len(myList)):
    if i%2 == 0:
        print(myList[i])
 

ANSWER:

Here, the elements of the list will be printed which are at index such that index%2==0. The index of the list can be represented as:
 

 Element12345678910
 Index 0123456789


Therefore, the output will be the elements at index 0, 2, 4, 6, 8 i.e.
1
3
5
7
9

Page No 205:

Question 4:

What will be the output of the following code segment: 

  1. myList = [1,2,3,4,5,6,7,8,9,10] 
    del myList[3:] 
    print(myList)
  2. myList = [1,2,3,4,5,6,7,8,9,10] 
    del myList[:5] 
    print(myList)
  3. myList = [1,2,3,4,5,6,7,8,9,10]
    del myList[::2]
    print(myList)

ANSWER:

  1. The statement in line 2 will delete the elements from index 3 to the last index of the list. Therefore, the output will be [1, 2, 3].
  2. The statement in line 2 will delete the elements from start (index 0) to index 4 of the list. Therefore, the output will be [6, 7, 8, 9, 10]
  3. The statement in line 2 will delete the elements from the start to the end of the list with step size 2. i.e it will delete elements starting from index 0, then index 2, index 4, index 6 … and so on.
    The output will be the remaining elements i.e. [2, 4, 6, 8, 10]

Page No 205:

Question 5:

 Differentiate between functions of list. append() and extend().

ANSWER:

The append() function takes a single element as an argument and appends it to the list. The argument can be any datatype, even a list. The argument will be added as a single element. 
>>>list1 = [10, 20, 30]
>>>list1.append(40)


list1 will now be [10, 20, 30, 40]

>>>list1 = [10, 20, 30]
>>>list1.append([40, 50])


Here [40, 50] is a list which will be considered as a single argument, and will be added to the list at index 3. ‘list1’ will now be [10, 20, 30, [40, 50]]

The extend() function takes any iterable data type (e.g. list, tuple, string, dictionary) as an argument and adds all the elements of the list passed as an argument to the end of the given list. This function can be used to add more than one element in the list in a single statement.

>>> list1 = [2, 4, 5, 6]
>>> list1.extend((2, 3, 4, 5))
>>> print(list1)


OUTPUT:
[2, 4, 5, 6, 2, 3, 4, 5]

Page No 205:

Question 6:

Consider a list:   list1 = [6,7,8,9]
What is the difference between the following operations on list1:
  a. list1 * 2
  b. list1 *= 2
  c. list1 = list1 * 2

ANSWER:

  1. The statement will print the elements of the list twice, i.e [6, 7, 8, 9, 6, 7, 8, 9]. However, list1 will not be altered.
  2. This statement will change the list1 and assign the list with repeated elements i.e [6, 7, 8, 9, 6, 7, 8, 9] to list1. 
  3. This statement will also have same result as the statement ‘list1 *= 2’. The list with repeated elements i.e [6, 7, 8, 9, 6, 7, 8, 9] will be assigned to list1. 

Page No 205:

Question 7:

The record of a student (Name, Roll No.,Marks in five subjects and percentage of marks) is stored in the following list:
  stRecord = [‘Raman’,’A-36′,[56,98,99,72,69],  78.8]

Write Python statements to retrieve the following information from the list stRecord.

  1. Percentage of the student
  2. Marks in the fifth subject
  3. Maximum marks of the student
  4. Roll no. of the student
  5. Change the name of the student from ‘Raman’ to ‘Raghav’

ANSWER:

List NameNameRoll No. Marks in 5 Subjects Percentage
stRecordRamanA-36[56, 98, 99, 72, 69]78.8
Index012[0, 1, 2, 3, 4] index of the list at index 23

Here, we can see that the ‘name’ is stored at index 0, ‘roll no’ at index 1, ‘marks of the 5 subjects’ is stored at index 2 in a list which contains 5 elements, and ‘percentage’ at index 3

  1. Percentage: stRecord[3]
  2. Marks in 5th Subject: stRecord[2][4]
  3. Maximum Marks of the Student: max(stRecord[2])
  4. Roll no. of the student: stRecord[1]
  5. Change the name from Raman to Raghav: stRecord[0] = “Raghav”

Page No 205:

Question 1:

Write a program to find the number of times an element occurs in the list.

ANSWER:

Program:
#defining a list
list1 = [10, 20, 30, 40, 50, 60, 20, 50, 10, 30, 50, 30, 24, 45]

#printing the list for the user
print(“The list is:”,list1)

#asking the element to count
inp = int(input(“Which element occurrence would you like to count? “))

#using the count function
count = list1.count(inp)

#printing the output
print(“The count of element”,inp,”in the list is:”,count)


OUTPUT:
The list is: [10, 20, 30, 40, 50, 60, 20, 50, 10, 30, 50, 30, 24, 45]
which element occurrence would you like to count? 10
The count of element 10 in the list is: 2

Page No 205:

Question 2:

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.

ANSWER:

Program:
#Defining empty list
list1 = list()

#Getting the input of number of elements to be added in the list
inp = int(input(“How many elements do you want to add in the list? (Element can be both positive and negative) “))

#Taking the input of elements to be added
for i in range(inp):
    a = int(input(“Enter the elements: “))
    list1.append(a)
    
#Printing the list
print(“The list with all the elements: “,list1)

#Defining list2 and list3 to store positive and negative elements of the list
list2 = list()
list3 = list()

#Looping through list to segregate positive and negative numbers
for j in range(inp):
    if list1[j] < 0:
        #Appending negative elements to list3
        list3.append(list1[j])
    else:
        #Appending positive elements to list2
        list2.append(list1[j])


print(“The list with positive elements: “,list2)
print(“The list with negative elements: “,list3)


OUTPUT:
How many elements do you want to add in the list? (Element can be both positive and negative) 5
Enter the elements: -1
Enter the elements: -2
Enter the elements: -3
Enter the elements: 4
Enter the elements: 5
The list with all the elements:  [-1, -2, -3, 4, 5]
The list with positive elements:  [4, 5]
The list with negative elements:  [-1, -2, -3]

Page No 206:

Question 3:

 Write a function that returns the largest element of the list passed as parameter.

ANSWER:

The function can be written in two ways:
1. Using max() function of the list
2. Using for loop to iterate every element and checking for the maximum value 

Program 1:
#Using max() function to find largest number
def largestNum(list1):
    l = max(list1)
    return l

list1 = [1, 2, 3, 4, 5, 6, 7, 8, 9]

#Using largestNum function to get the function   
max_num = largestNum(list1)

#Printing all the elements for the list
print(“The elements of the list”,list1)

#Printing the largest num 
print(“\nThe largest number of the list:”,max_num)


OUTPUT:
The elements of the list [1, 2, 3, 4, 5, 6, 7, 8, 9]

The largest number of the list: 9​


Program 2:
​#Without using max() function of the list
def largestNum(list1):
    length = len(list1)
    num = 0
    for i in range(length):
        if(i == 0 or list1[i] > num):
            num = list1[i]
    return num


list1 = [1, 2, 3, 4, 5, 6, 7, 8, 9]

#Using largestNum function to get the function   
max_num = largestNum(list1)

#Printing all the elements for the list
print(“The elements of the list”,list1)

#Printing the largest num 
print(“\nThe largest number of the list:”,max_num)


OUTPUT:
The elements of the list [1, 2, 3, 4, 5, 6, 7, 8, 9]

The largest number of the list: 9​

Page No 206:

Question 4:

Write a function to return the second largest number from a list of numbers.

ANSWER:

Program:
def secLargestNum(list1):
    #Sorting the list in ascending order
    list1.sort()
    
    #Returning the second last index of list1
    #List with negative indexing will start from the end in reverse order with -1 as the index of the last element
    secondLast = list1[-2]
    
    
    #or len(list1)-2 can be used which will return second last element
    ​#secondLast = list1[len(list1)-2]
    return secondLast

list1 = [1, 2, 3, 4, 5, 6, 7, 8, 9]

#Using secLargestNum function to get the function   
sec_num = secLargestNum(list1)

#Printing all the elements for the list
print(“The elements of the list”,list1)

#Printing the second largest num 
print(“\nThe second-largest number of the list:”,sec_num)


OUTPUT:
The elements of the list [1, 2, 3, 4, 5, 6, 7, 8, 9]

The second-largest number of the list: 8

Page No 206:

Question 5:

Write a program to read a list of n integers and find their median. 
The median value of a list of values is the middle one when they are arranged in order. If there are two middle values then take their average. 
Hint: You can use a built-in function to sort the list
 

ANSWER:

Program:
def medianValue(list1):
    #Sorting the list
    list1.sort()
    #Checking the last index
    indexes = len(list1)
    if(indexes%2 == 0):
        #if the number of elements is even, then we have to find average of two middle values
        num1 = (indexes) // 2 #first middle element
        num2 = (indexes // 2) + 1 #second middle element
        #Calculating median as average of the two
        med = (list1[num1 – 1] + list1[num2 – 1]) / 2
        return med
    else:
        #if number of elements is odd, then we have to return the element at middle index

        middle = (indexes – 1) // 2
        med = list1[middle]
        return med

#defining empty list
list1 = list()
#Getting input of number of elements to be added in the list
inp = int(input(“How many elements do you want to add in the list? “))
#Getting the input of elements from user
for i in range(inp):
    a = int(input(“Enter the elements: “))
    list1.append(a)
#Printing the list
print(“The median value is”,medianValue(list1))


OUTPUT:
How many elements do you want to add in the list? 6
Enter the elements: 1
Enter the elements: 2
Enter the elements: 3
Enter the elements: 4
Enter the elements: 5
Enter the elements: 6
The median value is 3.5

Page No 206:

Question 6:

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.

ANSWER:

Program:
#function to remove the duplicate elements
def removeDup(list1):
    #Checking the length of list for ‘for’ loop
    length = len(list1)
    #Defining a new list for adding unique elements
    newList = []
    for a in range(length):
        #Checking if an element is not in the new List
        #This will reject duplicate values

        if list1[a] not in newList:
            newList.append(list1[a])
    return newList

#Defining empty list
list1 = []

#Asking for number of elements to be added in the list
inp = int(input(“How many elements do you want to add in the list? “))

#Taking the input from user
for i in range(inp):
    a = int(input(“Enter the elements: “))
    list1.append(a)
    
#Printing the list
print(“The list entered is:”,list1)

#Printing the list without any duplicate elements
print(“The list without any duplicate element is:”,removeDup(list1))


OUTPUT:
How many elements do you want to add in the list? 6
Enter the elements: 1
Enter the elements: 1
Enter the elements: 2
Enter the elements: 2
Enter the elements: 3
Enter the elements: 4
The list entered is: [1, 1, 2, 2, 3, 4]
The list without any duplicate element is: [1, 2, 3, 4]

Page No 206:

Question 7:

Write a program to read a list of elements. Input an element from the user that has to be inserted in the list. Also input the position at which it is to be inserted. Write a user defined function to insert the element at the desired position in the list.

ANSWER:

Program:
def addElements(list1):
    newList = list1
    
    #Asking the user if he want to add any element to the list
    inp = input(“Do you want to add any new element to the list? (Y/N) “)
    
    #if user input is yes
    if(inp == ‘Y’ or inp == ‘y’):
        elem = int(input(“Enter the element: “))
        index = int(input(“Enter the index at which you would like to add the element: “))
        
        #Using insert() function to add the element at particular index
        newList.insert(index,elem)
        print(“***Element added***”)
        addElements(newList) #Calling the addElement function again to check if new element should be added
    return newList    
        
#Defining empty list
list1 = []
    
#Getting input for the number of elements to be added in the list
inp = int(input(“How many elements do you want to add in the list? “))

#Taking the input from user
for i in range(inp):
    a = int(input(“Enter the elements: “))
    list1.append(a)
    
#Printing the list
print(“The list entered is:”,list1)

#Calling the addElement function to get a confirmation about adding the element to the list and then returning the modified list
modList = addElements(list1)
print(“The modified list is: “,modList)


OUTPUT:
How many elements do you want to add in the list? 6
Enter the elements: 33
Enter the elements: 44
Enter the elements: 55
Enter the elements: 66
Enter the elements: 77
Enter the elements: 12
The list entered is: [33, 44, 55, 66, 77, 12]
Do you want to add any new element to the list? (Y/N) y
Enter the element: 11
Enter the index at which you would like to add the element: 0
***Element added***
Do you want to add any new element to the list? (Y/N) n
The modified list is:  [11, 33, 44, 55, 66, 77, 12]

Page No 206:

Question 8:

Write a program to read elements of a list.
a) The program should ask for the position of the element to be deleted from the list. Write a function to delete the element at the desired position in the list.
b) The program should ask for the value of the element to be deleted from the list. Write a function to delete the element of this value from the list.

ANSWER:

a) Program:
def deleteElements():
    global list1
    #Asking the user if he want to delete any element from the list
    inp = input(“Do you want to delete any element from the list? (Y/N) “)
    #if user input is yes
    if(inp == ‘Y’ or inp == ‘y’):
        elem = int(input(“Enter the element which you would like to delete: “))
        #Using remove() function to remove the element
        for a in list1:
            if(a == elem):
                list1.remove(elem)
        print(“The element is deleted from the list. “)
        deleteElements()
    else:
        print(“The elements in the list”,list1)

#Defining empty list
list1 = []
#Taking the number of elements to be added as input
inp = int(input(“How many elements do you want to add in the list? “))

#Taking the input from user
for i in range(inp):
    a = int(input(“Enter the elements: “))
    list1.append(a)
    
#Printing the list
print(“The list entered is:”,list1)

#The function delete element is called
deleteElements()


OUTPUT:
How many elements do you want to add in the list? 10
Enter the elements: 1
Enter the elements: 2
Enter the elements: 9
Enter the elements: 8
Enter the elements: 4
Enter the elements: 5
Enter the elements: 7
Enter the elements: 11
Enter the elements: 13
Enter the elements: 15
The list entered is: [1, 2, 9, 8, 4, 5, 7, 11, 13, 15]
Do you want to delete any element from the list? (Y/N) Y
Enter the element which you would like to delete: 11
The element is deleted from the list. 
Do you want to delete any element from the list? (Y/N) n
The elements in the list [1, 2, 9, 8, 4, 5, 7, 13, 15]


b) Program:
def deleteElementsAtIndex():
    global list1
#Asking the user if he want to delete any element from the list
    inp = input(“Do you want to delete any element from the list? (Y/N) “)
#if user input is yes
    if(inp == ‘Y’ or inp == ‘y’):
        index = int(input(“Enter the index of the element you would like to delete: “))
#Using pop() function to remove the element at desired index
        if(index < len(list1)):
            list1.pop(index)
            print(“The element is deleted from the list. “)
        else:
            print(“The index is out of range.”)
        
        deleteElementsAtIndex()
    else:
        print(“The elements in the list”,list1)

#Defining empty list
list1 = list()
#Taking the number of elements to be added as input
inp = int(input(“How many elements do you want to add in the list? “))

#Taking the input from user
for i in range(inp):
    a = int(input(“Enter the elements: “))
    list1.append(a)
    
#Printing the list
print(“The list entered is:”,list1)

#The function deleteElementsAtIndex is called to delete the element after taking user input
deleteElementsAtIndex()


OUTPUT:
How many elements do you want to add in the list? 7
Enter the elements: 1
Enter the elements: 2
Enter the elements: 3
Enter the elements: 7
Enter the elements: 6
Enter the elements: 5
Enter the elements: 4
The list entered is: [1, 2, 3, 7, 6, 5, 4]
Do you want to delete any element from the list? (Y/N) y
Enter the index of the element you would like to delete: 3
The element is deleted from the list. 
Do you want to delete any element from the list? (Y/N) n
The elements in the list [1, 2, 3, 6, 5, 4]

Page No 206:

Question 9:

 Read a list of n elements. Pass this list to a function which reverses this list in-place without creating a new list.

ANSWER:

Program:
def reverseList():
    global list1
    #Using reverse() function to reverse the list in place
    #This will not create any new list
    list1.reverse()
    print(“Reversed List:”,list1)
    
#Defining empty list
list1 = list()
#Getting input for number of elements to be added in the list
inp = int(input(“How many elements do you want to add in the list? “))

#Taking the input from user
for i in range(inp):
    a = int(input(“Enter the elements: “))
    list1.append(a)
    
#Printing the list
print(“The list entered is:”,list1)

#The function reverseList is called to reverse the list
reverseList()


OUTPUT:
How many elements do you want to add in the list? 6
Enter the elements: 1
Enter the elements: 2
Enter the elements: 4
Enter the elements: 5
Enter the elements: 9
Enter the elements: 3
The list entered is: [1, 2, 4, 5, 9, 3]
Reversed List: [3, 9, 5, 4, 2, 1]

Read More

Chapter 8 : Strings | class 11th | Ncert solution for computer

Class 11 Computer Science – NCERT Book Exercise Solution

Chapter 8. Strings


1. Consider the following string mySubject:

mySubject = “Computer Science”

What will be the output of the following string operations :

i. print(mySubject[0:len(mySubject)])

Answer: Computer Science

ii. print(mySubject[-7:-1])

Answer: Scienc

iii. print(mySubject[::2])

Answer: Cmue cec

iv. print(mySubject[len(mySubject)-1])

Answer: e

v. print(2*mySubject)

Answer: Computer ScienceComputer Science

vi. print(mySubject[::-2])

Answer: eniSrtpo

vii. print(mySubject[:3] + mySubject[3:])

Answer: Computer Science

viii. print(mySubject.swapcase())

Answer: cOMPUTER sCIENCE

ix. print(mySubject.startswith(‘Comp’))

Answer: True

x. print(mySubject.isalpha())

Answer: False

2. Consider the following string myAddress:

myAddress = “WZ-1,New Ganga Nagar,New Delhi”

What will be the output of following string operations :

i. print(myAddress.lower())

Answer: wz-1,new ganga nagar,new delhi

ii. print(myAddress.upper())

Answer: WZ-1,NEW GANGA NAGAR,NEW DELHI

iii. print(myAddress.count(‘New’))

Answer: 2

iv. print(myAddress.find(‘New’))

Answer: 5

v. print(myAddress.rfind(‘New’))

Answer: 21

vi. print(myAddress.split(‘,’))

Answer: [‘WZ-1’, ‘New Ganga Nagar’, ‘New Delhi’]

vii. print(myAddress.split(‘ ‘))

Answer: [‘WZ-1,New’, ‘Ganga’, ‘Nagar,New’, ‘Delhi’]

viii. print(myAddress.replace(‘New’,’Old’))

Answer: WZ-1,Old Ganga Nagar,Old Delhi

ix. print(myAddress.partition(‘,’))

Answer: (‘WZ-1’, ‘,’, ‘New Ganga Nagar,New Delhi’)

x. print(myAddress.index(‘Agra’))

Answer: ValueError: substring ‘Agra’ not found


Programming Problems

1. Write a program to input line(s) of text from the user until enter is pressed. Count the total number of characters in the text (including white spaces),total number of alphabets, total number of digits, total number of special symbols and total number of words in the given text. (Assume that each word is separated by one space).

Answer: Function to count characters, alphabets, digits, special symbols and total number of words

def counter(string):
    alpha = 0
    space = 0
    digit = 0
    symbol = 0

    noofchars = len(string)
    
    for ch in string:
        if ch.isalpha():
            alpha = alpha + 1
        elif ch.isdigit():
            digit = digit + 1
        elif ch.isspace():
            space = space + 1
        else:
            symbol = symbol + 1
    print("Number of characters : ", noofchars)
    print("Number of alphabets : ", alpha)
    print("Number of digits : ", digit)
    print("Number of symbols : ", symbol)
    print("Number of spaces : ", space)
    print("Number of words : ", space + 1)


sentence = input("Enter a sentence : ")
counter(sentence)

Output :

Enter a sentence : hello 259 & how ^ you @; ,
Number of characters : 26
Number of alphabets : 11
Number of digits : 3
Number of symbols : 5
Number of spaces : 7
Number of words : 8


2. Write a user defined function to convert a string with more than one word into title case string where string is passed as parameter. (Title case means that the first letter of each word is capitalised)

Answer: convert a string into the title case

def titlecase(string):
    return string.title()


sentence = input("Enter a sentence : ")
newstr = titlecase(sentence)
print(newstr)

Output:

Enter a sentence : my cs tutorial dot in
My Cs Tutorial Dot In


3. Write a function deleteChar() which takes two parameters one is a string and other is a character. The function should create a new string after deleting all occurrences of the character from the string and return the new string.

Answer: Function to Delete Specified Character from a String

def deleteChar(string, character):
    newstring = ""
    for ch in string:
        if ch != character:
            newstring += ch
    return newstring

string = input("Enter a string : ")
char = input("Enter character want to delete : ")

newstr = deleteChar(string, char)

print("After deleting, string is =>")
print(newstr)

Output:

Enter a string : hello my dear students
Enter character want to delete : e

After deleting, string is =>
hllo my dar studnts


4. Input a string having some digits. Write a function to return the sum of digits present in this string.

Answer: Function to return the sum of digits present in this string

def sumofdigits(string):
    sum = 0
    for ch in string:
        if ch.isdigit():
            sum = sum + int(ch)
    return sum


string = "my 23 cs 85 tutorial25"
print("Sum of digits ", sumofdigits(string))

Output:

Sum of digits 25


5. Write a function that takes a sentence as an input parameter where each word in the sentence is separated by a space. The function should replace each blank with a hyphen and then return the modified sentence.

Answer: Function to replace each space of sentence with hyphen.

#Question 5 : replace space with hypen

def replacespace(sentence):
    newstr =""
    for ch  in sentence:
        if ch.isspace():
            newstr = newstr + "-"
        else:
            newstr = newstr + ch
    return newstr


sentence = input("Enter a sentence : ")
newsentence = replacespace(sentence)
print(newsentence)

Method – II

#Method - II Using String Function

def replacespace2(sentence):
    return sentence.replace(' ','-')

sentence = input("Enter a sentence : ")
newsentence = replacespace2(sentence)
print(newsentence)

Output

Enter a sentence : my cs tutorial
my-cs-tutorial

Read More