Year 10 – Introduction to Programming – Exam Revision

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/72

flashcard set

Earn XP

Description and Tags

Flashcards for exam revision

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

73 Terms

1
New cards

Visual Basic Program Creation Order

The correct order is: Create the interface, set the properties, write the code

2
New cards

Visible Property

The property that if set to false, will cause the control not to be seen.

3
New cards

Check Box

Involves turning on or off an option in a dialog box.

4
New cards

Function

A reserved word in Visual Basic.

5
New cards

Boolean

A data type to store a value that has one of two possible states such as true or false.

6
New cards

Subprogram

A self-contained section of code that performs a particular task.

7
New cards

OOP (Object-Oriented Programming)

Requires a programmer to package data and the methods into a single unit called an object.

8
New cards

Logic Error

Result from an incorrect series of steps to solve the problem.

9
New cards

Internal Documentation

Comments or remarks within the program code to explain its purpose.

10
New cards

Visual Basic

An Object-oriented programming language

11
New cards

The Toolbox

Window to see all of the objects that you can add to a form.

12
New cards

TextBox control

Control that displays text that can be modified by the user

13
New cards

Single

Data type for decimal

14
New cards

Names may contain spaces

Naming identifiers that is not allowed

15
New cards

>

Type of operator used for comparison.

16
New cards

If

Logical operator

17
New cards

A nested If

If statement contained within another If statement.

18
New cards

Startup

The form that us loaded first in a project with multiple forms

19
New cards

ListBox

Control from the toolbox to create list boxes on a form

20
New cards

FirstName

Example of Camel casing

21
New cards

Illegal variable name

2nd_Try

22
New cards

Legal variable name

OurCompanyName

23
New cards

Legal variable name

Rnd

24
New cards

Legal variable name

Address_Line2

25
New cards

Illegal variable name

Howareyou?

26
New cards

Visual Basic Syntax for R = D  2

R = D / 2

27
New cards

Visual Basic Syntax for Count  10

Count >= 10

28
New cards

Visual Basic Syntax for Perimeter = 2(L + W)

Perimeter = 2 * (L + W)

29
New cards

Visual Basic Syntax for Y = 32

Y = 32

30
New cards

Caption Value for Extra cheese

Value would be TRUE

31
New cards

INT(7.8)

Result is 7

32
New cards

9 mod 2

Result is 1

33
New cards

16\10

Result is 1

34
New cards

8 + 3 ^ 2

Result is 17

35
New cards

Format(3/4, “#.###”)

Result is .75

36
New cards

Format(3/4, “0.000”)

Result is 0.750

37
New cards

Format(3/4, “#.000”)

Result is .750

38
New cards

Format(3/4, “0.###”)

Result is 0.75

39
New cards

Single line of code to display the letter “A” on a button called, btnA

btnA.Text = "A"

40
New cards

What is internal documentation?

Adding comments to the code to explain what it should do. It's used to enable better program understanding and easier debugging.

41
New cards

the two different roles of the equals sign

the equals sign is assigning a value to a variable; the equals sign is used as a comparison operator.

42
New cards

“Jonathan” > “Johnathon”

TRUE

43
New cards

“television” = “TV”

FALSE

44
New cards

“Australia” < “Oz”

FALSE

45
New cards

What is the difference between syntax error and logic error?

Syntax error, means that an error has been made with the grammar of the programming language. Logic error, means the program compiles and runs but it produces the incorrect result.

46
New cards

Controls

btnEnlarge and lblMessage

47
New cards

Event

Click

48
New cards

Property

FontSize

49
New cards

Value of property

13.5

50
New cards

A variable LastName holding the surname of a student

Dim LastName As String

51
New cards

A variable GameOver that is to have a value of TRUE or FALSE

Dim GameOver As Boolean

52
New cards

A variable IntRate that hold the value of bank interest rate as a percentage

Dim IntRate As Single

53
New cards

A constant Pi that has a value of 3.14

Const Pi As Single = 3.14

54
New cards

Condition

chkItalic.Checked

55
New cards

‘Then’ action

txtEntry.Font = New Font("Arial", 12, FontStyle.Italic)

56
New cards

‘Else’ action

txtEntry.Font = New Font("Arial", 12, FontStyle.Regular)

57
New cards

Object-Oriented Programming Language

VB is called Object-Oriented Programming because: VB treats all the elements found in the language as objects. This makes for a more effective method of programming, as the programmer focuses their attention on what they want individual objects to do, rather than giving step-by-step instructions to the computer.

58
New cards

Event handler that will calculate and display the volume.

Volume = Length × Width × Height)

59
New cards

77

Integer

60
New cards

Sarah Tang

String

61
New cards

4.56

Sindle

62
New cards

TRUE

Boolean

63
New cards

Form

frm

64
New cards

Button

btn

65
New cards

Check box

chk

66
New cards

Horizontal scroll bar

hsb

67
New cards

Label

lbl

68
New cards

Picture box

pic

69
New cards

Radio button

rad

70
New cards

Text box

txt

71
New cards

Timer

tmr

72
New cards

Vertical scroll bar

vsb

73
New cards

Image list

iml