Answer:
(a) What is the best case time complexity of the algorithm (assuming n > 1)?
Answer: O(1)
(b) What is the worst case time complexity of the algorithm?
Answer: O(n^4)
Explanation:
(a) In the best case, the if condition will be true, the program will only run once and return so complexity of the algorithm is O(1)
.
(b) In the worst case, the program will run n^4 times so complexity of the algorithm is O(n^4).
Answer:NULL Scan
Explanation:RFC 793(Request for comments) is a type of RFC command labeled with the number 793 which can operate with the TCP protocol.They are sort of document form which is from IETF( Internet Engineering Task Force ).
The null scan is scanning protocol used by legal as well as illegal hackers for working in the transfer control protocol architecture. It is used for the identification of the the ports and holes in TCP servers.they can also have the negative impact if used by the illegal hackers.
9) Which date is assigned the serial number of 1?
A. January 1, 1700
B. January 1, 2000
D. January 1, 1800
Answer
First part:
The transmitted 8-bit sequence for ASCII character '&' with odd parity will be 00100110. Here leftmost bit is odd parity bit.
Second part:
The invalid bit sequence are option a. 01001000 and d. 11100111
Explanation:
Explanation for first part:
In odd parity, check bit of either 0 or 1 is added to the binary number as leftmost bit for making the number of 1s in binary number odd.
If there are even number of 1s present in the original number then 1 is added as leftmost bit to make total number of 1s odd.
If there are odd number of 1s present in the original number then 0 is added as leftmost bit to keep the total number of 1s odd.
Explanation for second part:
A valid odd parity bit sequence will always have odd number of 1s.
Since in option a and d, total number of 1s are 2 and 6 i.e. even number. Therefore they are invalid odd parity check bit sequences.
And since in option b and c, total number of 1s are 5 and 7 i.e. odd numbers respectively. Therefore they are valid odd parity check bit sequences.
Answer: A) remove()
Explanation:
The remove() function removes an existing file from the server but it does not affect the existing directory and file. We can also ease and remove files in the file handling by using the remove() function. And it is built-in function that removes any type of the data from the function by taking values in the parameter whose values are equal with the passing value in the parameter.