Answer:
give following examples please
Answer:
Written in Python:
fruit_dictionary = {}
fruit_dictionary = {'apple': 'red', 'orange': 'orange', 'banana': 'yellow'}
Explanation:
First (although, not necessary), we create an empty dictionary named fruit_dictionary on line 1
Next, we populate the dictionary using the following syntax:
{key-1:value-1, key-2:value-2,......,key-n:value-n}
In this case, the entry would be:
{'apple': 'red',
'orange': 'orange',
'banana': 'yellow'}
The items on the first column (i.e. apple, orange and banana) are the keys while the items on the second (i.e. red, orange and yellow) are the values of the dictionary
To print the items in the dictionary, you can add the following line of code:
<em>print(fruit_dictionary.items()) </em>
Answer:
Your answer is <em>I think </em>A) A loop
Explanation:
In computer programming, a loop is a sequence of instruction s that is continually repeated until a certain condition is reached.
Answer:
0010
Explanation:
Serially left shifted means that the left most bit will enter the register first. The left most bit already stored in the register will move out of the sequence. The "bold" bits mentioned below highlight these left most bits:
Initial State of the Register:
0000
Group of bits entering:
1011
<u>First Clock Cycle:</u>
0000 <em>(This bold bit will move out)</em>
1011 <em>(This bold bit will move in from right side, shifting the whole sequence one place to the left).</em>
The resulting Sequence:
0001
<u>Second Clock Cycle:</u>
0001 <em>(This bold bit will move out)</em>
1011 <em>(This bold bit will move in from right side, shifting the whole sequence one place to the left).</em>
The resulting Sequence:
0010 <em>(Final Answer)</em>