Cpr - Qb Chapter 03 New

  • July 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Cpr - Qb Chapter 03 New as PDF for free.

More details

  • Words: 344
  • Pages: 1
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-

Related Documents