Answer:
Bill is building a project network that involves testing a prototype. he must design the prototype (activity 1), build the prototype (activity 2), and test the prototype (activity 3). activity 1 is the predecessor for activity 2 and activity 2 is the predecessor for activity 3. if the prototype fails testing, bill must redesign the prototype; therefore, activity 3 is a predecessor for activity 1. this is an example of
b. looping
Explanation:
- The given example is of looping because each activity is leading to another activity on the completion of some conditions.
- The answer a is not valid as it is not just an example of conditional statements rather it is a loop which will keep moving until unless reached a situation to end it.
- The option c, d an e are not right options for the given example.
Answer:
Explanation:
price = eval(input("price of item: "))
quantity = eval(input("quantity of item: "))
sales_tax = 0.08 # 8% sales tax
total_cost = price*quantity
total_cost_with_tax = total_cost + total_cost*sales_tax
print("total cost: "+str(total_cost))
print("total cost + 8% sales tax: "+str(total_cost_with_tax))
False a thesaurus are a list of synonyms or antonyms
Answer:
C. Byte pair encoding is an example of a lossless transformation because an encoded string can be restored to its original version.
Explanation:
Byte pair encoding is a form of encoding in which the most common pairs of consecutive bytes of data are replaced by a single byte which does not occur within the set of data.
For example, if we has a string ZZaaAb, it can be encoded if the pairs of string ZZ are replaced by X and the second pair by Y. So, our data now becomes XYAb.
To get our original data, that is decode it, we just replace the data with the keys X = ZZ and Y = aa thus allowing our original data to be restored.
Since our original string is restored without loss of data, it implies that <u>byte pair encoding is an example of a lossless transformation because an encoded string can be restored to its original version.</u>