Answer:
Modulus operator are useful in many circumstances and it is commonly used to generate the random number. It basically reduce the number into random number in a small range.
It also describe that whether, the one number is a factor of another or not.
In C language, the modulus operator provide the remainder after diving the greater value with the smaller value. If the smaller number are divided by the larger number then, the quotient become zero.
Answer:
ls -pla > mydir
Explanation:
ls is the command to list the contents of the directory.
-p option indicate / as the designator for directories
-l options enables line by line entries for files
-a option lists all files including special files starting with .
> is used for redirecting the output of the ls command to the specified file.
So ls -pla > mydir will run ls command with -pla option and populate the file mydir with the contents of the result.
Answer: C
Explanation:
Public Domain mean public owns it and it don’t belong to an individual author or artist. Anyone can use a public domain without obtaining permission but can’t ever own it
Answer:
10010101 + 00101110 = 1 1 0 0 0 0 1 1 , 10010101 - 00101110 = 0 1 1 0 0 1 1 1,
01101101 + 01110011 = 1 1 1 0 0 0 0 0 , 01101101 - 01110011 = - 1 1 1 1 1 0 1 0
Explanation:
10010101 + 00101110 = 1 0 0 1 0 1 0 1
+ <u>0 0 1 0 1 1 1 0</u>
<u>1 1 0 0 0 0 1 1</u>
In binary, 1 plus 0 is 1, but 1 plus 1 ( which conventionally is two) is divided by 2 and the result is carried-out, while the remainder is used as the answer.
10010101 - 00101110 = 1 0 0 1 0 1 0 1
- <u>0 0 1 0 1 1 1 0</u>
<u>0 1 1 0 0 1 1 1</u>
Subtraction in Binary calculation, a borrow to a 0 value is equal to two, this law is implemented in a case where 1 is subtracted from 0 ( which is impossible).
01101101 + 01110011 = 0 1 1 0 1 1 0 1
+ <u>0 1 1 1 0 0 1 1</u>
<u>1 1 1 0 0 0 0 0</u>
<u />
01101101 - 01110011 = 0 1 1 0 1 1 0 1
- <u>0 1 1 1 0 0 1 1</u>
- <u>1 1 1 1 1 0 1 0</u>
At the end of the subtraction, if the value subtracted from in less than the subtracted number, two is borrowed and the result becomes negative or signed.