Vidyalelo
C Programming · all questions

Arrays and Strings
practice.

Practice every MCQ with options. Use Show answers when you want the correct option and solution.

133

Questions

7/7

Page

Pick an option on a question to see the right answer and solution.

The toupper() function converts a . . . . . . . . to the corresponding . . . . . . . .

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.

Select an option to see the answer and solution.

Functions whose names begin with "strn"

Select an option to see the answer and solution.

Which function will you choose to join two words?

Select an option to see the answer and solution.

Which among the following option is the full set of character class Hexadecimal digits?

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.

Select an option to see the answer and solution.

What is the use of function char *strchr(ch, c)?

Select an option to see the answer and solution.

. . . . . . . . is reported on a domain error.

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) ;

Select an option to see the answer and solution.

Use . . . . . . . . to determine the null-terminated message string that corresponds to the error code errcode.

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");

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);?

Select an option to see the answer and solution.