Download 10th Class Computer Science Notes (Unit-12) for Federal Board (FBISE) Islamabad

Download 10th Class Computer Science Notes (Unit # 12) for Federal Board (FBISE) Islamabad.

Very Easy, Updated & Comprehensive Notes for all types of students i.e. Average / Extra Ordinary
Note: 
  • Please subscribe our SMS Alerts Service, Email Updates or Like our Facebook Page from right sidebar to get latest updates regarding our notes & other materials.
  • You can also install our Mobile App to view/read our notes anytime, anywhere on mobile.
  • Please inform us regarding any correction/mistake (if found) by Contacting Us.
  • Please SHARE this page from below, if you liked these Notes.

Computer Science Notes for 10th Class / SSC-II (Federal Board, Islamabad)
SOLVED EXERCISE

What is an array? Illustrate the difference with examples between one dimensional and two dimensional arrays.
An array is a collection of like variables arranged in a sequence                                                            indentified by their subscripts. It can store multiple values of the same data type.
One Dimensional Arrays:
·        One-dimensional arrays are like list where there is only one column.
·        This type of arrays requires only one loop to fill values or to read or process values.
·        Only one subscript is required to represent an element in one-dimensional array.
Two Dimensional Arrays:
·        Two-dimensional arrays are like tables where there are rows and columns.
·        This type of arrays requires two loops, one for rows and the other for columns.
·        More than one subscript is required to represent an element in two-dimensional array.

What is the difference between simple and subscripted variables? Explain with examples.
A SIMPLE VARIABLE:
A simple variable has no other information to be processed or addressed except its name. A simple variable can store only one value at a time. E.g. A, B$ etc.
A SUBSCRIPTED VARIABLE
A subscripted variable needs numeric subscript to be mentioned after its name with in parenthesis e.g. A(3), B(5), G(3,4) etc.

What is the use of DIM statement? When it is needed?
DIM is a short for dimension. The DIM statement is used to declare an array of numeric or string data type in the computer memory. User gives the name of the array and its size with in parenthesis.
Syntax:
Line # ARRAY_NAME (size or number of locations)
Example:
11 DIM A(5) ----This statement will declare an array with name A and size 5.

What is the difference of DIM statement in one dimensional and two dimensional arrays?
DIM statement in One Dimensional arrays:
In GW-BASIC, ‘DIM’ statement is used to declare a one dimensional array. User gives the name if the array and its size within parenthesis. Its syntax is as under:
Line # ARRAY_NAME (size or number of locations)
For example
10 DIM A(5) – This statement will declare a one dimensional array with name A and size 5.
DIM Statement in Two Dimensional Array:
In GW-BASIC ‘DIM’ statement is used to declare also a two dimensional array. User gives the name of the array and its number of rows and columns within the parenthesis separated by comma (,). It syntax is:
Line # ARRAY-NAME (Number of Rows, Number of Columns)
For example
10 DIM A (5,4) ---This statement will declare a two dimensional array Name A with 5 rows and 4 columns.

Write a program that fills an array with 16 random integers each between 25 and 60 then prints the array.
10     CLS
20     DIM NUM(16)
30     FOR I= 1 TO 16
40     READ NUM(I)
50     NEXT I
60     DATA 29, 26, 67, 44, 31, 34, 59, 51, 49, 33, 38, 55, 44, 29, 51, 53
70     FOR I= 1 TO 16
80     READ NUM (I)
90     PRINT NUM (I)
100   NEXT I
110   END

Write a program that fills an array p with 20 random integers and then prints the product of the elements of the array.
20     DIM P (20)
30     LET PRODUCT = 1
40     FOR I= 1 TO 20
50     READ NUM (I)
60     NEXT I
70     DATA 29, 26, 67, 44, 31, 79, 23, 78, 90, 12, 56, 76, 23, 55, 12, 45, 56, 12, 34
80     FOR I= 1 TO 20
90     LET PRODUCT= PRODUCT*I
100   NEXT I
110   PRINT “PRODUCT IS:”; PRODUCT
120   END

COMMENTS

Name

10th Class Notes,72,10th Class Old Papers,2,5th Class Notes,6,6th Class Notes,36,6th Class Old Papers,2,7th Class Notes,33,7th Class Old Papers,2,8th Class Notes,63,8th Class Old Papers,2,9th Class Notes,82,9th Class Old Papers,2,Articles,1,Download Free E-Books on IT,1,Guess Papers,9,Home Tutors,3,Home Tutors in Islamabad & Rawalpindi,8,Home Tutors in Karachi,1,Home Tutors in Lahore,3,Home Tutors in Multan,1,Home Tutors in Rahim Yar Khan,1,Home Tutors in Wah Cantt & Taxila,3,Important Questions,9,Information Technology,1,Miscellaneous,10,News & Events,3,Notes & Handouts,294,Old Papers,11,Solved AIOU Assignments,1,Video Lectures,1,
ltr
item
Download Class Notes: Download 10th Class Computer Science Notes (Unit-12) for Federal Board (FBISE) Islamabad
Download 10th Class Computer Science Notes (Unit-12) for Federal Board (FBISE) Islamabad
Download 10th Class Computer Science Notes (Unit-12) for Federal Board (FBISE) Islamabad
https://4.bp.blogspot.com/-2Ha5_UJDAdw/WKKJx2p1qeI/AAAAAAAADZ8/RdeI-n4x1WEvHuYA9Byee_mdd3UeBT7swCLcB/s1600/10th_class_computer_science_notes_fbise_islamabad_by_shahzad_iftikhar.jpg
https://4.bp.blogspot.com/-2Ha5_UJDAdw/WKKJx2p1qeI/AAAAAAAADZ8/RdeI-n4x1WEvHuYA9Byee_mdd3UeBT7swCLcB/s72-c/10th_class_computer_science_notes_fbise_islamabad_by_shahzad_iftikhar.jpg
Download Class Notes
http://www.downloadclassnotes.com/2017/02/unit-12-download-10th-class-x-computer-science-notes-for-federal-board-fbise-islamabad.html
http://www.downloadclassnotes.com/
http://www.downloadclassnotes.com/
http://www.downloadclassnotes.com/2017/02/unit-12-download-10th-class-x-computer-science-notes-for-federal-board-fbise-islamabad.html
true
6576910405746451012
UTF-8
Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THE DOWNLOAD LINK IS LOCKED Please share to unlock the download link Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy