Fiveable
Fiveable

Key Term: String

Definition

A string is a sequence of characters, such as letters, numbers, and symbols, that is used to represent text in programming. It is often enclosed in quotation marks.

Analogy

Think of a string as a necklace made up of individual beads. Each bead represents a character, and when you put them together in a specific order, they form words or sentences.

Related terms

Concatenation: Combining two or more strings together to create a new string.

Indexing: Accessing individual characters within a string by their position.

Length: The number of characters in a string.

"Key Term: String" appears in:

collegeable - rocket pep

Are you a college student?

  • Study guides for the entire semester

  • 200k practice questions

  • Glossary of 50k key terms - memorize important vocab



© 2024 Fiveable Inc. All rights reserved.

AP® and SAT® are trademarks registered by the College Board, which is not affiliated with, and does not endorse this website.


© 2024 Fiveable Inc. All rights reserved.

AP® and SAT® are trademarks registered by the College Board, which is not affiliated with, and does not endorse this website.