Warning: include_once(../../../../../headder.php): Failed to open stream: No such file or directory in /home/cbseguess/public_html/papers/cbse_important_questions/xi/2013/compur-science/structured_data-type_array2.php on line 18

Warning: include_once(): Failed opening '../../../../../headder.php' for inclusion (include_path='.:/opt/cpanel/ea-php83/root/usr/share/pear') in /home/cbseguess/public_html/papers/cbse_important_questions/xi/2013/compur-science/structured_data-type_array2.php on line 18

CBSE Important Questions

CBSE Guess > Papers > Important Questions > Class XI > 2013 > Computer Science > Computer Science By Mr. Prabhuji Gupta

CBSE CLASS XI


Warning: include(../../../../../ads_330x250_middle.php): Failed to open stream: No such file or directory in /home/cbseguess/public_html/papers/cbse_important_questions/xi/2013/compur-science/structured_data-type_array2.php on line 29

Warning: include(): Failed opening '../../../../../ads_330x250_middle.php' for inclusion (include_path='.:/opt/cpanel/ea-php83/root/usr/share/pear') in /home/cbseguess/public_html/papers/cbse_important_questions/xi/2013/compur-science/structured_data-type_array2.php on line 29

Structured Data Type : Array

 

Previous Index

Most Important Questions

Q 1 What is an array?
Q 2 What is the significance of index in an array?
Q 3 The amount of storage required to hold an array is

(a) directly related to its type and size.
(b) directly related to its size only.
(c) directly related to its type only.
(d) 1 byte only.

Q 4 Array of strings is

(a) a multidimensional int array.
(b) a two dimensional integer array
(c) a single dimensional array.
(d) a two dimensional character array.

Q 5 What do we call the data type of an array?
Q 6 Write a statement to define a double type array salary for 15 employees.
Q 7 How can we access salary of 6th employee in the array you defined in the previous question.
Q 8 How does a string treated  by C++ compiler?
Q 9 What do you know about the last character in a string in C++?
Q 10 Declare an array of integers and initialize it by first 5 prime numbers.
Q 11 Find total number of bytes required  for the following arrays in C++ -

a) int x[4][8],
b) double[2][3],
c) char[5][20]
Assume int takes 2 bytes, double takes 4 bytes and char takes single byte in memory.

Q 12 Show how does a single dimensional array is stored in the memory.
Q 13 If an array has 100 elements then what will be the allowed range of subscripts?
Q 14 What do you understand by Matrices?
Q 15 Why is it better to use defined constant as array size?
Q 16 What would be the output of the following section of C++?

int A[5] = {1 , 2, 3, 4};
int i;
for (i=0; i<5; i++)
{
A[i] = 2*A[i];
cout << A[i] << " ";
}

Q 17 what output does the following code fragment produce?

int stock[] = {10,22,15,12,18};
int total = 0;
for(int i=0;i<5;++i)
if(stock[i]>15)
total = total + stock[i];
cout<<"Total="<< total << endl;

Q 18 Why do we need arrays?
Q 19 WAP to merge two integer array into a third array.
Q 20 WAP to print diagonal elements of a 3x3 matrix.
Q 21 WAP to add two 3x3 matrix.
Q 22 WAP to count the number of spaces in the defined string.
Q 23 WAP to count the number of occurrences of a given character in a defined string.
Q 24 WAP to print upper and lower triangle of a matrix.
Q 25 WAP to reverse a string.
Q 26 WAP to concatenate two strings.

 

Previous Index

Submitted By Mr. Prabhuji Gupta
Email: [email protected]


Warning: include(../../../../../120_60_others.php): Failed to open stream: No such file or directory in /home/cbseguess/public_html/papers/cbse_important_questions/xi/2013/compur-science/structured_data-type_array2.php on line 105

Warning: include(): Failed opening '../../../../../120_60_others.php' for inclusion (include_path='.:/opt/cpanel/ea-php83/root/usr/share/pear') in /home/cbseguess/public_html/papers/cbse_important_questions/xi/2013/compur-science/structured_data-type_array2.php on line 105