# 12th Class Computer Chapter 5 Arrays and Strings Short Questions Answer

## 12th Class Computer Chapter 5 Arrays and Strings Short Questions Answer

Define an array?

A number of locations each of which can store an item of data of the same type. All the items of an array are referenced by the same variable name and each individual item is identified by a subscript in square brackets.

Define one dimensional array?

The arrays that require a single subscript value to select an element, is called a one dimensional array.

What is called the size the array?

The number of elements specified between the brackets is called the size of the array.

Which is the starting digit of all the array element in “C”?

In “C” all the array elements are numbered starting at “O”.

Write down the old style C comment?

The old style C comment looks like this /* this is a comment*/.

Why the old-fashioned comment style is useful for multi-line comments?

The old-fashioned comment style is useful for multi-line comments because we don’t need the comment symbol at the beginning of each line.

What is the formula standard deviation when a real array X whose size is n?

For a real array X whose size is n, standard deviation is calculated as:
Stn – Dev =
Here avg is the average of n numbers.

What will do the compiler if the size of the array is not supplied?

If the size of the array is not supplied, the compiler will count the number of items in the initialization list and fix that as the array size.

What will do the compiler if the number of supplied values is greater than the actual number of items?

If the number of values supplied is greater than the actual number of items then the compiler will give an error message.

Define multidimensional array?

An array that requires two or more separate subscript values to access an element. It is referred to as multidimensional array.

Define two dimensional array?

An array that requires two subscripts to reference an element is called a two dimensional array.

What is three dimensional array?

An array needing three subscripts is a three dimensional array.

Define a string?

A sequence of characters is generally known as a string.

What is the use of strings?

Strings are very commonly used in programming languages for storing and processing words names, addresses sentences, etc.

What is meant by subscript?

It is used to refer to an individual element of an array and it is written after the array name in square brackets.

You Can Learn and Gain more Knowledge through our Online Quiz and Testing system Just Search your desired Preparation subject at Gotest.
error: