Answer: Option (D) is correct
Explanation:
Array subscripts are used for refereeing to a individual element in the array.It is created by subscript operator for naming it.It can define the value about location often element. Array subscript can contain whole numbers only.
- Other options are incorrect because array can be reset,other number along with the whole numbers can get stored in array and it can take high execution time.
- Thus, the correct option is option(D.)
Answer:
class Example:
def __init__(self, val):
self.val = val
def __gt__(self, other):
return self.val > other.val
def __sub__(self,other):
return abs(len(self.val) - len(other.val))
def main():
obj1 = Example('this is a string')
obj2 = Example('this is another one')
print(obj1 > obj2)
print(obj1 - obj2)
main()
\color{red}\underline{Output:}
Answer:
The answer to this question is given below in the explanation section.
Explanation:
In this given program there are two errors, first in line number 2 that stores a string value, not int. The second error is at line 6, a symbol "*" represents multiplication, not addition.
To solve these errors, in line #2, convert the input to an int variable value 1. To add the values of variables (value1 and value2), use the plus symbol "+" in the print statement at line #6.
The correct program is given below:
<em>value1= int(input("Enter first number: "))</em>
#get second number and store it into value2 variable.
<em>value2= int(input("Enter second number: "))</em>
#add the values store in variables (value1 and value2) and then print
<em>print (value1 + value2)</em>
You should design and develop the computer system with two serial ATA (SATA) hard drives installed on it.
<h3>What is a computer?</h3>
A computer can be defined as an electronic device that is designed and developed to receive data in its raw form as an input and it processes these data into an output (information), which can be used to perform a specific task through the use of the following computer parts:
<h3>What is a hard drive?</h3>
A hard drive can be defined as an electro-mechanical, non-volatile data storage device that is made up of magnetic disks (platters) that rotates at high speed.
Based on the information provided, we can logically deduce that you're required to design and developed a computer with two serial ATA (SATA) hard drives.
In conclusion, you should follow the aforementioned steps to develop this computer with two serial ATA (SATA) hard drives installed on it.
Read more on hard drive here: brainly.com/question/26382243
#SPJ1
NIC Ports use which RJ connector? RJ-45 internetworking device makes computers that are connected to separate segments appear and behave as if they're on the same segment.
There's a lot of confusion out there about which NIC ports use which RJ connectors. RJ-45 internetworking devices make computers that are connected to separate segments appear and behave as if they're on the same segment. So, which one do you use?
The answer is actually quite simple. If you're connecting two computers together, you'll need to use an RJ-45 cable. If you're connecting a computer to a modem or router, you'll need to use an RJ-11 cable.
RJ-45 cables are actually quite common and can be found at most electronics stores. If you're not sure which one you need, just ask a sales associate for help.
Learn more on internetworking device here:
brainly.com/question/28342757
#SPJ4