Question Bank: Chapter No. 03
Programming in āCā (9017) Arrays and Strings
Class: FYIF
Summer 2007: Marks = 16 1. Define and declare two dimensional array. 2 2. State use and syntax of strcmp( ) function. 2 3. Explain the need for array variables. 4 4. Explain strcpy( ) function in detail. 4 5. Write a program to accept a string and display a list of ASCII codes which represent accepted string. 4 Marks = 16 Winter 2007: 1. What do you mean by character array? 2 2. Give syntax of strcat( ) function. 2 3. Explain two dimensional array. Also explain how to declare and initialize two dimensional array with example. 4 4. Explain strlen( ) and strcmp( ) function with example. 4 5. Write a program to find largest number from given array. 4 Other: 1. Explain how to initialize the array at run time and compile time. 2. Write a program to sort the array of ten integers. 3. State the use of strrev( ) function. 4. Differentiate between one dimensional and two dimensional array. 5. List the advantages of arrays.
CPR (FYIF) by Mr. Kute T. B. (Lecturer in IT, KK Wagh Polytechnic, Nashik 2007-2008)
4 4 2 2 4