Question 1 of 25
Hints left: 3
Q1
Which function is used to find the first occurrence of a character in a string in C?
Q2
Which data type is used to represent a single character in C?
Q3
What is the result of the expression strlen("Hello") in C?
Q4
What is the output of printf("%d", sizeof("Hello")); in C?
Q5
Which function is used to concatenate two strings in C?
Q6
Which function is used to copy one string to another in C?
Q7
What is the correct way to declare and initialize a string in C?
Q8
How do you declare a two-dimensional integer array in C with 3 rows and 4 columns?
Q9
How can you initialize an array in C at the time of declaration?
Q10
What is the size of an integer array declared as int arr[5] in bytes?
Q11
What is the purpose of the strncpy function in C?
Q12
Which function is used to find the length of a string in C?
Q13
How do you access the last element of an array arr with n elements in C?
Q14
What is the term for a character array that is used to store text in C?
Q15
What character is used to terminate a C string?
Q16
What is the term for accessing elements of an array using an index in C?
Q17
How do you access the first element of an array arr in C?
Q18
What is the purpose of the fgets function in C?
Q19
What does the strtok function do in C?
Q20
What is the result of the expression sizeof(int) in C?
Q21
How can you find the length of an array in C?
Q22
Which type of loop is commonly used to iterate through an array in C?
Q23
Which function is used to compare two strings in C?
Q24
How do you declare a string in C that can store up to 50 characters?
Q25
What is the maximum number of elements that can be stored in an array in C?