Looking for MC 2025 COMP100 Introduction to Computer Science Tests W/P 1 test answers and solutions? Browse our comprehensive collection of verified answers for MC 2025 COMP100 Introduction to Computer Science Tests W/P 1 at learn2025.ukzn.ac.za.
Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!
What will be the output (or result) of running the following code?
mark = 75if mark > 75 and mark < 75: print("A") Which of the following statements (i to v) will print the following string exactly as shown? Note that it must print the statement as shown below, including punctuation and quotations. Choose all that apply. "Stop!" he yelled, "That’s my cat’s toy!"
print("Stop!" he yelled, "That's my cat's toy!") # i print('"Stop!" he yelled, "That\'s my cat\'s toy!"') # ii print(''''Stop!' he yelled, "That's my cat's toy!"''') # iii print(""" "Stop!" he yelled, "That's my cat's toy!" """) # iv print("Stop! he yelled, That's my cat's toy!") # v Each of the following expressions will produce a value (or result in an error) when it is evaluated. Match the expression to the type of the value it will produce. Choose “error” if the expression cannot be evaluated because of an error.
Which of the following are NOT valid numeric literals in Python? Choose all that apply.