Answer: d. the time quantum should be as small as possible.
Explanation: Round robin is a CPU scheduling algorithm. If the time quantum is extremely small, number of context switches is very high, round robin scheduling will be same as processor sharing algorithm. Then the algorithm is good. Very large time quantum will make response time of processes too much which may not be tolerated in interactive environment.
Answer:
count = 0
months = 0
years = int(input("Enter the number of years: "))
for year in range(1, years+1):
cars_sold = int(input("Enter the number of cars sold in first six months: "))
count += cars_sold
months += 6
print("Number of months: " + str(months))
print("Number of cars sold in total: " + str(count))
print("Average number of cars sold per month: " + str(count / months))
Explanation:
Initialize the variables
Ask the user for the number of years
Create a for loop that iterates depending on the given number of years
Ask the user for the number of cars sold in the first six months of the year
Increment the count by given number and increment the months by 6 after each iteration
Print the months, count and, average
The three primitive data types used in this course are int (integer numbers), double (decimal numbers), and boolean (true or false). Each variable has associated memory that is used to hold its value.
Answer:
Copyrighted.
Explanation:
Patent can be defined as the exclusive or sole right granted to an inventor by a sovereign authority such as a government, which enables him or her to manufacture, use, or sell an invention for a specific period of time.
Generally, patents are used on innovation for products that are manufactured through the application of various technologies.
Basically, the three (3) main ways to protect an intellectual property is to employ the use of
I. Trademarks.
II. Patents.
III. Copyright.
Copyright law can be defined as a set of formal rules granted by a government to protect an intellectual property by giving the owner an exclusive right to use while preventing any unauthorized access, use or duplication by others.
Hence, a copyrighted image would require you to obtain permission from the author to use the image and possibly pay a royalty to the author for its use.
True. I think we should trust ourselves and interaction with someone including teachers, classmates and parents...We must be developing our critical thinking skills.