Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

question: 17 which of the following statements is true about print stat…

Question

question: 17
which of the following statements is true about print statements?
i. in order to print a string literal, the string must be enclosed in quotes.
ii. each print statement will be printed on its own line.
iii. print statements will not let you print string and number characters in the same statement.
iv. print statements are how you display text on the screen.
i, iv
ii, iii
i, ii, iv
i, iii, iv

Explanation:

Brief Explanations
  • Statement I: In programming (e.g., Python), string literals need quotes (e.g., "Hello").
  • Statement II: Print statements don't always go on new lines. In Python, print("a", end = " ") keeps output on same line.
  • Statement III: You can print strings and numbers together. In Python, print("a", 1) works.
  • Statement IV: Print statements are for screen display (core purpose).

Answer:

I, IV