Computer Science, asked by gk9663534, 1 month ago

4. Answer the following questions.
1. Explain the SCREEN statement used in QBASIC with an example.

Answers

Answered by shrrutigupta
1

Answer:

A program must have a SCREEN statement before it does any graphics. A computer that is more than fifteen years old might need to use one of the older SCREEN modes. We will always use SCREEN 12. Here is a graphics program which puts one spot on the monitor screen. To be safe, close down any other programs you have running on your computer before you run this one.

'Put a spot on the screen at column 30 row 50

SCREEN 12

PSET (30, 50)

END

When you run the program, the QBasic system starts up the graphics hardware and a graphics screen will appear on your monitor. This screen is a temporary replacement for the screen that you usually see on your monitor. You should see a small spot close to the upper left of the monitor screen.

Explanation:

Similar questions