Question 1 of 25
Hints left: 3
Q1
What is the return value of strxfrm()?
Q2
What is the prototype of strcoll() function?
Q3
Which among the following is Copying function?
Q4
What will the following C code do? char * strrchr(const char *s, int c ) char ch = c; char *sc; for(sc = NULL; ; ++s) if(*s == ch) SC = 9; i f (*s =='\O' ) return (( char *) s);
Q5
Which function tests for any character that is an uppercase letter.
Q6
What will be the correct output of the following program? #include<string.h> void main() { char str[] = "C EXAMINATION", rev[17]; int i = strlen(str), j=0; for( ; i>=0; rev[j++] = str[i--]) rev[j] = str[j] ; puts(rev); }
Q7
Which of the following function is used to find the first occurrence of a given string in another string?
Q8
The . . . . . . . . function tests for any character for which isalpha or isdigit is true.
Q9
Which of the following correctly accesses the seventh element stored in arr, an array with 100 elements?
Q10
What error occurs when a result is unde?ned for a given argument value?
Q11
What will be the output of the program? #include<stdio.h> #include<string.h> void main() { char str[] = "Exam\0Veda"; printf("%s", str); }
Q12
The function sprintf() works like printf(), but operates on ..........
Q13
What will be the output of the program? #include<stdio.h> #include<string.h> void main() { char str1[20] = "Hello", str2[20] = " World"; printf("%s", strcpy(str2, strcat(str1, str2))); }
Q14
What is the return value of the following statement if it is placed in C program? strcmp("ABC", "ABC");
Q15
errno causes trouble in two subtler ways(vague and explicit).
Q16
int a[5] = {1,2,3} What is the value of a[4]?
Q17
String concatenation means -
Q18
What will be the output of the program? #include<stdio.h> void main() { printf(5+"Good Morningn"); }
Q19
Which of the following function is more appropriate for reading in a multi-word string?
Q20
There are two groups of string functions defined in the header <string.h>. What are they?
Q21
No library function will store a zero in errno.
Q22
What does the following C code do? int iscntrl( int c);
Q23
Which of the given function is used to return a pointer to the located character?
Q24
The . . . . . . . . function tests for any hexadecimal-digit character.
Q25
What do the following C function do? int isgraph(int c);