Software Development: High Level Programming Language Constructs Flashcards
What is a variable?
It is the name that a program uses to identify the location that is storing an item of data
What is an integer variable?
A variable that stores a positive or negative whole number
What is a real variable?
A variable that stores fractional numbers
What is a Boolean variable?
A variable that stores only two values, either True or False
What is a character (char) variable?
A variable that stores a single character
What is a string variable?
A variable that stores a sequence of characters
What is a 1-D array?
A One Dimensional Array is used to manipulate a group of data more easily than using independent variable names for each item of data
What 3 things must be specified when declaring an array?
- A name for the array
- A data type for the array
- The size of the array
State two characteristics of a 1-D array
- It stores a list of values with the same data type
* It has a fixed number of values
How can using an array be faster that using several variables when creating a program? (2)
- You don’t need to write a line of code to manipulate each data item individually
- An operation can be performed on each item in the array using a loop
State 2 string operations
- Concatenation
* Substrings
What is ‘Concatenation’?
This is when you join string variables together to make longer strings
What are substrings?
When you use Left, Right and Mid functions to return part of a string.
Name 2 ways you could format inputs and outputs in VB
- Text Box
* Message Box
State a multiple outcome selection
Select CASE