Answer:
Explanation:
The following code is written in Java and creates the recursive function to find the longest common substring as requested.
static int lengthOfLongestSubsequence(String X, String Y) {
int m = X.length();
int n = Y.length();
if (m == 0 || n == 0) {
return 0;
}
if (X.charAt(m - 1) == Y.charAt(n - 1)) {
return 1 + lengthOfLongestSubsequence(X, Y);
} else {
return Math.max(lengthOfLongestSubsequence(X, Y),
lengthOfLongestSubsequence(X, Y));
}
}
Answer:
RAID level 5 can be used to compensate a limited number of available disks.
Explanation:
There are two type of RAID
- Software RAID
- Hardware RAID
Software RAID
deliver services form the host.
Hardware RAID
provides hardware services.
RAID has levels
0, 1, 5, 6, and 10
RAID 0, 1, and 5 work on both HDD and SSD media,
4 and 6 also work on both media.
RAID 0 :Striping
In this level minimum of two disks,RAID 0 split the file strip the data.Multiple hard drive are used to split the data.
RAID 1 : Mirroring
In this level Minimum two disk require and provide data tendency.
RAID 5 :Stripping with parity
Parity is a binary data.RAID system calculate the value which system used to recover the data.
Most RAID system with parity function store parity blocks.
RAID 5 combines the performance of RAID 0 with redundancy of RAID 1.
RAID 5 level should minimize the fault tolerance.
Answer:
try powering it off the turn it back on
Explanation:
Answer:
A and B have different output:
A output will be 1
B output will be 123
Explanation:
A
X = 0
do x < 3
x = x+1
print x
while
B
X = 0
do x = x+ 1
print x
while x < 3
For statement A the condition statement which suppose to be after "while" is not set therefore the value of x will be printed.
For statement B the condition statement is set "x < 3" in front of "while" thereby result in iteration until the condition is false.
Statement A output will be 1
Statement B output will be 123
Answer:
Check the explanation
Explanation:
A packet filter firewall is used as a check point between internal corporate network to the outside internet. It blocks all the inbound traffic from the outside hosts trying to initiate a direct TCP connection to the internal corporate webserver. The network design with firewall is shown in the attached image below:
The figures in the attached image below shows an internal corporate network is protected with a packet filter firewall to minimize the inbound traffic from the external network or an internet. Therefore, the packet filter is used as a check point between the network.
The packet filter blocks all attempts by the outside hosts in order to initiate a direct TCP connection to the internal webserver of the internal corporate network.
Going by the second part of the attached image below can can therefore conclude that:
• Rule 1 specifies that, deny any packet with the destination address 5.6.7.8 if the STN flag of TCP header is set.
• Rule 2 specifies that, allow the inbound email traffic from the external source.
• Rule 3 specifies, allows the Outbound TCP traffic from the internal corporate network.
• Rule 4 specifies, allows outbound Email traffic from the internal corporate network to the external network.
• Rule 5 specifies, block any traffic from any source to the any destination.