Podcast
Questions and Answers
The SOUND statement is used to produce a sound through the computer's Hardware Driver.
The SOUND statement is used to produce a sound through the computer's Hardware Driver.
False (B)
The PSET statement is used to set the color of a pixel at a specific _______________ and _______________.
The PSET statement is used to set the color of a pixel at a specific _______________ and _______________.
X-coordinate, Y-coordinate
What is the purpose of the color statement in QBASIC?
What is the purpose of the color statement in QBASIC?
- To open a .wav file
- To display text on the screen
- To set the foreground and background colors (correct)
- To play a musical string
What is the effect of reverberation known as?
What is the effect of reverberation known as?
Which of the following statements is a syntax of the LINE command?
Which of the following statements is a syntax of the LINE command?
In computer graphics, a pixel or pel is the smallest addressable element in a display device.
In computer graphics, a pixel or pel is the smallest addressable element in a display device.
The PLAY statement is used to produce a musical string using a series of _______________, _______________, and _______________.
The PLAY statement is used to produce a musical string using a series of _______________, _______________, and _______________.
Match the following QBASIC statements with their functions:
Match the following QBASIC statements with their functions:
Flashcards are hidden until you start studying
Study Notes
QBASIC Statements
- The color statement is used to display colors on the screen, taking two number values: the first for foreground color and the second for background color.
- The PSET statement is used to set a pixel on the screen, with the syntax
PSET [X-coordinate, Y-coordinate, Color of Pixel]
. - The PLAY statement is used to play a musical string, with the syntax
PLAY 'String'
, where String represents a series of alphabets, numbers, and symbols that produce a musical string in terms of octaves, notes, and duration. - The SOUND statement is used to produce a sound, with the syntax
SOUND (frequency, duration)
, where frequency refers to the desired frequency of the sound in Hertz, and duration refers to the number of clock ticks the sound plays.
Graphics
- The word "graphics" is derived from the word "graph".
- The LINE statement is used to draw a line on the screen, with the syntax
LINE (X1, Y1) - (X2, Y2)
orLINE (X1, Y1) - (X2, Y2), COLOR, (B, BF)
. - The CIRCLE statement is used to draw a circle on the screen.
- A pixel or pel is the smallest addressable element in a display device, representing a single point in a raster image or the smallest picture on the screen.
- The SCREEN statement is used to select various screen modes required to display computer graphics.
Sound
- The BEEP statement is used to play the system beep sound.
- The MUSIC statement is used to produce a sound to draw the attention of the user to an error.
- The effect of reverberation is known as "chorus".
- ATRAC3 (Adaptive Transform Acoustic Coding 3) should be installed to open a .wav file.
Studying That Suits You
Use AI to generate personalized quizzes and flashcards to suit your learning preferences.