CS172 - Strings Week 12

CS172 - Strings Week 12

12th Grade

11 Qs

quiz-placeholder

Similar activities

TECHIE QUIZ

TECHIE QUIZ

12th Grade - University

15 Qs

Lý thuyết về Python

Lý thuyết về Python

3rd Grade - University

10 Qs

Switches

Switches

KG - University

6 Qs

Scotty Cameron Phantom X

Scotty Cameron Phantom X

KG - Professional Development

12 Qs

Java Strings

Java Strings

1st Grade - Professional Development

10 Qs

[Kelas 8 SMP] Bab 1 - Bahasa Program Java

[Kelas 8 SMP] Bab 1 - Bahasa Program Java

8th Grade - University

10 Qs

Java Basic Lesson 3

Java Basic Lesson 3

5th Grade - University

9 Qs

Java Lesson 2

Java Lesson 2

5th Grade - University

8 Qs

CS172 - Strings Week 12

CS172 - Strings Week 12

Assessment

Quiz

Other

12th Grade

Easy

Created by

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?