
CS172 - Strings Week 12

Flashcard
•
Other
•
12th Grade
•
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";
Create a free account and access millions of resources
Similar Resources on Wayground
8 questions
Variables in Python Flashcard

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

Flashcard
•
12th Grade
7 questions
Java Data Types Practice

Flashcard
•
12th Grade
14 questions
Halloween Java

Flashcard
•
12th Grade
9 questions
CSA Semester 2 Final

Flashcard
•
11th - 12th Grade
10 questions
Suspension Systems

Flashcard
•
12th Grade
6 questions
財金程式 1C

Flashcard
•
University
10 questions
week2-1

Flashcard
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Other
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Video Games

Quiz
•
6th - 12th Grade
28 questions
Ser vs estar

Quiz
•
9th - 12th Grade
13 questions
BizInnovator Startup - Experience and Overview

Quiz
•
9th - 12th Grade
16 questions
AP Biology: Unit 1 Review (CED)

Quiz
•
9th - 12th Grade
20 questions
Parallel lines and transversals

Quiz
•
9th - 12th Grade
9 questions
Geometry and Trigonometry Concepts

Interactive video
•
9th - 12th Grade
10 questions
Angle Relationships with Parallel Lines and a Transversal

Quiz
•
9th - 12th Grade