Crowdly
Add to Chrome
Questions Bank (1565535 total)
Which of the following functions is used to reverse a string in C?
strrev
100%
strcmp
0%
strcat
0%
strcpy
0%
View this question
Which header file must be included to use
string functions
like strlen, strcpy, and strcmp in C?
stdlib.h
0%
string.h
0%
ctype.h
0%
stdio.h
0%
View this question
Which function converts all characters of a string to uppercase?
toupper
0%
touppercase
0%
strupr
0%
strlwr
0%
View this question
What is the purpose of the strcat function in C?
Convert a string to uppercase
0%
Copy one string into another
0%
Compare two strings
0%
Concatenate (append) one string to another
100%
View this question
What does the strcmp function return when comparing two identical strings?
A null value
0%
A positive integer
0%
A negative integer
0%
Zero
0%
View this question
Which of the following is used to read a string with spaces in C?
printf()
0%
scanf()
0%
puts()
0%
gets()
0%
View this question
Which function is used to find the length of a string in C?
strlength()
0%
count()
0%
sizeof()
0%
strlen()
0%
View this question
Which function is used to compare two strings in C?
strcomp()
0%
strncmp()
0%
strcmp()
100%
compare()
0%
View this question
What is the correct way to declare a string in C?
char str(10);
0%
char str[];
0%
char str[10];
0%
string str;
0%
View this question
What does the strcpy() function do in C?
Copies one string to another
100%
Concatenates two strings
0%
Converts a string to uppercase
0%
Compares two strings
0%
View this question
Previous
1
More pages
136379
136380
136381
136382
136383
More pages
156554
Next
Telegram
Instagram
TikTok
Question Bank
Terms of Use
Contact Us
Add to Chrome