Exam Revision Flashcards
(44 cards)
A parameter is:
A placeholder for data passed to a sub routine or function
Machine code is:
The output of the compiler.
Valid comment in Visual Basic
‘The rest of the line is a comment
The scope of a private sub is
This subroutine can only be used by this form (or class)
A group of objects or variables all having the same name are
An array
What is copyright? Why do we have copyright?
Copyright is the right that creators have to stop others from copying their creative works without their permission. It is done to protect the work of individuals so it is not stolen and claimed as their own.
What is public domain?
Public domain works are not restricted by copyright and do not require a license or fee to use. Public domain status allows the user unrestricted access and unlimited creativity!
What is fair use?
Fair use is a defence to copyright infringement. It essentially asks of
any particular use, ‘is this fair?’ This is determined on a case by case basis. The statute does not define what is fair.
What is the creative commons?
Creative Commons is an international non-profit organisation that provides free licences and tools that copyright owners can use to allow others to share, reuse and remix their material, legally.
What is different about an open software?
The term “open source” refers to something that can be modified because its design is publicly accessible.
What is string?
A string is a data type used in programming, such as an integer and floating point unit, but is used to represent text rather than numbers.
What is char?
It is short for character, which is a data type that holds one character (letter, number, etc.) of data. For example, the value of a char variable could be any one-character value, such as ‘c’, ‘4’, or ‘#’.
What is Boolean?
Boolean consists of operators such as AND, OR, NOT, and XOR. Booleans are often used in programming and today in Internet search engines. Boolean expressions are expressions that result in the value of either TRUE or FALSE
What is an integer?
A whole number
What is Hungarian Notation?
Hungarian notation is an identifier naming convention in computer programming, in which the name of a variable or function indicates its type or intended use.
How do you use the RND() function to get a whole number between 2 and 12
Private Sub Form_Load() Randomize Dim iNumber As Integer For iNumber = 2-12 Next End Sub
What are properties? When can you change them? How?
Characteristic of an object.
Why do we place comments in the code? Where should we place it?
You can use comments to explain your code, which can help you when you edit the source code at a later date. This is especially useful if you have a lot of code.
Enumerations are a constructed data type. Why do we use them? How are they “constructed”?
An enumeration is a data type consisting of a set of named values that represent integral constants, known as enumeration constants. An enumeration also referred to as an enumerated type because you must list (enumerate) each of the values in creating a name for each of them. In addition to providing a way of defining and grouping sets of integral constants, enumerations are useful for variables that have a small number of possible values.
Arrays are a data structure. When do we use an array? Why do we use an array? How do you declare an array
In programming, a series of objects all of which are the same size and type.
int[] myIntArray = new int[3];
int[] myIntArray = {1,2,3};
int[] myIntArray = new int[]{1,2,3};
How is machine code different from high level language?
The lowest-level programming language (except for computers that utilize programmable microcode) Machine languages are the only languages understood by computers
a high-level programming language is a programming language with strong abstraction from the details of the computer.
What does a compiler do?
A compiler is a program that translates the source code for another program from a programing language into executable code. The source code is typically in a high-level programming language
Explain the role of the linker.
a linker is a program that combines object modules to form an executable program.
Explain the use of the “Imports” statement in a program.
The Imports statement enables types that are contained in a given namespace to be referenced directly