Demo WGU Scripting-and-Programming-Foundations Exam Questions

Demo practice questions for guest users.

Section: Practice Mode 4 Questions
Demo Practice
Question 1

What would a string be used to store?

Correct Answer: B
Explanation:
In programming, a string is used to store sequences of characters, which can include letters,
numbers, symbols, and spaces. Strings are typically utilized to store textual data, such as words and
sentences12. For example, the word “positive” would be stored as a string. While strings can contain
numbers, they are not used to store numbers in their numeric form but rather as text. Therefore,
options A, C, and D, which involve numbers or boolean values, would not be stored as strings unless
they are meant to be treated as text.
Reference: 1: Coderslang: Become a Software Engineer - What is a String in Programming. 2:
Wikipedia - String (computer science).

Demo Practice Mode

You are viewing only the questions marked as Demo.

BACK TO EXAM