Question: What is the name given to a portion of code within a larger code that does something very spores and can be called from anywhere
What is the name given to a portion of code within a larger code that does something very spores and can be called from anywhere in the program?
a Condition
b Loop
c Graphic
d Subroutine
B Write T for True or F for False.
IfThen...Else...Endif statement is used to execute either block of statements.
The While...EndWhile is an exitcontrolled loop.
In Small Basic, the CMYK color code is used in programming.
To create a circle, the height and width of the ellipse must be the same.
The completion of steps under a subroutine is indicated by the keyword Sub.
C Match the following.
PenColor
a Set width of a line
BrushColor
b Draw a square
DrawRectangle
c Set width of GraphicsWindow
Width
d Set fill color of a shape
PenWidth
e Set color of outline of a shape
D Short answer questions
What are decisionmaking statements?
Write the syntax of IfThen...Else...Endif statement.
Name the two types of looping statements used in Small Basic with their syntax.
What is a nested loop?
Write the command to play the sound of click in a program.
What are the keywords used to start and end a subroutine?
E Long answer questions
Describe the function of a conditional statement with the help of a flowchart.
Write a short note on While. EndWhile loop.
What is a loop control variable? What is its role in a program?
Describe the function of a nested loop.
What are the keywords used to customise the Graphics Window?
Explain how to draw a line in Small Basic with the help of an example.
How can sound be added to Small Basic programs?
What are subroutines? How are these useful?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
