The toupper() function converts a . . . . . . . . to the corresponding . . . . . . . .
A. uppercase, lowercase
B. lowercase, uppercase
C. binary, decimal
D. decimal, binary
Select an option to see the answer and solution.
ERANGE is reported on an overflow or an underflow.
Select an option to see the answer and solution.
The . . . . . . . . function converts an uppercase letter to the corresponding lowercase letter.
A. islower()
B. isupper()
C. toupper()
D. tolower()
Select an option to see the answer and solution.
Functions whose names begin with "strn"
A. manipulates sequences of arbitrary characters
B. manipulates null-terminated sequences of characters
C. manipulates sequence of non - null characters.
D. returns a pointer to the token
Select an option to see the answer and solution.
Which function will you choose to join two words?
A. strcpy()
B. strcat()
C. strncon()
D. memcon()
Select an option to see the answer and solution.
Which among the following option is the full set of character class Hexadecimal digits?
A. { 0 1 2 3 4 5 6 7 8 9 A B C D E F }
B. { 0 1 2 3 4 5 6 7 8 9 a b c d e f }
C. { 0 1 2 3 4 5 6 7 8 9 A B C D E F a b c d e f }
D. { 0 1 2 3 4 5 6 7 8 9}
Select an option to see the answer and solution.
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.
A. strcmp()
B. memcmp()
C. strncmp()
D. no such function
Select an option to see the answer and solution.
What is the use of function char *strchr(ch, c)?
A. return pointer to first occurrence of ch in c or NULL if not present
B. return pointer to first occurrence of c in ch or NULL if not present
C. return pointer to first occurrence of ch in c or ignores if not present
D. return pointer to first occurrence of cin ch or ignores if not present
Select an option to see the answer and solution.
. . . . . . . . is reported on a domain error.
A. EDOM
B. ERANGE
C. significance loss
D. Underflow
Select an option to see the answer and solution.
What will be returned in the following C code?
size- t strlen(const char *s)
const char *sc;
for(sc = s; *sc!= ' \ O ' ; ++sc)
return(sc - s) ;A. number of characters equal in sc
B. length of string s
C. doesn't return any value
D. displays string s
Select an option to see the answer and solution.
Use . . . . . . . . to determine the null-terminated message string that corresponds to the error code errcode.
A. strerror()
B. strstr()
C. strxfrm()
D. memset()
Select an option to see the answer and solution.
What will be the output of the following C code?
errno = 0;
y = sqrt(2);
if(errno == EDOM)
printf("Invalid value\n");
else
printf("Valid value\n");A. Invalid value
B. Valid value
C. No output
D. Compile error
Select an option to see the answer and solution.
What does the following function returns void *memmove(void *s1,const void s2, size_t n);?
A. returns the value of s1
B. returns the value of s2
C. doesn't return any value
D. returns the value of s1 and s2
Select an option to see the answer and solution.