Answer:
Interface
Explanation:
Java does not supports multiple inheritance by class, but we can implement multiple inharitacnce in java using interface, with interface we uses implements keyword.
Example-
Declare interface like below code -
interface parent{
}
and use in child class like below code -
class Child1 implements interface{
}
class Child2 implements interface{
}
Answer:
Option A is the correct choice answer for the above question.
Explanation:
In an MS-Powerpoint document, when a user wants to copy the selected shape and drag that shape for use in slides then he needs to--
- Select the shape
- Press the Ctrl key and
- drag that shape on the slide of the powerpoint.
Then the user gets the shape on the slide for their personal use.
The question scenario also suggests the same which is described above. hence Option A is the correct answer while the other is not because--
- Option B suggests 'ESC' which is used to escape any running program.
- Option C suggests about ALT key which is of no use for the MS-Powerpoint document.
- Option D suggests about TAB key which is used to make the space between two texts or diagram.
Answer:
Written in Python
for num in range(1,1001):
sum=0
for j in range(1,num+1):
if num%j==0:
sum = sum + j
if num == sum:
print(str(num)+" is a perfect number")
Explanation:
This line gets the range from 1 to 1000
for num in range(1,1001):
This line initializes sum to 0 for each number 1 to 1000
sum=0
This line gets the divisor for each number 1 to 1000
for j in range(1,num+1):
This following if condition line checks for divisor of each number
<em> if num%j==0:
</em>
<em> sum = sum + j
</em>
The following if condition checks for perfect number
if num == sum:
print(str(num)+" is a perfect number")
Answer: the purpose of a web browser is to help answer and needed questions, and to get to sites.
Explanation: