You are on page 1of 7

1718- Level J Computing Final Term 1 Page 8 of 14

Sample Answers Exam

1. In Small Basic, to open the graphical interaction window, you should use the
_ GraphicsWindow _ object.

2. What can be done with the graphics window?


Show the graphics window
Display message boxes
Add drawings to the graphics window
Change the background color of the graphics window

3. Which of the following is/ true about graphics window?


It allows the use of the mouse to interact with the program True
It cannot be used unless it is shown first True
The graphics window is the same as the DOS window False
It provides a graphical interface to the program True

4. What is the first command to use when working with the graphics window?
GraphicsWindow.Show( )

5. Which of the following properties of the graphics window can be modified?


The title The background color The width The height
Answer: All of them

6. Write a statement to display the text Computing on the title bar of the graphics
window.
GraphicsWindow.Title = "Computing"

7. Write a statement that changes the background color of the graphics window.
GraphicsWindow.BackgroundColor = "red"

8. Which of the following is the correct way to set the height of the graphics window to
200?
GraphicsWindow.SetHeight = 200 False
GraphicsWindow.Height = 200 True
GraphicsWindow.Height(200) False

9. The height and width of the graphics window are measured in _pixels_ and you _ can_
(can/cannot) change them.
1718- Level J Computing Final Term 1 Page 9 of 14

10. Define the term pixel.


A pixel is a unit of color
Its concentration defines the quality of the graphic
Each pixel is approximately one dot on the screen

11. In the graphics window, where is the location where x = 0 and y = 0?


The upper-left corner of the graphics window

12. Write a statement to draw a line in the graphics window


GraphicsWindow.DrawLine(30,40, 80, 100)
Note: DrawLine must have 4 parameters

13. Which of the following will change the outline color of the shapes to green?
GraphicsWindow.OutlineColor = "green" False
GraphicsWindow.ShapeColor = "green" False
GraphicsWindow.PenColor = "green" True

14. Write a statement that changes the fill color of the shape to yellow?
GraphicsWindow.BrushColor = "yellow"

15. Write a statement that draws a circle filled with color?


GraphicsWindow.FillEllipse

Write a statement that draws a rectangle filled with color?


GraphicsWindow.FillRectangle

16. Which function makes the turtle visible?


Turtle.Show()

17. In the following instruction, what does x stand for?


Turtle.Move(x)
The distance measured in pixels

18. What is the purpose of the following commands:


Turtle.PenUp(): To make the turtle move without drawing a line
Turtle.PenDown(): To make the turtle draw a line while moving

19. To turn the turtle 90 degrees to the right we can type _Turtle.TurnRight()_ or
_Turtle.Turn(90)_.
1718- Level J Computing Final Term 1 Page 10 of 14

20. To turn the turtle 90 degrees to the left we can type _Turtle.TurnLeft()_ or
_Turtle.Turn(-90)_.

21. In the following instruction, what does y stand for?


Turtle.Turn(y)
The angle to turn measured in degrees.

22. Write a statement to change the color of the line drawn by the turtle to yellow?
GraphicsWindow.PenColor = "Yellow"

23. Write a command to make the turtle move very slowly.


Turtle.Speed = 1

24. Write a command to make the turtle disappear.


Turtle.Hide()

25. What will the codes below draw?

A rectangle A triangle A circle

26. Which of the following is/are true about programming languages?


Instructions are also called lines of code. True
Instructions are written in English-like sentences. True
Instructions can be written without rules. False
Instructions adhere to programming language rules. True

27. A programming language is made up of __ keywords__ and __statement__.

28. What is a keyword?


It is a word or identifier that has a particular meaning in a programming language.

29. Running a program means __ to execute it__.

30. What does debugging a program mean?


Finding and fixing the errors in a program
1718- Level J Computing Final Term 1 Page 11 of 14

31. Each programming language has a set of rules called _grammar_.

32. When you select a command in IntelliSense, how can you add it to your editor window?
By pressing the Enter or Tab key

33. Which of the following is false about a program?


Running a program executes lines of code sequentially. True
A program is coded by a programmer. True
A program can be executed if it has a mistake. False

34. What do we press to display IntelliSense?


Ctrl + Spacebar

35. Write a command to output the word Computing.


TextWindow.WriteLine(Computing)

36. What in the name of buttons?


Run

37. Use the following diagram to answer the questions below

a. What is shown in the above diagram?


DOS command line window
b. When will the above window appear?
When you press the Run button
1718- Level J Computing Final Term 1 Page 12 of 14

38. Use the following diagram to answer the questions below

a) What does Part 1 represent?


The part that holds tools to process the programs we create.
b) What does part 2 represent?
The working area where we write our program.
c) What does part 3 represent?
The area displaying information about the commands that we are using or
instructions we are typing.

39. Use the following diagram to answer the questions below.

a. How many lines of code are there? 5


b. How many errors were found? 3
c. The first error shown is in which line of code? 4
d. The first error appears at ___character 22____ of the specified line.
e. Write, WriteLine, and TextWindow are called __keywords__.

40. What key on the keyboard can you press to display the output window in Small Basic?
F5
41. What is the definition of a network?
It is a group of two or more computers that are linked together.

42. What are the common functions of a computer network?


Share printer
Send e-mails
Share Internet connection
Share files

43. List 3 advantages of sharing a printer on a network?


1718- Level J Computing Final Term 1 Page 13 of 14

o Cost saving.
o Several users can use one printer.
o Anyone connected to the network can use the printer.

44. What are the advantages of using an email?


Email is fast and reliable.
Note: To send and receive emails, computers must be connected to a network.

45. State whether each of the following characteristics of Media are TRUE or FALSE.

Media refers to all hardware needed to build a network (F)


Cables that connect machines are considered media (T)
Fiber optic, copper wires and Radio waves, are examples of media (T)
Hubs and switches are media (F)
Media can be wired or wireless (T)

46. Give three examples of wireless media.


Radio waves, Wi-Fi, and infrared

47. Fiber optic cable is an example of _ wired _(wired/wireless) media.

48. What does Media mean in computing term?

They are the connections between machines on a network that enable communication.
49. Every computer on the Internet has an __ IP address__.
50. List 4 characteristics of an IP address.
Every computer on a network must have an IP address.
An IP address takes the form of A.B.C.D.
An IP address must be unique among computers on the Internet.
IP addresses identify computers on a network.

51. _A router_ decides whether a message should remain inside a network or sent outside to
another network

52. Circle the valid IP addresses from the list below:

233.15.101.254 Valid
12.1.270.14 Invalid
25-12.23-211 Invalid
200.154.211 Invalid
123.211.12.100 Valid
31,28,12,-16 Invalid

53. An IP address takes the form of __A.B.C.D__, where A, B, C and D must be


__ whole__ numbers between _0_ and_ 255_.
1718- Level J Computing Final Term 1 Page 14 of 14

54. What properties of IP addresses make it sufficient as an addressing system for the
Internet?
It must be unique and every computer must have an IP address.

55. Which of the following is True about programming languages


Instructions are also called lines of code. True
Instructions are written in English-like sentences. True
Instructions can be written without rules. False
Instructions adhere to programming language rules. True

56. Each programming language has a set of rules called_grammar_.

57. Run and Graduate are examples of __program__ operations.

58. What does IntelliSense mean?


It is a feature in Small Basic that helps recall and correctly write commands and keywords.

59. What in the name of the following buttons?

Run Save Save As IntelliSence

You might also like