Home
Explore
Exams
Search for anything
Login
Get started
Home
[CP 2] M3 - Character and String Manipulation_
[CP 2] M3 - Character and String Manipulation_
0.0
(0)
Rate it
Studied by 1 person
Learn
Practice Test
Spaced Repetition
Match
Flashcards
Card Sorting
1/106
Earn XP
Description and Tags
University/Undergrad
Add tags
Study Analytics
All
Learn
Practice Test
Matching
Spaced Repetition
Name
Mastery
Learn
Test
Matching
Spaced
No study sessions yet.
107 Terms
View all (107)
Star these 107
1
New cards
iscntrl()
Check if a character is a control character
Isalpha()
isdigit()
isspace()
iscntrl()
2
New cards
isalpha()
Returns true if character expression is a letter of the alphabet otherwise false
3
New cards
strcat()
A function used to concatenate strings
4
New cards
tolower()
Converts lowercase letter to lowercase
5
New cards
isupper
Returns true provided character expression is an uppercase letter otherwise it returns false
6
New cards
isupper()
Check if a character is an uppercase letter
7
New cards
this is a test
What is the output of the given program?
\#include
8
New cards
getline()
Which of the following is used to read a line of input?
9
New cards
Love
What is the output of the following?
\#include
10
New cards
Copy string value to character array
What does the following program do?
\#include
11
New cards
stoi
Which of the following function converts the string to an integer?
12
New cards
isdigit()
Returns true if character expression is either a letter or a digit otherwise false
13
New cards
TEST STRING
\#include
14
New cards
these strings are concatenated.
What is the output of the program?
\#include
15
New cards
Semicolon is missing
What is the error in the following program?
\#include
16
New cards
blank screen
What is the output of the given program?
\#include
17
New cards
strlen()
It returns the length of a string
18
New cards
char s;
Which of the following is correct?
char s;
Char s;
CHAR s;
chars s;
19
New cards
tolower()
It returns the lowercase version of a character expression:
20
New cards
string
It is a sequence of characters
21
New cards
string
If a \= "$512" then a is a:
22
New cards
stod
A function that converts a string to double?
23
New cards
ERROR
\#include
24
New cards
char
Strings are accessed by variables of what type?
25
New cards
0
What is the output of the given program?
\#include
26
New cards
H
\#include
27
New cards
5
What is the output of the following program?
\#include
28
New cards
79
What is the output of the given program?
\#include
29
New cards
Word is found at index 10
\#include
30
New cards
isprint()
A function which checks if a character is printable
31
New cards
isupper()
Check if a character is an uppercase letter
32
New cards
iscntrl()
Check if a character is a control character
33
New cards
islower()
Returns true provided character expression is a lowercase letter otherwise it returns false
34
New cards
toupper()
It returns the uppercase version of a character expression.
35
New cards
isalpha()
Returns true if character expression is a letter of the alphabet otherwise false
36
New cards
tolower()
Converts lowercase letter to lowercase
37
New cards
strlen()
It returns the length of a string
38
New cards
cin.getline(str,80);
Which of the following is correct?
Group of answer choices
cin.Getline(str,90)
cin.getlines(str,80);
cin.getline(str,80);
Cin.getline(str,80);
39
New cards
toupper()
Converts lowercase letter to uppercase
40
New cards
0
If two strings are identical, then the strcmp() function returns:
41
New cards
a
What is the output of the given program?
\#include
42
New cards
strncmp()
The same as the two-argument strcmp except that at most Limit characters are compared.
43
New cards
+
Which of the following operator can be used also in strings?
\>
@
+
\-
44
New cards
\#####
What is the output of the following program?
\#include
45
New cards
input provided by user
What is the output of the following program?
\#include
46
New cards
+ operator
Which operator is suitable for the concatenation function of a string class?
Group of answer choices
\> operator
- operator
< operator
+ operator
47
New cards
Bad Liar
Which operator is suitable for the concatenation function of a string class?
Group of answer choices
\> operator
- operator
< operator
+ operator
48
New cards
Hello World
What is the output of the following program?
\#include
49
New cards
to_string
It converts a numerical value to string?
50
New cards
string / CHAR
It represents a single letter
51
New cards
string
If b \= "3.1416" then a is a:
52
New cards
a
What is the output of the program?
\#include
53
New cards
first line
What is the output of the given program?
\#include
54
New cards
error
\#include
55
New cards
+\=
The append operator is denoted by:
56
New cards
14
What is the output of the following program?
\#include
57
New cards
char s;
Which of the following is correct?
Group of answer choices
chars s;
CHAR s;
Char s;
char s;
58
New cards
0
What is the output of the given program?
\#include
59
New cards
Hello Word
What is the output of the following program?
\#include
60
New cards
double quotation mark
A string value should always have a \_________ enclosed
61
New cards
\#\=
Which of the following operators is not a comparison operator?
62
New cards
Hello Programming!
What is the output of the following program?
\#include
63
New cards
strcpy()
Which of the following is a cstring function?
strcmp()
toupper()
pow()
isalpha()
64
New cards
! is a punctuation character
What is the output of the given program?
\#include
65
New cards
char str[80];
Which of the following is correct?
char 80;
char (80);
ch str[80];
char str[80];
66
New cards
first line
What is the output of the given program?
\#include
67
New cards
isspace()
Returns true provided character expression is a whitespace character, such as the blank or newline character, otherwise, returns false.
68
New cards
9 1 4
\#include
69
New cards
isblank()
Check if a character is blank
70
New cards
14
What is the output of the following program?
\#include
71
New cards
BOTH?
Which of the following functions gets the length of a string?
size
append
length
both length and size
72
New cards
Hello Programming!
What is the output of the following program?
\#include
73
New cards
Character strings
The sequence of contiguous characters in memory is called \_____________
74
New cards
string
What is the identifier given to string class to declare string objects?
75
New cards
\#include
What is the header file for the string class?
76
New cards
error
What is the output of the following program?
\#include
77
New cards
strcat)
Which of the following function is used to concatenate strings?
Group of answer choices
strcpy()
stod()
strcat()
strcmp()
78
New cards
0
What is the output of the given program?
\#include
79
New cards
Jello
What is the output of the following program?
\#include
80
New cards
semicolon is missing
What is the error in the following program?
\#include
81
New cards
isalpha()
Which of the following is a ctype function?
isalpha ()
abs()
sqrt()
strcat()
82
New cards
91 4
What is the output of the following program?
\#include
83
New cards
isspace()
Returns true provided character expression is a whitespace character, such as the blank or newline character, otherwise, returns false.
84
New cards
ispunct()
Returns true if the provided character expression is a printing character other than whitespace, a digit, or a letter; otherwise returns false.
85
New cards
str.empty();
It returns true if str is an empty string
86
New cards
to_string
Which of the following function converts a numerical value to string?
stoi
to_string
toupper
tolower
87
New cards
stof
Which of the following converts string to float?
stoll
stoi
stod
stof
88
New cards
strcmp()
Which of the following compares two string values?
strcat()
strlen()
strcpy()
strcmp()
89
New cards
isdigit()
Check if a character is a digit
90
New cards
sqrt()
Which of the following is NOT a cstring function?
Group of answer choices
strcat()
strncpy()
strcpy()
sqrt()
91
New cards
TEST STRING
What is the output of the given program?
\#include
92
New cards
isdigit()
Returns true if character expression is a digit 0 through 9 otherwise false
93
New cards
strcmp()
Which of the following is NOT a ctype function?
Group of answer choices
strcmp()
isalpha
toupper()
isupper()
94
New cards
HELLO WORLD!
What is the output of the given program?
\#include
95
New cards
this is a test
What is the output of the given program?
\#include
96
New cards
string
\A header file that handles string in C++
97
New cards
both append and operator +\=
Which method do we use to append more than one character at a time?
98
New cards
error
What is the output of the given program?
\#include
99
New cards
1
What is the output of the given program?
\#include
100
New cards
string
If a \= "$512" then a is a:
Load more
Explore top notes
Test 3 learning objectives
Updated 173d ago
Note
Preview
2.5 The Demographic Transition Model Notes
Updated 879d ago
Note
Preview
Chapter 5: Populations
Updated 919d ago
Note
Preview
Public Health 1250-present
Updated 319d ago
Note
Preview
Psychologie en sociologie
Updated 135d ago
Note
Preview
Chapter 2: The Developing Brain
Updated 1040d ago
Note
Preview
Chapter 22:Petroleum and fuels
Updated 903d ago
Note
Preview
Chapter 10: Non-Essential & Essential Clause
Updated 717d ago
Note
Preview
Explore top flashcards
Biology - Chapter 11 - The Circulatory System
Updated 502d ago
Flashcards (41)
Preview
Africana Studies Final Exam
Updated 406d ago
Flashcards (59)
Preview
Anatomy - Medical Terminology
Updated 645d ago
Flashcards (44)
Preview
EC1, U5 La vida es un carnaval (ASD1)
Updated 603d ago
Flashcards (48)
Preview
history final
Updated 722d ago
Flashcards (138)
Preview
Chữa các đề GKI
Updated 208d ago
Flashcards (88)
Preview
BUỔI 1 -READING
Updated 101d ago
Flashcards (47)
Preview
Infiltration and Embedding
Updated 115d ago
Flashcards (63)
Preview