--:--









Quiz for Standard string functions strcat

Course: C Language | Subject: Unit 5 | Topic: Arrays and Strings



Logo

Q1: What is the main purpose of strcat() function in C?

Logo

Q2: Which header file is required to use strcat()?

Logo

Q3: If destination string is not large enough, strcat() may cause?

Logo

Q4: What will be the output of strcat("Hi", "Bye") if destination has enough space?

Logo

Q5: The strcat() function stops appending when?

Logo

Q6: Which of the following is true about strcat()?

Logo

Q7: In strcat(dest, src), dest must be?

Logo

Q8: What is the return type of strcat()?

Logo

Q9: If dest contains "Hello" and src contains "World", strcat(dest, src) will result in?

Logo

Q10: Can strcat() append part of a string?

Logo

Q11: If src is empty string, strcat(dest, src) will?

Logo

Q12: What happens to the null terminator of dest during strcat()?

Logo

Q13: Which is safer alternative to strcat()?

Logo

Q14: What does strcat() do if dest and src overlap in memory?

Logo

Q15: Which library defines strcat() in C?

Logo

Q16: In strcat(), the source string must be?

Logo

Q17: If destination is an uninitialized char array, using strcat() will?

Logo

Q18: What is appended at the end of destination after strcat()?

Logo

Q19: Which of these statements is correct about strcat()?

Logo

Q20: If dest = "A", src = "B", after strcat(dest, src) the result is?

Are you ready to start test? Set your time limit