Home works and Assignments Online

Home » Class XI » Computer Science, XI

Computer Science, XI

 

  1. Which of the following array declarations are invalid? State reasons for invalidity.
  2. float a[+40];       ii) int num[0-10];      iii)  double [50];
  3. iv) amount[20] of float; v)  int score[20];    vi) char name[30];  vii)   float values[10];

 

  1. Write a C++ program to concatenate two strings (without using strcat function)

 

  1. Write a C++ program to replace all occurrence of a number with zero in an array of 25 elements

 

  1. What is an array? What is the need for an array?

 

  1. Write a note on how single dimensional arrays are represented in memory? How to calculate the number of bytes occupied by a single dimensional array? Explain with example

 

  1. Suppose A,B and C are arrays of sizes m,n and m+n respectively. Write a C++ program to produce a third array C , containing all the data of array A and B

 

  1. Write a C++ program that takes an array of 10 elements and swap the first and last elements of the array

 

  1. Write a C++ program to count the occurrence of character ‘S’ in line of text accepted from the user

 

  1. Write a C++ program to check whether an entered string is palindrome or not

 

  1. Write a C++ program to reverse a string entered from keyboard.

 

Date of submission: 05-12-17

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: