Professional Documents
Culture Documents
(2) A list of possible command on the left hand side of the screen in scratch is called
a. Printer
b. Math
c. Operator
d. Hard disk
(7) A big white space in the middle of the screen in scratch is called
a. Script editor
b. Code menu
c. Stage
d. Operator
(9) Scratch has a data structure that lets store lots of variables at once is called:
a. Variables
b. Strings
c. Operator
d. List
(10) The line that starts with a single quote ( ' ) is called_______ in small basic
a. Value
b. Comment
c. Code
d. Program
(11) Three main types of errors in programming are _________logic error, Runtime
error
a. Coding error
b. Verb error
c. Syntax error
d. Script error
(12) Operator are a _______ of function that allows you to make mathematical calculation
like adding subtracting
a. special type
b. use type
c. common type
d. a list
(15) To create an application with a GUI, with buttons and images small basic Can be use
the _______________object.
a. writeline
b. Textwindow
c. Graphic window
d. Math
(16) In the same way, to write a valid Small Basic program, you must follow the
grammatical rules of Small Basic, which are called.
a. Logic rule
b. Spelling rule
c. Adjective rule
d. Syntax rules
(19) GraphicsWindow Properties for the default Font Name, Size is ________.
a. Time New Roma
b. Tahoma
c. Arial
d. Calibri
(20) The three main parts of Small Basic are – language (small basic language), the
supporting ________, the programming interface.
a. outline
b. library
c. environment
d. script
(21) When click on the Run button, Small Basic creates the four other files in order to run
your program. These are (.sb),(.exe),(.dll),(.pdb)
a. (.txt)
b. (.dll)
c. (.docx)
d. (.mp3)
(22) In small basic the coordinate (0,0) is_______________ for graphic windows.
a. upper-left corner
b. lower-left corner
c. upper-right corner
d. lower-right corner
(23) Conditions let to create rules for computer to follow as scripts. One tool for creating a
condition is ____
a. Show
b. Hide
c. If .then
d. Move 10 steps
(24) When cutting and pasting, cutting section is temporarily stored in:
a. Dashboard
b. Clipboard
c. DVD drive
d. LCD display
(26) Which of the following computer that can not be carried around easily?
a. Desktop
b. Laptop
c. Resberry Pi
d. Handheld Computer
(29) Every program is made up of a combination of five basic part: input, output, Math,
Conditional execution and _______________.
a. Software
b. repetition
c. Mathematics
d. Item
(31) The tool bar contains_____ that let you edit and run your program
a. file
b. number
c. space
d. buttons
(32) In scratch ________________ block can also make own changes to the costumes.
a. next Costumes
b. When flag is click
c. When space key pressed
d. Wait 1 Sec
(37) All the important ingredients you need to make a great game are Objective,
Operation_______, Outcome.
a. Obstacle
b. Variables
c. List
d. String
(38) The small basic IDE contain four mail part.The editor, _____, help area ,and surface
a. translator
b. toolbar
c. spelling checker
d. grammer chacker
(39) A ____ means that the information are storing a group of different character is called:
a. variable
b. Numeric
c. List
d. Operator
(40) A computer system is
a. Hardware
b. Software
c. Peripheral devices
d. All of these
3. Complete the following questions using the most appropriate items from the list below. (5
Mark)
VLC media player Adobe photoshop malware scanner
Android Operating System Device driver Microsoft office
Skype Brave chrome
(A) ______________________
(B) ______________________
(C) ______________________
4. Meet the incredible starfish. He can grow and shrink, all with the click of a button. We just
need to use our events to trigger those buttons so Starfish can receive his broadcasted messages
and follow your commands!(10 Mark)
Step 1
Bring in the Starfish sprite and two Ball sprites. To make the second ball green, simply click
on its green costume option in the Costumes tab.
Step2
Click on the thumbnail of the green ball below the stage to open its script editor. Start your
script with a when this sprite clicked event block. Then add a broadcast (__) event block. Click
on the drop-down menu in the code block and choose “New message.” Type in “Shrink.” Try
clicking on your green button. Starfish isn’t doing any shrinking, is he? Well, we have sent a
broadcast. But we have not told Starfish to receive it yet.
Step3
Click on Starfish’s thumbnail to open up his script editor. Add a when I receive (__) event block
and choose “Shrink” from the drop-down menu. Now Starfish has received the broadcast, but
we also have to tell him what he is supposed to do! You want him to get smaller, so you need
to add a
change size by (__) looks block. Type in -10 for the number, so every time he receives the
broadcast, he will shrink by 10% of his size. Try it out! Can you make Starfish shrink? Nice
job!
7. Write a program that connects the following six points with line segments: (20, 110), (110, 50),
(10, 50), (100, 110), (60, 20), (20, 110).,What shape do you get ?.(5 Mark)
Write a program that connects the following six points with line segments:
8. What is the output of the following program by using small basic.(5 Mark)
GraphicsWindow.DrawRectangle(10, 10, 90, 50)
GraphicsWindow.DrawRectangle(15, 60, 75, 4)
GraphicsWindow.DrawRectangle(34, 64, 6, 6)
GraphicsWindow.DrawRectangle(74, 64, 6, 6)
GraphicsWindow.DrawRectangle(30, 70, 75, 10)
GraphicsWindow.DrawRectangle(20, 80, 80, 2)
9. Write a program that calculates and displays the circumference of a circle with a radius of 5
unit.We’ll give you a hint: the equation for the circumference of a circle is 2 x pi x radius . by
using small basic.(5 Mark).