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.
If...Then...Else...Endif statement is used to execute either block of statements.
The While...EndWhile is an exit-controlled 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 decision-making statements?
Write the syntax of If...Then...Else...Endif statement.
Name the two types of looping statements used in Small Basic with their syntax.
2
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. q, 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?
What is the name given to a portion of code

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!