Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

BHAVAN’S PUBLIC SCHOOL, DOHA – QATAR

COMPUTER SCIENCE
_CLASS: V ________________________________________________________

CHAPTER 5
GRAPHICS
Instructions:

 Question & Answers are to be written in notebook.


 Fill ups, True/False and Match the following can be done in text book.

ANSWER THE FOLLOWING

1. What are the two different modes in BASIC language?


The two modes of the screen in BASIC are Text mode and Graphic mode.

2. What is a SCREEN command?

SCREEN command is used to change the resolutions of the screen; i.e. to


change the number of rows and columns on the screen.

3. Write the function of a COLOR command.

COLOR command is used to change the color of text and graphics.

Syntax : COLOR n

‘n’ is for the colour code.

eg: COLOR 2 is green.

4. Write the syntax of LINE command to draw a box.

Syntax: LINE (y, x) – (b, a), C, BF

BHPS/EMP604/LESSON‐5/V/COMPUTER SCIENCE 2020‐21  Page 1 
y is the column number of the starting position and x is the row
number.

b is the column number and a is the row number of the end position.

C, B, F are optional.

C specifies the color.

B is given when you want to draw a box.

F is given with B to fill the box.

FBQ:

PAINT Command – It is used to color any shape.

Syntax: PAINT (x,y), C

where (x,y) are the screen coordinates of a point within the area where one wants
to paint and C is the colour code.

BHPS/EMP604/LESSON‐5/V/COMPUTER SCIENCE 2020‐21  Page 2 
I. FILL IN THE BLANKS:
a) The two modes of the screen in BASIC are Text and Graphic mode.
b) SCREEN 0 changes the screen back to text mode.
c) SCREEN 1 is the medium resolution graphics mode.
d) The figures are drawn in graphics with an invisible pointer.
e) The direction and number of steps in DRAW command should be written
within double quotes.

II. STATE TRUE OR FALSE:


a) SCREEN 2 has 320 columns and 200 rows. – False
b) DRAW “E60” command draws a diagonal line in the upward direction to the
right. – True
c) The colour of text and graphics can be changed. – True
d) In LINE command, B is used to draw a box. – True
e) Using LINE command only a straight line can be drawn. – False

III. MATCH THE FOLLOWING:

DRAW “F20” 20 steps downward direction towards right

DRAW “L40” 40 steps left direction

LINE (10, 20) – (200, 100) Line

LINE (10, 20) – (200, 100), , B Rectangular box

CIRCLE (100, 50),60 Circle with radius 60

BHPS/EMP604/LESSON‐5/V/COMPUTER SCIENCE 2020‐21  Page 3 

You might also like