Question 1 of 25
Hints left: 3
Q1
Functions whose names begin with "strn"
Q2
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.
Q3
ERANGE is reported on an overflow or an underflow.
Q4
What will be the output of the following C code? const char str1[]="ABCDEF1234567"; const char str2[] = "269"; len = strcspn(str1, str2); printf("First matching character is at %d\n", len + 1);
Q5
The . . . . . . . . function returns a pointer to the first character of a token.
Q6
isalpha() function is used to detect characters both in uppercase and lowercase.
Q7
What occurs when a result has nowhere near the number of significant digits indicated by its type.
Q8
The . . . . . . . . function converts an uppercase letter to the corresponding lowercase letter.
Q9
void *memcpy(void *dest, const void *src, size_t n) What does the following code do?
Q10
The strpbrk() function is used to return a pointer to the character, or a null pointer if no character from s2 occurs in s1.
Q11
Which function will you choose to join two words?
Q12
What is the function of strcoll()?
Q13
which of the following function returns a pointer to the located string or a null pointer if string is not found.
Q14
The function strsp() is the complement of strcspn().
Q15
Which code from the given option return pointer to last occurrence of c in ch or NULL if not present?
Q16
What will be the output of the following C code? int i = 0; char c; char str[ ] = "Little Star"; while(str[i]) { putchar (toupper(str[i])); i++; }
Q17
What will the given C code do? int memcmp(const void *str1, const void *str2, size_t n)
Q18
This function checks whether the passed character is white-space.
Q19
What will be the output of the following C code? char str1[15]; char str2[15]; int mat; strcpy(str1, "abcdef"); strcpy(str2, "ABCDEF"); mat= strncmp(str1, str2, 4); if(mat< 0) printf("str1 is not greater than str2"); else if(mat> 0) printf("str2 is is not greater than str1"); else printf("both are equal");
Q20
The toupper() function converts a . . . . . . . . to the corresponding . . . . . . . .
Q21
NULL is the macro defined in the header string. h.
Q22
The mem functions are meant for . . . . . . . .
Q23
Which header declares several functions useful for testing and mapping characters?
Q24
Which among the following option is the full set of character class Hexadecimal digits?
Q25
What will be the output of the following C code? errno = 0; y = sqrt(-10); if(errno == EDOM) printf("Invalid value \n"); else printf("Valid value\n");