Answer:
- common = []
- num1 = 8
- num2 = 24
- for i in range(1, num1 + 1):
- if(num1 % i == 0 and num2 % i == 0):
- common.append(i)
- print(common)
Explanation:
The solution is written in Python 3.
Firstly create a common list to hold a list of the common factor between 8 and 24 (Line 1).
Create two variables num1, and num2 and set 8 and 24 as their values, respectively (Line 3 - 4).
Create a for loop to traverse through the number from 1 to 8 and use modulus operator to check if num1 and num2 are divisible by current i value. If so the remainder of both num1%i and num2%i will be zero and the if block will run to append the current i value to common list (Line 6-8).
After the loop, print the common list and we shall get [1, 2, 4, 8]
Answer:
Option E Components that interact to produce information
Explanation:
Information system is a system to collect, analyze and disseminate information. An information system consists of five components that work with each other to produce information:
- Computer hardware - physical machine that works with information
- Computer software - a set of computer instructions that tell computer hardware how to perform a task
- Telecommunications - components that connect a group of hardware as to establish a network. This usually includes WiFI technology.
- Databases and data warehouses - the place where the digital data are kept and retrieved.
- Human resources and procedures - human expertise that run the system by following some standard procedures.
USB ports, headphone jack/microphone port, and of course, a power button.