Digital Learning

Monday, November 10, 2025

Small Basic-Loopiong and Graphics-Class-8-Chapter-8(2025-26):


CBSE SOLUTIONS-2025-26
CLASS-8
CHAPTER-8 Small Basic-Looping and Graphics

A. Multiple Choice Questions (MCQs)
Q1. The default width of Graphics Window is –
(A) 621  (B) 622  (C) 623  (D) 624
Answer: 621
Q2. The default pen colour is –
(A) Red  (B) Blue  (C) Black  (D) Green
Answer: Black
Q3. The default colour of the brush is –
(A) Green  (B) Yellow  (C) Light Blue  (D) None of these
Answer: Light Blue
Q4. There are ___ types of looping statements in Small Basic.
(A) 2  (B) 3  (C) 4  (D) 5
Answer: 3
Q5. The default height of Graphics Window is –
(A) 445  (B) 446  (C) 447  (D) 448
Answer: 446


B. True or False:
Q1. The default background colour of the Graphics Window is red.
Answer: False
Q2. The Graphics Window is made up of thousands of dots called pixels.
Answer: True
Q3. Each pixel can be represented by X coordinate.
Answer: False
Q4. The While loop repeats the instructions until the given condition is true.
Answer: True
Q5. The X coordinate increases from top to bottom.
Answer: False

C. Fill in the Blanks:
Q1. Statements that enable you to create loops are known as ________.
Answer: Looping statements
Q2. By default, the Graphics Window is ________ pixels wide (X) and ________ pixels high (Y).
Answer: 621 pixels wide and 446 pixels high
Q3. A ________ is used to repeat a block of statements multiple times.
Answer: Loop
Q4. The ________ method allows you to display text and numbers on the graphics output area at the specified location.
Answer: DrawText method
Q5. The Graphics Window is made up of thousands of dots called ________.
Answer: Pixels


D. Answer the Following Questions:
Q1. What is the difference between the For Loop and While Loop?
Answer:
For Loop is used when the number of repetitions is known in advance.
While Loop is used when the number of repetitions is not known and depends on a condition being true.
Q2. What are the four properties of font in Graphics Window?
Answer:
The four properties of font in Graphics Window are:
FontName
FontSize
FontBold
FontItalic
Q3. What do you mean by a loop?
Answer:
A loop is a programming structure that repeats a set of instructions until a specific condition is met or for a fixed number of times.
Q4. Explain any four methods of Graphics Window.
Answer:
GraphicsWindow.DrawLine(x1, y1, x2, y2): Draws a line between two points.
GraphicsWindow.DrawRectangle(x, y, width, height): Draws a rectangle.
GraphicsWindow.FillEllipse(x, y, width, height): Draws and fills an ellipse.
GraphicsWindow.DrawText(x, y, text): Displays text at a specified position.
Q5. Define the term Subroutine.
Answer:
A Subroutine is a set of statements written separately to perform a specific task, which can be called and executed from different parts of the program.

No comments:

Post a Comment