A _________ is a data type typically used to hold a collection of printable characters such as words, sentences, or longer sequences.

CS172 - Strings Week 12

Flashcard
•
Other
•
12th Grade
•
Hard
Quizizz Content
FREE Resource
Student preview

11 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Back
string
2.
FLASHCARD QUESTION
Front
When a literal value is assigned to a string, it should be surrounded by double _________.
Back
quotes
3.
FLASHCARD QUESTION
Front
To find the length of a string (number of characters), we can use the function.
Back
length
4.
FLASHCARD QUESTION
Front
It is also possible to use the arithmetic operator + with strings to _________ the two strings.
Back
concatenate
5.
FLASHCARD QUESTION
Front
This means you start at the beginning of a string, select each character in turn, do something to it, and continue until the end.
Back
traversal
6.
FLASHCARD QUESTION
Front
In order to use strings in your program you must first include the string _________.
Back
library
7.
FLASHCARD QUESTION
Front
Which of the following is closest equivalent to the code below?
char str[] = "hello";
Options:
char str[10] = "hello";
char str[10] = {'h','e','l','l','o',\0};
char str[10] = {'h','e','l','l','o'};
char str[6] = "hello";
Back
char str[6] = "hello";
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
IDs

Flashcard
•
University
12 questions
IT Concept Terminology II

Flashcard
•
11th Grade
9 questions
Java Methods

Flashcard
•
12th Grade
9 questions
Java String and Character Classes Revision

Flashcard
•
11th Grade
10 questions
Python - Slicing Strings - 2

Flashcard
•
12th Grade
10 questions
Python - Slicing Strings - 2

Flashcard
•
12th Grade
10 questions
Guess the food

Flashcard
•
KG - 12th Grade
8 questions
hello kitty y sus amigos

Flashcard
•
KG
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Other
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University