Answer:
an information key that explains how information in a chart is represented by colors or patterns
Explanation:
This is the information that is used to explain the data in the graph.
greatflombles or gr8flombles or go2flombles
Smaller, as it removes search results.
Answer:
sqsum4
Explanation:
So to raise a number to a power in python, you can use the ** operation, which is usually confused with the ^, which is an operation, but it is not for raising numbers to a power. It is the xor bit operation, which if you don't know at the moment, it's fine, since it's not necessary for this. each of these lists uses a generation comprehension which is generally defined as: (x for x in object if condition) with the if condition being optional, but in this case it's necessary. If it's a bit confusing, you can define a generator using a function so it's a bit more spread out:
def generator(object):
for x in object:
if condition:
yield x
Although in this instance were going to be performing some operation on x, which in this case is squaring it. So let's just look at the two functions that use the **, since they should be the only options that will be correct.
sqsum1(nums):
This function does square x, except it uses incorrect syntax. The condition should come after the for loop. Python likely wont tell you this, because it may think you're trying to do something else. You can do one line if statements like this: a if condition else b, which will return a if the condition is true, and b if it isn't. So it may think that you're trying to do this one line if statement, and say that you're missing an else. The function could even implement in this way: <em>x**2 if x > 0 else 0 for x in nums</em>. This way if the x is negative it counts as 0, or in other words isn't counted towards the sum. But without this fix, the function will raise a syntax error
sqsum4(nums):
This will square each number in x only if the current element "x" is greater than 0, or in other words positive. And then it returns the sum. So this function returns the expected output
Answer:
1. E
2. C
3. F
4. D
5. A
6. B
Explanation:
CPU: this is known as the central processing unit and it is considered to be the brain of a computer system. It is the system unit where all of the processing and logical control of a computer system takes place.
A. Decode unit: decodes instructions and data and transmits the data to other areas in an understandable format.
B. Register unit: contains many separate, smaller storage units. Modern CPUs need only a few nanoseconds to execute an instruction when all operands are in its registers.
C. Bus unit: it is used to connect all the other major components together, accepts data, and sends data through the input and output bus sections.
D. Control unit: control of the overall operations of the CPU. The component of the central processing unit (CPU) that controls the overall operation of a computer is the control unit. It comprises of circuitry that makes use of electrical signals to direct the operations of all parts of the computer system. Also, it instructs the input and output device (I/O devices) and the arithmetic logic unit how to respond to informations sent to the processor.
E. Arithmetic logic unit (ALU): performs mathematical functions on data stored in the register area.
F. Cache: small temporary memory area that separates and stores income data and instructions.