Answer:
d) daco = new Banana;
Explanation:
Dynamically allocated variables have their memory allocated in the heap memory.We declare a dynamical variable like this:-
int *a=new int ;
It means a pointer a is created on the stack memory which hold the address of the block that hold the value of variable a in heap memory.
We already have the pointer daco. We just have to initialize with keyword new.
It will be like daco=new Banana; which matches the option d.
Answer:
def prompt_number():
while True:
number = int(input("Enter a number: "))
if number >= 0:
break
return number
def compute_sum(n1, n2, n3):
total = n1 + n2 + n3
return total
n1 = prompt_number()
n2 = prompt_number()
n3 = prompt_number()
result = compute_sum(n1, n2, n3)
print(result)
Explanation:
Create a function named prompt_number that asks the user to enter a number until a positive number or 0 is entered and returns the number
Create a function named compute_sum that takes three numbers, sums them and returns the sum
Ask the user to enter three numbers, call the prompt_number() three times and assign the values
Calculate the the sum, call the compute_sum and pass the numbers as parameters
Print the result
Answer:
What programming language is this
Explanation:
<u>1</u><u>s</u><u>t</u><u> </u><u>Method:</u>
- Reduce the size of the image in <u>Paints.</u>
<u>2</u><u>n</u><u>d</u><u> </u><u>Method:</u>
- Right-click the selected file you want to send.
- Click on <u>Send To</u> > M<u>ail Recipient</u>.
- The Send Pictures via E-mail dialog box appears.
- Click <u>Make all my pictures smaller</u>, and then click OK.
Hope you could understand.
If you have any query, feel free to ask
Answer:
The sequences are given below that is 3, 4, 5, 2, and 1.
Explanation:
The following steps are taken to develop the site via Google My Business.
- In the first case, He signs his Google My Business.
- In the second case, the site is accessed from the Home menu.
- In the third case, the appropriate business details become modified.
- In the fourth case, he attaches photos, like such a cover picture as well as a virtual guide.
- In the fifth case, he selects the particular domains as well as directs this to the site.