Programming-Chapter 1(2) Flashcards
Visual C#
Program
Is a list of instructions that tell a CPU to perform operations, a program is copied from disk to memory for the CPU to execute it
Instruction set
Set of operations that the CPU recognises and knows how to execute
Assembly language
Uses short words known as “mnemonics” instead of binary numbers(low-level language)
Assembler
Is a program needed to translate assembly language code into a machine language program
High level languages
Has a predefined set of words that a programmer must use to write a program
Syntax
This is the set of rules that must be followed when writing a program
Compiler
HLL translated to machine language
If a code contains syntax error a compiler error will result
Source code
Programmers code
Compilation
Translates the text-based source code into binary code
Interpreter
One at a time for each high-level
It translates it to machine language instructions
It executes the machine language instructions
Objects have 3 characteristics
Identity: Distinguishes it from other objects
State: Describes the data stored in the object(its properties)
Behaviour: Describes the functionality offered by the object (its methods)
Objects (controls)
We use an objects properties to get or set info about it
We use an objects methods to call/invoke its behaviour(to tell it to do something)
Class
Blueprint for an object
It describes a particular type of object
The data that an object can hold(its properties)
The actions that an object can perform(its methods)
.NET Framework
Provides a collection of ready-made classes another code that you can use including:
Classes to create forms, textboxes, buttons
Classes to generate random numbers
Classes to access data
Program development cycle
The process of creating a program
Six phases
1.Understand the programs purpose
2.Design the GUI
3.Design the program’s logic
4.Write the code
5.Correct syntax errors
6.Test the program and correct logic errors