Answer:
a. 6 bits
b. 1
Explanation:
Ans (a)
40 Characters need to be represent by binary coded Zebronian (BCZ) , So You will need 6 bits.
5 bits wold only give you 32 = 2 x 2 x 2 x 2 x 2 unique characters.
So 6 bits would allow you to represent 64 characters.
Ans(b)
BCD = Binrary Coded Decimal is very common in electronics, particularly it displays numerical data.
BCD Encodes each digit of a decimal number into 4 digit binary form.
Each decimal digit is indiviidually converted to oits binary equivalent
For Example : 146 , the decimal degits are replaced by 0001 , 0100 and 0110 respectively
Addition
1 0 = 10 is binary value of 2 2
+1 1 = 11 is binary value of 3 + 3
---------- -----------
1 0 1 5 Ans
Subtraction
1 1= binary value of 3 3
- 1 0 = binary value of 2 - 2
--------- -----------
0 1 1 Ans
Answer:
The answer to this question is the option "B".
Explanation:
In this question, the answer is option B which is 1,000 because the kernel is a central part of an operating system. kernel manages the computer and the hardware operations. most especially memory and CPU time. It also sheared a memory variable is allocated to thread blocks. That's why the answer to this question is 1,000.
Answer:
D
Explanation:
The answer is D because if you're looking for lightweight materials, you'll be dealing with chemistry, and chemistry is sience.
Answer:
The program is as follows:
word = input("Enter a word: ")
if word:
if len(word) <= 4:
word = word[::-1]
else:
word = word[0]+word[1]+word[-2]+word[-1]
print(word)
else:
print('empty!')
Explanation:
This gets input for word from the user
word = input("Enter a word: ")
If input is not empty
if word:
This checks if the length is less than or equal to 4 characters
if len(word) <= 4:
If yes, this reverses the word
word = word[::-1]
If otherwise,
else:
This gets the first, second, second to last two characters
word = word[0]+word[1]+word[-2]+word[-1]
Print the new string
print(word)
Print empty, if input is empty
<em>else:
</em>
<em> print('empty!')</em>