Answer:
The correct answer to the following question will be Error-detection.
Explanation:
Error-detection: The detection of errors caused during the transmission from the transmitter to the receiver by damage and other noises, known as Error-detection. This error-detection has the ability to resolute if something went wrong and if any error occurs in the program.
There are mainly three types of error-detection, these types can be followed:
- Automatic Repeat Request (ARQ)
- Forward Error Correction
- Hybrid Schemes
There are two methods for error-detection, such as:
- Single parity check
- Two-dimensional parity check
Answer:
The answer is: Only A is correct.
Explanation:
Variables in a program can assume different values at different times, and the program can then produce different results, depending on circumstances, so A is correct.
In a computer language, a reserved word (also known as a reserved identifier) is a word that cannot be used as an identifier, such as the name of a variable, function, or label – it is "reserved from use". This is a syntactic definition, and a reserved word may have no meaning. So, B is incorrect.
Hence, the answer is: Only A is correct.
Answer:
The program to this question as follows:
Program:
targetValue = 0.3333 #defining variable targetValue and assign value
sensorReading = 0.0 #defining variable sensorReading and assign value
sensorReading = 1.0/3.0 #calculate value in sensorReading variable
Val=sensorReading - targetValue
#calculate the difference and store in Val variable
if (Val < 0.0001): #use of if block to check condition
print ("Equal") #print value
else: #else block
print ("Not equal") #print value
Output:
Equal
Explanation:
In the above Python program code, there are two variables "targetValue and sensorReading" is defined, in which targetValue store a value, that is "0.3333", and sensorReading holds a value, that is "0.0".
- In the next step, the "Val" variable is defined, that calculate the difference between both variable, that conditional statement is used.
- In if block, if the value is less then "0.0001", it will print value "Equal", otherwise, it will go to the else block, that will print "Not equal".
Answer:
Please the code snippet below, the code was writen in Kotlin Language
Explanation:
const val inches:Int= 12 . //This is the const value
fun main(args: Array<String>) {
//this will ask the user for input
print("Enter a number")
//this will do the conversion
var valueInFeet= Integer.valueOf(readLine())*inches
print("The value in feet is $valueInFeet feet(s)")
}
The answer has to be true because everything makes sense