
CS172 - Strings Week 12

Quiz
•
Other
•
12th Grade
•
Easy
Mr. Martin
Used 2+ times
FREE Resource
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.
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";
Create a free account and access millions of resources
Similar Resources on Wayground
12 questions
Vocabulario, vocabularies, vocabulaires

Quiz
•
5th - 12th Grade
10 questions
Russian 01

Quiz
•
1st Grade - University
10 questions
Procedure Text - Prosedur Teks (Bahasa Inggris)

Quiz
•
11th - 12th Grade
10 questions
C Language Basic Quiz

Quiz
•
7th Grade - Professio...
15 questions
SUMATIF TENGAH SEMESTER GANJIL TAHUN AJARAN 2024/2025

Quiz
•
1st Grade - University
10 questions
Основи на програмирането с C#

Quiz
•
12th Grade
16 questions
Literatura Poruguesa

Quiz
•
7th - 12th Grade
10 questions
Greetings

Quiz
•
10th Grade - Professi...
Popular Resources on Wayground
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World

Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
20 questions
ELA Advisory Review

Quiz
•
7th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns

Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Other
10 questions
Ice Breaker Trivia: Food from Around the World

Quiz
•
3rd - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
11 questions
NFL Football logos

Quiz
•
KG - Professional Dev...
28 questions
Ser vs estar

Quiz
•
9th - 12th Grade
29 questions
CCG 2.2.3 Area

Quiz
•
9th - 12th Grade
15 questions
PRESENTE CONTINUO

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