Answer:
The solution or expression for each part is given below:
- int(s)
- s[len(s)-1]
- last.capitalize()+','+first.capitalize()
- str(x)
- s[5:]
Explanation:
Following are attached the images that show how these expressions will be used. I hope they will make the concept clear.
All the images below are respective to the questions given.
Answer: Three way handshake
Explanation:
The three way handshake is the process in which it established a connection at the destination device in the network. It also verifies the currently active services in the network.
The three way shake process basically uses in the transmission control protocol(TCP) and it also inform to the destination device about the communication session.
Three way handshake process are properly understand in the TCP segment header by the various values in the two host exchange.
Answer: Insertion steganography
Explanation: Insertion steganography is the way of encrypting the data with the help of a regular files and message. It is encrypted by the ordinary files because the identification of files can be neglected. This process is carried out just for the protection purpose in extra form and gets decrypted in the destination port .It has the working based on the replacement of the bits in a file .
Answer:
cubeVolume = toThePowerOf(cubeSide, 3)
Explanation:
The function toThePowerOf, receives two int arguments say, a and b, where a is the first argument and b is the second argument as follows:
toThePowerOf(a,b)
The function returns the first argument(a) raised to the power of the second argument (b) i.e a ^ b as follows:
toThePowerOf(a, b){
return a^b
}
In the call to the function, the first argument a, is replaced with the variable cubeSide and the second argument b is replaced with the value 3.
Hence, the returned result becomes cubeSide ^ 3 which is then stored in a variable cubeVolume as follows:
cubeVolume = toThePowerOf(cubeSide, 3)