Answer:
The appropriate answer is "Distributed system".
Explanation:
- Whenever used by linking several autonomous computers as a single system, considered as distributed system. It could be consist of several kinds of mainframes, processors as well as stationary machines, it can be programmed.
- A distributed machine has massive program modules, which operate as a single device on many machines.
Solution:
Users of an access point share the transmission capacity of the access point. The throughput a user gets is called the bits per seconds.
Thus this is the required answer.
Answer:
import random
randomlist = []
for i in range(0,20):
n = random.randint(-29,30)
if n < 0 :
n = 100
randomlist.append(n)
print(randomlist)
Explanation:
The random module is first imported as it takes care of random. Number generation.
An empty list called randomliay is created to hold the generated random integers.
Using a for loop, we specify the range of random numbers we want.
Inside the for loop ; we attach our generated random integer which will be in the range (-29 to 30) in a variable n
For each n value generated, if the value is less than 0( it is negative, since all the values are integers), replace the value with 100.
Answer:
B. a tag
Explanation:
In the structure definition given below:
struct Employee
{
string name;
int idNum;
};
Employee corresponds to the tag of the structure. The tag is used to create additional instances of the structure. For example:
struct Employee e1;
struct Employee e2;
name and idNum are members of the Employee structure and are referenced using the dot notation. e.g.,
struct Employee e1;
e1.idNum=1;
Answer:
A. The function definition must appear before the function is called
Explanation:
Given
The above lines of code
Required
Determine the error in the program
In python, functions has be defined before they are called but in this case (of the given program), the function is called before it was defined and this will definitely result in an error;
<em>Hence, option A answers the question</em>
The correct sequence of the program is as follows:
<em>def evenOdd(n):
</em>
<em> if n % 2 == 0:
</em>
<em> return "even"
</em>
<em> return "odd"
</em>
<em>num = int(input("Enter an integer: "))
</em>
<em>print("The integer is", evenOdd(num))
</em>
<em />