Answer:
B. How many programming statements the program contains
Explanation:
If a program is intended to be able to process large amounts of data, then the ability of the program to process larger data sets is heavily affected by
- execution time
- size of memory the program requires
- storage space the program requires as it runs.
The length of the statements the program contains does not much affect program performance.
Answer:
product_name = input("Enter product name : ")
if product_name=="pen"or"book"or"box"or"pencil"or"eraser":
if product_name == "pen":
amount = 10
print(f"Product Name: {product_name}\nCost: {amount} rupees")
if product_name == "book":
amount = 100
print(f"Product Name: {product_name}\nCost: {amount} rupees")
if product_name == "box":
amount = 150
print(f"Product Name: {product_name}\nCost: {amount} rupees")
if product_name == "pencil":
amount = 5
print(f"Product Name: {product_name}\nCost: {amount} rupees")
if product_name == "eraser":
amount = 8
print(f"Product Name: {product_name}\nCost: {amount} rupees")
else:
print("Item not found!")
Explanation:
The python program is a code of nested if-statements that compares the input string to five items of the first if-statement. For every item found, its code block is executed.
Plenty of space in the palm rest
The correct answer is A it transfers control to the next loop in the program.
The most valid answer is that the break statement Exits the loop and continues executing the program, but assuming that there are other loops, the control of the program will go to them since the first loop is broken out of.
The answer is A. A firewall is a piece of software that monitors all connections to make sure no attacks can be made in the internal or external networks