K. K. Wagh Polytechnic, Nashik
Question Bank: Chapter No. 02
Programming in āCā (9017) Class: FYIF Decision making and Branching
Summer 2007: Marks = 20 a) Define and declare two dimensional array. 2 b) State use and syntax of strcmp ( ) function. 2 c) Write a program using pointers to compute sum of all elements stored in an array? 4 d) Explain the need for array variables. 4 e) Explain strcpy () function in detail. 4 f) Write a program to accept a string and display a list of ASCII codes which represent accepted string. 4 Winter 2007: Marks = 20 a) What do you mean by character array? 2 b) Give syntax for strcat ( ) string function. 2 c) Explain what is two dimensional array. Also explain how to declare and initialize two dimensional array with example. 4 d) Explain the concept of array with pointer. 4 e) Explain strlen ( ) and strcmp ( ) string functions with example. 4 f) Write a program to find the largest number from given array. 4 Summer 2008: Marks = 16 a) What is array? How it is declared? 2 b) State use and syntax of strcat( ) function. 2 c) Explain representation of two dimensional array with example. 4 d) Explain strcmp( ) function in detail. 4 e) Write a program to copy contents of one array into another array. 4 Winter 2008: Marks = 20 a) Declare and initialize the one dimensional integer array with 10 elements. 2 b) State the use and syntax of strlen( ) function. 2 c) Write a program using pointer to accept an integer array and print it in reverse order. 4 d) Describe a method of declaring and initialization of two dimensional array with example. 4 e) Explain strcpy( ) function. 4 f) Write a program to accept a string and display the length of it without using standard library function. 4
Mr. Kute T. B. Lecturer in Information Technology, K. K. Wagh Polytechnic, Nashik ā 3.
[email protected]
CPR ā Question Bank Chapter 03
-1-