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