
CS172 - Strings Week 12
Authored by Mr. Martin
Other
12th Grade
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
11 questions
Show all answers
1.
FILL IN THE BLANK QUESTION
1 min • 1 pt
A _________ is a data type typically used to hold a collection of printable characters such as words, sentences, or longer sequences.
A _________ is a data type typically used to hold a collection of printable characters such as words, sentences, or longer sequences.
2.
FILL IN THE BLANK QUESTION
1 min • 1 pt
When a literal value is assigned to a string, it should be surrounded by double _________.
3.
FILL IN THE BLANK QUESTION
1 min • 1 pt
To find the length of a string (number of characters), we can use the function.
4.
FILL IN THE BLANK QUESTION
1 min • 1 pt
It is also possible to use the arithmetic operator + with strings to _________ the two strings.
5.
FILL IN THE BLANK QUESTION
1 min • 1 pt
This means you start at the beginning of a string, select each character in turn, do something to it, and continue until the end.
6.
FILL IN THE BLANK QUESTION
1 min • 1 pt
In order to use strings in your program you must first include the string _________.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is closest equivalent to the code below?
char str[] = "hello";
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";
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
10 questions
Java Strings
Quiz
•
1st Grade - Professio...
12 questions
Possessive adjectives - Possessive pronouns
Quiz
•
6th Grade - Professio...
15 questions
Hip Hop Dance Quiz
Quiz
•
8th Grade - University
13 questions
BG. Korean language pt1; Hangul
Quiz
•
KG - Professional Dev...
14 questions
Maths and History
Quiz
•
1st Grade - Professio...
11 questions
GIỜ SINH HOẠT LỜI CHÀO
Quiz
•
9th - 12th Grade
15 questions
ACT Prep: Transitions, Part 1
Quiz
•
9th - 12th Grade
15 questions
Nonspecific Immunity
Quiz
•
10th - 12th Grade
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Other
18 questions
Valentines Day Trivia
Quiz
•
3rd Grade - University
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
21 questions
Presidents Day Trivia
Quiz
•
6th - 12th Grade
10 questions
Valentine's Day: History and Modern Celebration
Interactive video
•
9th - 12th Grade
11 questions
Valentine's Day Trivia
Quiz
•
8th - 12th Grade
10 questions
Factor Quadratic Expressions with Various Coefficients
Quiz
•
9th - 12th Grade
18 questions
Success Strategies
Quiz
•
9th - 12th Grade
10 questions
Valentine's Day Trivia
Quiz
•
9th - 12th Grade