Search Header Logo

C++ Final Quiz 2 - String & Character Functions

Authored by riszty moyo

Computers

University

Used 196+ times

C++ Final Quiz 2 - String & Character Functions
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 12 pts

It is a function will append a copy of the source string to the end of destination string.

strcmp

strcmpi

strcpy

strcat

2.

MULTIPLE CHOICE QUESTION

30 sec • 12 pts

It is a function that returns a pointer to the last occurrence of a character in a string.

strchr

strrev

strsearch

strcmp

3.

MULTIPLE CHOICE QUESTION

30 sec • 12 pts

It compares the two strings lexicographically means it starts comparison character by character starting from the first character until the characters in both strings are equal or a NULL character is encountered

strcpy

strcat

strcmp()

strrev

4.

MULTIPLE CHOICE QUESTION

30 sec • 12 pts

It is a standard library function in C/C++ and is used to copy one string to another

strcmp

strcat

strcpy

strrev

5.

MULTIPLE CHOICE QUESTION

30 sec • 12 pts

It is a function calculates the length of a given string.

strsize

strlen

strlength

strsz

6.

MULTIPLE CHOICE QUESTION

30 sec • 12 pts

It is a function that copies just part of a string to a destination.

strcpy

strncat

strncpy

strncmp

7.

MULTIPLE CHOICE QUESTION

30 sec • 12 pts

It is a function that converts C-string to an int value, returns the value

atol

atoi

atof

atoc

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?