a. What is a pixel? How do pixels determine the resolution?
b. What is SCREEN statement? Explain with the help of an example.
c. What is the use of the PSET statement?
d. How can the foreground and background colours be set?
e. Explain Sounds in QBASIC with its types.
Answers
Ans. 1
Pixel is derived from the phrase picture elements. Each element of the picture serves as a building block in the screen’s grid. Each pixel has a unique location indicated by a set of coordinates. It also has the capacity to broadcast millions of colors!
Ans. 2
Read this entire page before entering and running the example program. A program must have a SCREEN statement before it does any graphics. When you run the program, the QBasic system starts up the graphics hardware and a graphics screen will appear on your monitor. ...
Ans. 3
The PSET command stands for point set. Explanation: This command is used to set the pixels at any specific location on the screen. It can set the pixel values as per requirement and draw the figure from any point of the screen
Ans. 4
The SOUND command produces sound of a specific frequency for a specific duration from the PC Speaker. Only one sound can be played at a time. If multiple SOUND statements are issued sequentially, every statement after the first will not execute until after the previous one finishes.
Plss Mark me as Brainlist ...
You can designate a new foreground or background color using the Eyedropper tool, the Color panel, the Swatches panel, or the Adobe Color Picker. The default foreground color is black, and the default background color is white
Ans. 5
Answer:
Resolution refers to the number of pixels in an image. Resolution is sometimes identified by the width and height of the image as well as the total number of pixels in the image. For example, an image that is 2048 pixels wide and 1536 pixels high (2048 x 1536) contains (multiply) 3,145,728 pixels (or 3.1 Megapixels).
2.
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.
c.The PSET command stands for pointset. Explanation: This command is usedto set the pixels at any specific location on the screen. It can set the pixel values as per requirement and draw the figure from any point of the screen.
d. You can designate a new foreground orbackground color using the Eyedropper tool, the Color panel, the Swatches panel, or the Adobe Color Picker. The defaultforeground color is black, and the default background color is White.
e.QBasic has three ways of making sounds.
BEEP command
SOUND command
PLAY command