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
Python - Slicing Strings - 2

Flashcard
•
12th Grade
10 questions
Flashcard1-Intro-to-Java

Flashcard
•
University
12 questions
Topic 1 C++ Programming

Flashcard
•
12th Grade
10 questions
CMP128 Java Ch. 04 Loops Pt. 2

Flashcard
•
University
5 questions
Christmas Math

Flashcard
•
KG
13 questions
Lecture 2 Flashcard

Flashcard
•
12th Grade
15 questions
MySQL Functions

Flashcard
•
12th Grade
9 questions
STRING MANIPULATION (PYTHON)

Flashcard
•
11th - 12th Grade
Popular Resources on Quizizz
10 questions
Chains by Laurie Halse Anderson Chapters 1-3 Quiz

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
15 questions
Character Analysis

Quiz
•
4th Grade
12 questions
Multiplying Fractions

Quiz
•
6th Grade
30 questions
Biology Regents Review #1

Quiz
•
9th Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
50 questions
Biology Regents Review: Structure & Function

Quiz
•
9th - 12th Grade
Discover more resources for Other
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
50 questions
Biology Regents Review: Structure & Function

Quiz
•
9th - 12th Grade
20 questions
Taxes

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

Quiz
•
9th - 12th Grade
14 questions
Attributes of Linear Functions

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

Quiz
•
KG - University
50 questions
Biology Regents Review 2: Ecology

Quiz
•
9th - 12th Grade
20 questions
Investing

Quiz
•
9th - 12th Grade