Explore topic-wise MCQs in C Interview.

This section includes 5 Mcqs, each offering curated multiple-choice questions to sharpen your C Interview knowledge and support exam preparation. Choose a topic below to get started.

1.

What will be the value of var for the following C statement?

A. -1
B. 0
C. 1
D. strcmp has void return-typeView Answer
Answer» B. 0
2.

What type of return-type used in String operations?

A. void only
B. void and (char *) only
C. void and int only
D. void, int and (char *) only
Answer» E.
3.

Which of the following function compares 2 strings with case-insensitively?

A. strcmp(s, t)
B. strcmpcase(s, t)
C. strcasecmp(s, t)
D. strchr(s, t)
Answer» C. strcasecmp(s, t)
4.

Which pre-defined function returns a pointer to the last occurence of a character in a string?

A. strchr(s, c);
B. strrchr(s, c);
C. strlchr(s, c);
D. strfchr(s, c);
Answer» B. strrchr(s, c);
5.

String operation such as strcat(s, t), strcmp(s, t), strcpy(s, t) and strlen(s) heavily rely upon.

A. Presence of NULL character
B. Presence of new-line character
C. Presence of any escape sequence
D. None of the mentioned
Answer» E.