
CS172 - Strings Week 12
Flashcard
•
Other
•
12th Grade
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
Student preview

11 questions
Show all answers
1.
FLASHCARD QUESTION
Front
A _________ is a data type typically used to hold a collection of printable characters such as words, sentences, or longer sequences.
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";
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
13 questions
IT concepts and terminology III
Flashcard
•
11th Grade
13 questions
Guitar Knowledge Flashcard
Flashcard
•
10th Grade - University
12 questions
memes
Flashcard
•
12th Grade
9 questions
The Arabic Quizizz!
Flashcard
•
KG - University
9 questions
Hello kitty characters <3
Flashcard
•
KG - University
7 questions
French Greetings
Flashcard
•
KG - Professional Dev...
12 questions
Sanrio flashcard <3
Flashcard
•
KG - University
8 questions
Introduction to Chinese Language and Culture
Flashcard
•
KG - Professional Dev...
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
Discover more resources for Other
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
15 questions
Making Inferences
Quiz
•
7th - 12th Grade
12 questions
Add and Subtract Polynomials
Quiz
•
9th - 12th Grade
7 questions
How James Brown Invented Funk
Interactive video
•
10th Grade - University
15 questions
Atomic Habits: Career Habits
Lesson
•
9th - 12th Grade
20 questions
Banking
Quiz
•
9th - 12th Grade
15 questions
Exponential Growth and Decay Word Problems Practice
Quiz
•
9th - 12th Grade
18 questions
AP Bio Insta-Review Topic 6.1*: DNA & RNA Structure
Quiz
•
9th - 12th Grade