Answer:
C. Generalization
Explanation:
The relationship between subclass and superclass is generalization. For example there will be generalization between the class Employee and class HourlyEmployee which inherits from it. All the other options are not suitable.
<u>Paired programming:</u>
Paired programming is a new technique where one person gets one another to<em> write the code</em>. Here one will write the code and other will start verifying as the type.
So we might think it is waste to employ two person for same task but it is not so. There are many <em>benefits in incorporating this technique</em>. Let us see those benefits one by one.
- <em>Inter-personal skill gets improved
</em>
- <em>Lower amount of coding mistake
</em>
- <em>Learn from each other
</em>
- <em>Peer review enhance collaboration
</em>
Challenges expect to arise during pair-programming
-
Two heads are superior to one. On the off chance that the driver experiences a <em>hitch with the code</em>, there will be two of them who'll take care of the issue.
- Builds up your <em>staff's relational aptitudes</em>. Working together on a solitary venture encourages your group to welcome the estimation of <em>correspondence and collaboration. </em>
Overcome Method
The most ideal approach to move <em>toward blending</em> is to accomplice two software engineers and have them share a PC. The pair ought to have the option to choose how to part the work, and it is prudent that they should <em>switch jobs frequently.</em>
Answer:
shortNames = ['Gus', 'Bob','Zoe']
Explanation:
In this assignment, your knowledge of list is been tested. A list is data structure type in python that can hold different elements (items) of different type. The general syntax of a list is
listName = [item1, "item2", item3]
listName refers to the name of the list variable, this is followed by a pair of square brackets, inside the square brackets we have items separated by commas. This is a declaration and initialization of a list with some elements.
The complete python code snippet for this assignment is given below:
<em>shortNames = ['Gus', 'Bob','Zoe']</em>
<em>print(shortNames[0])</em>
<em>print(shortNames[1])</em>
<em>print(shortNames[2])</em>
Answer:
Begin the statement with the proper keyword to start the loop
Explanation:
Given
The code segment
Required
Fix the code
The first line of the code segment is meant to be a for loop, but it does follow the right syntax.
This is so because the for keyword is missing.
The first line should be corrected and replaced with:
for count in range(80):
Hence, option (b) is correct
Answer:
False
Explanation:
The scheme where you can find the greatest common divisor (GCD) of two integers by repetitive application of the division algorithm is known as Euclidean Algorithm.
The Euclidean Algorithm for calculating GCD of two numbers X and Y can be given as follows:
- If X=0 then GCD(X, Y)=Y since the Greatest Common Divisor of 0 and Y is Y.
- If Y=0 then GCD(X, Y)=X since the Greates Common Divisor of 0 and X is X.
- Let R be the remainder of dividing X by Y assuming X > Y. (R = X % Y)
- Find GCD( Y, R ) because GCD( X, Y ) = GCD(Y, R ).
- Repeat the above steps again till R = 0.