Multiple choice

What data type would you use for: "Hello World"

  1. int

  2. String

  3. char

  4. boolean

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

A string is a sequence of characters used to represent text. 'Hello World' is a text sequence, making String the correct data type.