How does modules provide flexibility in a structured programming design?
Answer:
Third option is correct
Modules ensures the reuse of code variables.
Explanation:
Module is a combination of code that is used for a specific task i.e. sum, multiplexer and many others task which need to be performed more than once in a structure. So modules are helpful in structure programming to reuse that code again and again.
Answer:
canvas
Explanation:
The answer to this question is that A UI text element must be added to a canvas. The canvas is that area that all the unity items (UI) have to be inside.
We insert the Text UI element when we move to the hierarchy of the scene from create we move to UI and then to text.
After all these have been done, we will get a text element which have been added in the Canvas region.
Answer:
Implementing on Python for the question, the following is the code.
Explanation:
def intialMatch(l):
word_dict={}
for word in l.split():
if word_dict.get(word)==None:
word_dict[word]=[]
for key in word_dict.keys():
if key[0]==word[0] and (word is not key) :
values = word_dict.get(key)
if word not in values:
values.append(word)
for key,values in word_dict.items():
for value in values:
if value==key:values.remove(value)
return word_dict
t='do what you can with what you have'
print(intialMatch(t))
Answer:
long power(int i)
{
return pow(2,i);
}
Explanation:
The above written function is in C++.It does not uses loop.It's return type is long.It uses the function pow that is present in the math library of the c++.It takes two arguments return the result as first argument raised to the power of second.
for ex:-
pow(3,2);
It means 3^2 and it will return 9.