Basic Input-Output System
An if or else statement can be
Answer:








Explanation:
Solving (a): To base 10

We simply multiply each digit by a base of 16 to the power of their position.
i.e.


In hexadecimal

So:



This gives:


In hexadecimal

So:


Solving (b): To base 10

We simply multiply each digit by a base of 2 to the power of their position.
i.e.





Solving (c): To base 16

First, convert to base 10
In (b)

Next, is to divide 781754 by 16 and keep track of the remainder





Write out the remainder from bottom to top

In hexadecimal


So:


In b

Next, is to divide 11057389 by 16 and keep track of the remainder






Write out the remainder from bottom to top

In hexadecimal


So:

Solving (d): To octal

Divide 74510 by 8 and keep track of the remainder






Write out the remainder from bottom to top


Divide 67210 by 8 and keep track of the remainder






Write out the remainder from bottom to top

If your computer is old it may be the screen is dying or if its brand new it would probably be the power supply check your battery or cables
Answer:
Following are the program in the Python Programming Language.
import json #import package
#define function
def read_json(info):
return json.loads(info)#load data in variable
#call and print the function
print(read_json('[{'A': 10}, {'Y': 16}, {'U': 28}]'))
<u>Output</u>:
[{'A': 10}, {'Y': 16}, {'U': 28}]
Explanation:
following are the description of the code
- Define function "read_json()" and pass an argument "info" inside it.
- Return the data inside from the "load()" function .
- Call the function i.e "read_json" and passing the value to that function.
- Print function print the data which is inside the "read_json" function.