Q.No.1

In C, which function is used to find the first occurrence of a character in a string?

Q.No.2

What is the function used to find the length of a string in C?

Q.No.3

In C, how are character arrays initialized differently from string literals?

Q.No.4

What happens if you attempt to modify a string literal in C?

Q.No.5

Which function is used to copy one string to another in C?

Q.No.6

In C, which function is used to search for a substring in a string?

Q.No.7

How do you concatenate two strings in C using strcat?

Q.No.8

How do you write a string to standard output in C using puts?

Q.No.9

Which function is used to find the first occurrence of a substring in a string in C?

Q.No.10

How do you check if two strings are equal in C using strcmp?


About Simple Quiz

We're here to make learning fun and accessible. Whether you're a student, teacher, or just someone who loves quizzes, you can find something for you here. Test your knowledge across a wide range of subjects and see how much you know!


Get to know more


Start A Quiz

Do you want to start quiz mode? In this mode, you’ll answer against a timer. When the timer runs out, answers auto-submit, and you get feedback.

Start A Quiz

Do you want to start quiz mode? You'll answer against a timer. When the timer runs out, answers auto-submit