--:--









Quiz for Standard string functions strlen

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



Logo

Q1: What does the strlen() function in C return?

Logo

Q2: Which header file is required for strlen()?

Logo

Q3: If str = "Hello", what will strlen(str) return?

Logo

Q4: Which of the following is TRUE about strlen()?

Logo

Q5: If str = "A\0BC", what will strlen(str) return?

Logo

Q6: What will strlen("") return?

Logo

Q7: If char s[10] = "C Prog"; strlen(s) returns?

Logo

Q8: strlen() time complexity is?

Logo

Q9: Which of these is correct for strlen("abc")?

Logo

Q10: strlen("abc\0xyz") returns?

Logo

Q11: Which return type does strlen() have?

Logo

Q12: strlen(" ") returns?

Logo

Q13: What does strlen("\0") return?

Logo

Q14: If s = "Hello World", strlen(s) returns?

Logo

Q15: strlen("Hi\n") returns?

Logo

Q16: strlen("12345") returns?

Logo

Q17: strlen() is implemented as?

Logo

Q18: If char s[] = {'H','i','\0','B','y','e'}; strlen(s) returns?

Logo

Q19: strlen("Test\0ing") returns?

Logo

Q20: strlen("ABCDE") == 5?

Are you ready to start test? Set your time limit