Strings on C related Questions and Answers - Page 3

Question 21 : The________function converts an uppercase letter to the corresponding lowercase letter.
1. islower()
2. isupper()
3. toupper()
4. tolower()
View Answer   Discuss with Members

Question 22 : Which among the given options compares atmost n characters of string ch to string s?
1. int strncmp(ch, s, n)
2. int strcmp(ch, s)
3. int strncmp(s, ch, n)
4. int strcmp(s, ch)
View Answer   Discuss with Members

Question 23 : The______ function returns the number of characters that are present before the terminating null character.
1. strlength()
2. strlen()
3. strlent()
4. strchr()
View Answer   Discuss with Members

Question 24 : Which code from the given option return pointer to last occurrence of c in ch or NULL if not present?
1. char *strchr(ch, c)
2. char *strrchr(ch,
3. c) char *strncat(ch, c)
4. char *strcat(ch, c)
View Answer   Discuss with Members

Question 25 : Is there any function declared as strstr()?
1. true
2. false
3.
4.
View Answer   Discuss with Members

Question 26 : Which header declares several functions useful for testing and mapping characters?
1. assert.h
2. stdio.h
3. ctype.h
4. errno.h
View Answer   Discuss with Members

Question 27 : The strpbrk() function is used to return a pointer to the character, or a null pointer if no character from s2 occurs in s1.
1. true
2. false
3.
4.
View Answer   Discuss with Members

Question 30 : This function offers the quickest way to determine whether two character sequences of the same known length match character for the character up to and including any null character in both.
1. strcmp()
2. memcmp()
3. strncmp()
4. no such function
View Answer   Discuss with Members


View 21 - 30 of 60 Questions

* Be the First to Post a Comment.

Submit comment :


Captcha Image
Reload

Ask Question

Captcha Image
Reload

Note : Name and Email never shown.





Subscribe


Become a part of EducationForever. Subscribe to our FREE Newsletter