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

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

Very Easy, Updated & Comprehensive Notes for all types of students i.e. Average / Extra Ordinary
  • 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)

What is meant by pixel and resolution?
All images on a monitor screen are composed of very fine and small dots or picture elements. These fine dots are called ‘pixels’ or picture elements. The size, color and number of pixels varies from monitor to monitor.
The number of pixels per inch on a monitor screen is the resolution the monitor. Quality graphics can be produced if the resolution is high.

Describe the different modes to display graphics of the screen.
In GW-BASIC, ‘screen’ function is used to set the graphics mode. It can set the screen to any of the following three modes:
Text Mode:
In Text mode, only characters can be displayed on the screen. In this mode the screen is divided in 40 columns and 25 rows (40×25) or 80 columns and 25 rows (80×25).
Medium Resolution Graphics Mode:
In medium resolution graphics mode, the screen is divided into a matrix consisting of 320 columns and 200 rows with 3 colors. Columns are numbered from 0 to 199.
High Resolution Graphics Mode:
In high resolution graphics mode, the screen is divided into 640 columns and 200 rows. Columns are numbered from 0 to 639 and rows are numbered from 0 to 199. The first location can be referred with (0,0) and the last location by (639,199) which is the lower right corner of screen.

What do you mean by the background color and palettes?
In this mode, there are 16 background colors from 0 to 15. There are two palettes (numbered from 0 to 1) available each consisting of 4 colors.
COLOR                                             CODE
Pallette 0   Background                 0
                Green                        1
                Red                           2
                Brown                        3
Pallette     Background                 0
                Cyan                         1

What is the purpose and syntax of the PSET statement? Give examples.
This statement draws a point (dot) on screen specified coordinates (x, y).
Line# PSET (x, y), color
10     CLS
20     SCREEN 1, 0
30     COLOR 1, 0
40     PSET (40, 10), 2
This program draws a point at (40, 10) in brown color.

What is the purpose and syntax of the LINE statement?
The LINE statement is used to draw a line between two points. The two point are specified in (x, y) coordinate.
Line# LINE (x, y) – (x, y), color
10     CLS
20     SCREEN 1, 0
30     COLOR 2, 0
40     LINE (80, 50) – (200,110), 2
50     END

Describe the use of ‘screen’ function with example.
Normally the monitor screen is in the text mode. In GW-BASIC, we cannot draw good graphics in text mode. For drawing good graphics (circles, lines, points etc.), the screen must be set to ‘medium’ or ‘high’ resolution mode. This is done with the help of ‘screen’ function.
Line# SCREEN mode
‘Mode’ can be set in any of these three ways:
     Text Mode                                          SCREEN 0
     Medium Resolution Graphics Mode         SCREEN 1
     High Resolution Graphics Mode              SCREEN 2
Example of Screen Function: 10     SCREEN2
In above example, the screen will be set to ‘medium resolution graphics’ mode.

Describe the use of ‘color’ statement with example.
The ‘color’ statement is used to set the color in GW-BASIC. Its function also depends of the screen mode. It does not work in ‘high’ resolution graphics mode.
Line# COLOR [foreground], [background]
The foreground color number must be an integer from 0 to 31. Color from 16 to 31 are blinking versions of the colors fro 0 to 15. The background colors are from 0 to 15.
10     CLS
20     SCREEN 0
30     COLOR 4, 2

Syntax of Color Statement in Medium Resolution Graphics Mode is:
Line# COLOR [background], [palette]

What is the purpose and syntax of DRAW statement? Which commands in DRAW statement are used for diagonal movement?
A string consists of single character command followed by a prefix that controls the size, direction etc, of the line. It is enclosed in the quotation marks.
30     DRAW “E30”
Drawing Commands:
The drawing commands are used with ‘n’ as the prefix to describe the number of points moved by the command.



10th Class Notes,72,10th Class Old Papers,2,5th Class Notes,6,6th Class Notes,34,6th Class Old Papers,1,7th Class Notes,33,7th Class Old Papers,1,8th Class Notes,63,8th Class Old Papers,1,9th Class Notes,82,9th Class Old Papers,2,Articles,1,Download Free E-Books on IT,1,Home Tutors,3,Home Tutors in Islamabad & Rawalpindi,8,Home Tutors in Lahore,2,Home Tutors in Multan,1,Home Tutors in Wah Cantt & Taxila,3,Information Technology,1,Miscellaneous,10,News & Events,2,Notes & Handouts,292,Old Papers,8,Solved AIOU Assignments,1,Video Lectures,1,
Download Class Notes: Download 10th Class Computer Science Notes (Unit-14) for Federal Board (FBISE) Islamabad
Download 10th Class Computer Science Notes (Unit-14) for Federal Board (FBISE) Islamabad
Download 10th Class Computer Science Notes (Unit-14) for Federal Board (FBISE) Islamabad
Download Class Notes
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