10th Class Computer Science Chapter 4 Conditional Control Structure Short Questions Answer
We are providing all Students from 5th class to master level all exams preparation in free of cost. Now we have another milestone achieved, providing all School level students to the point and exam oriented preparation question answers for all science and arts students.
After Online tests for all subjects now it’s time to prepare the next level for Punjab board students to prepare their short question section here. We have a complete collection of all classes subject wise and chapter wise thousands questions with the right answer for easy understanding.
Here we are providing complete chapter wise Computer Science questions and Answers for the 10th class students. All the visitors can prepare for their 10th class examination by attempting below given question answers.
In this List we have included all Punjab boards and both Arts and Science students. These Boards students can prepare their exam easily with these short question answer section
Lahore Board 10th classes short questions Answer
Rawalpindi Board 10th classes short questions Answer
Gujranwala Board 10th classes short questions Answer
Multan Board 10th classes short questions Answer
Sargodha Board 10th classes short questions Answer
Faisalabad Board 10th classes short questions Answer
Sahiwal Board 10th classes short questions Answer
DG Khan Board 10th classes short questions Answer
Bahwalpur Board 10th classes short questions Answer
All above mention Punjab Boards students prepare their annual and classes test from these online test and Short question answer series. In coming days we have many other plans to provide all kinds of other preparation on our Gotest website.
How to Prepare Punjab Board Classes Short Question Answer at Gotest
- Just Open the desired Class and subject which you want to prepare.
- You have Green bars which are Questions of that subject Chapter. Just click on Bar, it slides down and you can get the right answer to those questions.
- You can also Rate those question Answers with Helpful or not to make it more accurate. We will review all answers very carefully and also update time to time.
Now you can start your preparation here below
10th Class Computer Science Chapter 4 Conditional Control Structure Short Questions Answer
LINE NO DIM array name/variable.
An array is a collection of variable that can store data of same type.
String array deals in alphabets. In string arrays all the elements of the array are alphabets. Dollar sing $ is used in string array.
Each memory location hold a single value which is called an element of an array.
One dimensional array is also called linear array or vector array. It consists of only one row and column. It is called 1-D array.
Array can be divided into two major categories
One dimensional array
Two dimensional array
An array that requires two subscripts to identify a particular element is also known as the double subscripted array.
10 CLS
20 DIM A 10
30 FOR B=1 TO 10
40 INPUT value of array
50 NEXT B
60 FOR C=10 TO 1 STEP
70 PRINT A C
80 NEXT C
90 END
1-D It consists of only one row or one column The value of particular element is accessed by using only one index value.
Array can be divided into two major categories.
i. One dimensional array
ii. Two dimensional array
An array is the set of variables which can store same type of data every memory location contain value that is called element But variable contain only single value.
One dimensional array is also called linear array or vector array It consist of rows and columns It is called D Array.
To assign data number or string to an array is called filling of array. For filing an array LET READ INPUT statements are used.
10 DIM N 10
20 FOR K 4 TO 15
30 INPUT
40 NEXT 1
The above program has three errors
1. Line no.20 is incorrect It should be FOR k 4 TO 13 instead of FOR
2. Line no.30 should be INPUT instead of INPUT
3. Line no. 40 should be NEXT K instead of NEXT
Each element of two dimensional array is referenced by two index value one index value represent the row and the second represents the column An array that requires two subscript to identify a particular element is also called double subscript array.
Each memory location holds a single value which is called an element of an array.
Individual array elements can be identified by using the index of the array.
The two dimensional array consists of rows and columns It is also known as table or matrix Two dimensional array is also known arrays of one dimensional.
The two dimensional array consists of rows and columns. It is also known as table or matrix. Two dimensional array is defined known as array of one dimensional array. The element of two dimensional Array.
An array is a collection of variable that can store data of same type.
1-D array
1. It consists of only one row or column
2. 1-D array is also known as linear or vector array
3. IT is used to process the data of same type
There are different operations can be performed by using array, like searching a particular element in an array, matching elements from two different arrays, sorting array, finding a largest and smallest number from an array and rearranging the array.
10 CLS
20 DIM N
30 FOR M 1 TO 12
40 READ N M
50 IF N MOD THEN PRINT N M
60 NEXT M
70 DATA 6,42,4,77,39
80 END
LINE NO DIM array variable row col.
DIM statement to specify a maximum subscript different. If subscript greater than the maximum specified is used, a subscript out of rang error occurs.The maximum number of dimensions for an array is 255.
10 CLS
20 DIM Z
30 FOR A 1 TO 12
40 INPUT A
50 SUM
60 NEXT A
70 AVG SUM
80 PRINT SUM= SUM
90 PRINT AVERAGE AVG
100 END
DATA string or number is entered in an array by using LET READ or INPUT statement DATA may be assigned to the subscript variable in an array.
Array Declaration: Array declaration means to identify the name of an array its type and total number of its elements When an array is declared a memory block with required number of consecutive memory locations is reserved in the computer memory for storing data In BASIC there is no need to declare an array properly if you are using small array having maximum 10 elements The BASIC automatically adjusts memory space for 10 elements with index value from 0 to 9.
The large arrays having more than 10 elements are declared by using the DIM statement DIM stands for dimension. This statement is used to declare one dimensional as well as two dimensional variables.
Array is used
1. To process a large amount of data of same type
2. The array is represented in the computer memory by a set of consecutive memory locations
3. With the help of an array we can find largest and smallest number