Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

which of the following is the only correct way to write a string? selec…

Question

which of the following is the only correct way to write a string?
select the one choice that best answers the prompt above:
answer 1
hello
answer 2
both hello or hello are correct ways to create strings
answer 3
hello
answer 4
hello

Explanation:

Brief Explanations

In programming (Computer Science sub - field), strings can be written using either double quotes ("") or single quotes (''). For example, in Python, both "hello" and 'hello' are valid string literals.

Answer:

  1. both "hello" or 'hello' are correct ways to create strings