Answer:
Well, this code would box the whole body of an html document. by using the relative value for position, you are telling it to position relative to its normal position, which the top left corner is at (0,0). by using left: 50px, you are telling the box to set the left margin edge to 50px and by using top: 50px, you are telling it to set the top margin edge to 50px. by doing this shifting, the top left corner of the box, which is at (0,0) would be positioned at (50,50)
Answer:
The function in python is as follows
def is_present(num,list):
stat = False
if num in list:
stat = True
return bool(stat)
Explanation:
This defines the function
def is_present(num,list):
This initializes a boolean variable to false
stat = False
If the integer number is present in the list
if num in list:
This boolean variable is updated to true
stat = True
This returns true or false
return bool(stat)
Answer:
Opcode = 3
Mode =2
RegisterRegister =7
AR = 20
Explanation:
a) Number of addressing modes = 4 = 22 , So it needs 2 bits for 4 values
Number of registers = 65 = 1000001 in binary , So it needs 7 bits
AR = 20
Bits left for opcode = 32 -(2+7+20) = 3
Answer:
Ports 20 and 21
Explanation:
For the FTP to work, there are two parts that are required; the command and the data. These two parts are sent on the two ports 21 and 20 respectively. If the firewall is indeed blocking connections on ports 21 and 20, then your FTP will not work.
Hence, you need to open ports 20 and 21 to allow FTP to remain functional.
Cheers.