U1T1 - Factfiles Flashcards Preview

CCEA AS Digital Technology > U1T1 - Factfiles > Flashcards

Flashcards in U1T1 - Factfiles Deck (81)
Loading flashcards...

What is a computer program?

Specific set of ordered instructions to be performed by a computer. It represents a solution to the program. Written in high + low level programming languages.


Give some examples of high level programming languages.

C#, Java, Visual Basic + Python. Can be read + understood by humans.


Give some examples of low level programming languages.

Machine Code + Assembly Language. Can be read + understood by machines.


Source Code/Program

Series of language statements written to solve a problem. Machine code/assembly language. Can't be executed unless it's fully compiled.


How is program code created?

Using a text/code editor. Is then translated into machine code.


How must a program be compiled if a text editor is used?

Using program software.


Why might an IDE be used?

Provides programmers with all facilities required to complete development of application from coding to testing. Application can be fully developed within one application.


What are the main components of an IDE?

Source code editor, compiler, debugger, GUI builder with associated toolbox of controls + solution explorer.


What is a source code editor?

Basic window for entering source code.


What are the main things a source code editor provides?

Clipboard, code outlining, code suggestion (IntelliSense), line numbering + syntax error assistance.


What does a compiler do?

Where IDE can remember last number of items copied. Programmers can rotate through list of copied items + choose one to paste into current file. Attempts to convert whole program into machine code before executing.


What is code outlining?

Programmers can collapse/expand selected regions of code under their first lines. This means long programs can be viewed in small logical sections.


What is the point in code suggestion (IntelliSense)?

As you enter a function/statement in code editor its complete syntax + arguments are shown in a ToolTip. When items are needed to complete a statement, it provides popup insertion lists of available functions/statements/constants/values to choose from. Called IntelliSense in Microsoft Visual Studio.


What is line numbering?

Line numbers help programmers to distinguish between lines in lengthy coding sections.


What does syntax error assistance do?

As code entered, code editor places wavy lines beneath wrong code. Sometimes errors are colour coded.


In Microsoft Visual Studio, what are the colour codes for each error type?

Red = Syntax Error.
Blue = Semantic Error (Mistyped Class Name)
Green = Warning.


What does a compiler do?

Produces executable (.exe) file. Code written by programmer is compiler with additional libraries to create machine code version of program which can be executed by processor. Core translation process. Program can't be successfully compiled unless it's error free.


What does a GUI builder with associated toolbox of controls do?

Allows programmer to create windows applications by positioning controls on screen. Controls (Textboxes, combo-boxes, radio buttons) can be added to forms by dragging them from toolbox. 2 views, graphical design + code view.


What does design view allow?

Allows programmers to specify location of controls + other items on user interface.


What does a solution explorer do?

Graphical representation of entire solution. Window displays solutions, their projects + items in projects. Usually files can be opened for editing, new files added + item properties viewed.


What are debugging + break points?

Programs can contain logic problems which become apparent at run-time. This is where code, although syntactically correct, isn't providing correct results. Debugger detects + corrects these issues. Programmers can set breakpoints where program stops during execution + allows them to examine value of diff variables.


Give 3 examples of translators.

Compilers, interpreters + assemblers.


What does an assembler do?

Translates assembly language into machine code. Low level language (AC) Each processor has a diff assembly code.


What does an interpreter do?

Translates source code one line at a time. Processor executes a line of code before proceeding to translate next line. No version of machine code stored. Generated each time program is run.


Describe the process of translating a program (Compiler)

During first stage, syntax of each statement checked, if wrong, error list made. Source code can't be fully compiled until all errors removed. Compiled using language compiler + result is object program.


What does an object program contain?

String of 0s + 1s (machine/native code). Executable.


What 6 things might a compiler perform?

Lexical analysis, pre-processing, parsing/syntax analysis, semantic analysis, code generation + code optimisation.


What is lexical analysis?

Converts incoming source code into fixed length binary code items called tokens.


What is pre-processing?

Includes library code for classes + methods used within source code.


What is parsing/syntax analysis?

Checking statements within code to ensure they conform to rules of grammar for language.