U1T1 - Factfiles Flashcards Preview

CCEA AS Digital Technology > U1T1 - Factfiles > Flashcards

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

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.

2

Give some examples of high level programming languages.

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

3

Give some examples of low level programming languages.

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

4

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.

5

How is program code created?

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

6

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

Using program software.

7

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.

8

What are the main components of an IDE?

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

9

What is a source code editor?

Basic window for entering source code.

10

What are the main things a source code editor provides?

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

11

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.

12

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.

13

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.

14

What is line numbering?

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

15

What does syntax error assistance do?

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

16

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

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

17

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.

18

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.

19

What does design view allow?

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

20

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.

21

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.

22

Give 3 examples of translators.

Compilers, interpreters + assemblers.

23

What does an assembler do?

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

24

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.

25

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.

26

What does an object program contain?

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

27

What 6 things might a compiler perform?

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

28

What is lexical analysis?

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

29

What is pre-processing?

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

30

What is parsing/syntax analysis?

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