Answer:
I. The class methods and instance methods of one class may call the public class methods of another class using dot notation and referencing the name of the other class.
Explanation:
Private methods are being accessed from only within the class or scope specified. No other means of accessibility is possible, and even through inheritance. And instance methods can never call without using dot notation, any of the class method of the same class. Hence second and third options are not correct. And the class method and the instance methods of one class may call the public class methods of another class using the dot notation and referencing the name of the other class. Hence, the correct option is the first one.
Answer:
nums = []
while True:
in = input()
if in:
nums.append(in)
else:
break
if nums:
avg = sum(nums) / len(nums)
for i in range(len(nums)):
if nums[i] == avg:
print(f"index: {i+1}")
print(nums[i])
else:
print(-1) # if there aren't any values in nums
Explanation:
Assuming that you are coding in Python 3x. The last 'else' statement is an edge case that you might want to consider, I don't know what you want to put there, but I'm just going to leave it as -1.
Answer:
Communication
Explanation:
The ability to communicate clearly when working with customers is a key skill because miscommunications can result in disappointment and frustration. The best customer service professionals know how to keep their communications with customers simple and leave nothing to doubt.
Answer: B. Use a variety of animations on most slides to keep your audiences attention.
Explanation:
While animations can serve as a tool to make your presentation more engaging, too many of them can end up being a distraction and can end up potentially frustrating the audience.
Answer:
Statement to get input values:-
cin>>birthMonth>>birthYear;
Statement for output:-
cout<<birthMonth<<"/"<<birthYear<<endl;
Explanation:
The statements are in C++ language.
To get the input we use cin in C++ with >>.
We are taking the input of birthMonth and birthYear.
For printing we use cout .We have printed birthMonth then slash and then birthYear.