Search Header Logo
Strings in C++

Strings in C++

Assessment

Presentation

Computers

11th Grade

Practice Problem

Medium

Created by

Leori Ignacio

Used 20+ times

FREE Resource

2 Slides • 7 Questions

1

Strings in C++

Slide image

2

Multiple Choice

It is a data type that recognizes a series of characters.

1

Integer

2

String

3

Single

4

Double

3

Multiple Choice

This symbol is used to enclose a string.

1

double quote

2

single quote

3

ampersand

4

hyphen

4

Multiple Choice

It is a data type that recognizes a single letter, a symbol, or a number.

1

Integer

2

Character

3

String

4

Float

5

Multiple Choice

This symbol is used to enclose a character.

1

double quote

2

single quote

3

ampersand

4

hyphen

6

Multiple Choice

An array of characters can be used to store a string.

1

True

2

False

7

Multiple Choice

This symbol is used to terminate a string.

1

\0

2

\n

3

endl

4

" "

8

Multiple Choice

Which of the following is the correct way of declaring a character array?

1

char name[10];

2

char name(10);

3

char name<10>;

4

char name{10};

9

Declaration of Character Array

Syntax:

char arrayname[size];


Example:

char name[20];

Strings in C++

Slide image

Show answer

Auto Play

Slide 1 / 9

SLIDE