1. A character in a ASCII system has size 1 byte or 8 bit (1 or 0)
A). How many bit patterns are formed?
B). How many bit patterns have 3 bits 1?
C). How many bit patterns have an even number of bits 1?
Solution :
A) Number of bit patterns that can be formed : 28 bit patterns can be formed using 8 bits.
With n bits, 2n bit patterns are possible. So with 8 bits 28 bit patterns possible.
B) Number of bit patterns that have 3 bits 1 :
out of 8 bits , any 3 bits are selected to be 1 and other bits has to be 0.
There are ways to select 3 bits out of 8 bits. (we are selecting 3 bits to be 1 out of 8 bits. Which means rest 5 bits are 0 and we choose 3 bits to be 1).
hence there are bit patterns possible which has exactly 3 bits 1.
C) Bit patterns with even number of bits 1 :
even number of bits 1 = 0 number of bits 1 + 2 number of bits 1 + 4 number of bits 1 + 8 number of bits 1
= 1+ 28 + 70 + 1
= 100
hence there are 100 bit patterns that have an even number of bits 1.
if you have any doubts, you can ask in comment section.
Consider a virtual memory system with the following properties: 36 bit virtual byte address, 8 KB pages size, and 32 bit physical byte address. Please explain how you determined your answer. a. What is the size of main memory for this system if all addressable frames are used? b. What is the total size of the page table for each process on this processor, assuming that the valid, protection, dirty, and use bits take a total of 4 bits and...
Consider a pure paging system that uses 32-bit addresses (each of which specifies one byte of memory), contains 2 GB of main memory, and has a page size (ps) of 8 KB. 1. Given 32-bits for each PTE, how many total bytes of memory are required to store the page table?
What is the size of byte variable? A - 8 bit B - 16 bit C - 32 bit D - 64 bit
What is the size of byte variable? A - 8 bit B - 16 bit C - 32 bit D - 64 bit
please explain how they solved this. in a simple way. Example 5.1 How many padding bits must be added to a message of 100 characters if 8-bit ASCII is used for encoding and the block cipher accepts blocks of 64 bits? Solution Encoding 100 characters using 8-bit ASCII results in an 800-bit message. The plaintext must be divisible by 64. If MI and IPadl are the length of the message and the length of the padding 32 mod 64 This...
Suppose you have a byte-addressable virtual address memory system with 8 virtual pages of 64 bytes each, and 4-page frames. Assuming the following page table, answer the questions below: Page #Frame #Valid Bit0111312-03014215-06-07-0a) How many bits are in a virtual address? b) How many bits are in a physical address? c) What physical address corresponds to the following virtual addresses (if the address causes a page fault, simply indicate this is the case)? 1) Ox00 2) 0x44 3) OxC2 4) 0x80
A machine has a 16-bit byte-addressable virtual address space. The page size is 8 KB. How many pages of virtual address space exist? (25 points)
A UNIX-type file-system uses a disk block size of 1KB, 128 byte inodes, and 32 bit disk addresses. If the inode contains 64 bytes of data, 8 direct, 1 indirect, 1 double-indirect, and 1 triple- indirect blocks, apart from other file information. How many disk blocks would be required for storing files of sizes (a) 1 byte (b) 1024 bytes (c) 64 KB (d) 1MB ?
) Consider an 8-way associative 64 Kilo Byte cache with 32 byte cache lines. Assume memory addresses are 32 bits long. a). Show how a 32-bit address is used to access the cache (show how many bits for Tag, Index and Byte offset). b). Calculate the total number of bits needed for this cache including tag bits, valid bits and data c). Translate the following addresses (in hex) to cache set number, byte number and tag (i) B2FE3053hex (ii) FFFFA04Ehex...
Memory Sizing NOTE: K (kilo) means 1024, not 1000. A byte (B) is 8 bits. A kilobyte (KB) is therefore 8 x 1024 = 8192 bits. a) A 32 KB (kilobytes) memory has a 16 bit wordsize. How many words total can be stored in this memory? _________words b) A 256 KB memory has a 32 bit wordsize. How many bits are required to address this memory? _________ bits c) A computer memory has a 128 bit wordsize. It is made up...