Answer and Explanation:
Multiple-line comments :
Advantage :In the event that we need to remark out of zone of the given program , we can utilize it.
Disadvantage : In numerous line results are in reduced unwavering quality. It stretches out the remark as far as possible of the following comment.For least difficult approach to unintentionally leave off the last delimiter, which successfully expelling code from the program.
Single Line Comments :
Advantage :In the event that you need to close all the delimiter before close the program we utilize this kind of remarks.
Disadvantage : It put more burden on your program .It repeated on every line of a block of comments
Answer:
ICT is a broad subject and a concept of evolving.It covers any product that will store, retrieve, manipulate, transmit, or receive information electronically in a digital form.
Explanation:
HOW WE USE ICT IN OUR DAILY LIFE
COMMUNICATION
JOB OPPORTUNITIES
EDUCATION
SOCIALIZING
POSITIVE IMPACT OF ICT IN OUR DAILY LIFE
1.Easy to access information:
I use ICT to access more information that I need for everyday schooling.Because Internet has more faster than searching to a school library. Even the deadline of my research is coming, I can make it fast with the help of ICT
2. Education: distance learning and on-line tutorials. New ways of learning, e.g. interactive multi-media and virtual reality.
3.Free access of sharing like photo,video,and message
To search things like answers,order things on Amazon,or go watch videos on Youtube
Answer:
1.word = "George slew the dragon"
startIndex = word.find('dr')
endIndex = startIndex + 4
drWord = word[startIndex:endIndex]
2. sentence = "Broccoli is delicious."
sentence_list = sentence.split(" ")
firstWord = sentence_list[0]
Explanation:
The above snippet is written in Python 3.
1. word is initialized to a sentence.
Then we find the the occurence of 'dr' in the sentence which is assign to startIndex
We then add 4 to the startIndex and assign it to endIndex. 4 is added because we need a length of 4
We then use string slicing method to create a substring from the startIndex to endIndex which is assigned to drWord.
2. A string is assigned to sentence. Then we split the sentence using sentence.split(" "). We split based on the spacing. The inbuilt function of split returns a list. The first element in the list is assigned to firstWord. List uses zero based index counting. So. firstWord = sentence_list[0] is use to get first element.