Programming Flashcards

1
Q

What does ASCII represent?

A

Alphanumeric data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is Binary used to represent?

A

Numbers, letters and symbols

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Why do we use ASCII?

A

Because computers use all information in binary

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How is each character represented?

A

As a binary number from 0 to 127

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How is characters stored?

A

As a binary value in 7 bits. 1 bit is reserved for error checking

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Why is ASCII limited?

A

As it doesn’t store all possible characters such as foreign languages or future symbols

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Why can’t ASCII represent more characters?

A

We are limited by how many bits are used per character

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are variables?

A

Named objects that can store one item of data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What can variables hold?

A

Whole numbers, strings of characters, decimals, single characters or set to true or false

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What do we use to declare a variable?

A

Dim

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What are the data types?

A

Integer, decimal, char, string, Boolean

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What are loops?

A

Loops are used in programs to carry out some instructions more than once

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What are the two types of loops?

A

Conditional and fixed(unconditional)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

When would you use a fixed loop?

A

If you know how many times the loop should be carried out

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is input validation?

A

Additional code that checks what has been entered and sees if it is sensible

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What are the three types of testing?

A

Normal
Extreme
Exceptional

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

How would you fully test a program?

A

You need to use all three testing types

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

What is normal testing?

A

Data that you would expect to be inputted to the program eg enter year of study 2,4

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

What is extreme testing?

A

Data that is on the limits of acceptability. This type should make the program run even though it is on the borders of acceptability
Eg enter your year of study 1,6

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

What is exceptional testing?

A

Data that wouldn’t be inputted under normal use. Eg you would enter a letter when asked for number eg enter your year of study yes, -2000

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

What is the most basic component of any computer graphic?

A

Pixel

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

How would you work out the file size of something?

A
File size = number of pixels in image X number of bits used per pixel eg 
600x400=240000
240000x24=5760000
5760000/8=720000
720000/1024=703 kb
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

What is the other way to calculate a file size?

A

If resolution given in DPI then:

Length X dpi X breadth X dpi

24
Q

What is floating point representation?

A

Standard form or scientific notation

25
Q

What does floating point representation store?

A

Large numbers efficiently

26
Q

110110011001 X 2^00000100

What is the names for the numbers in this scientific form?

A

Number on left - mantissa
Number on right - base
Number above base - exponent

27
Q

What is ASCII?

A

American Standard Code for Information Interchange

28
Q

How would you work out the floating point representation?

A

(77x55) X (77x66) = 21522270 X 16 = 344356320 / 8 = 43044340/1024 = 42035.7 /1024= 41 MB

29
Q

What are the three parts that the processor is made up from?

A

Control unit, Arithmetic and Logic Unit (ALU), Registers

30
Q

What do registers store?

A

Data for the current instruction being processed. These are small temporary memory locations located on the processor

31
Q

What is the Control Unit?

A

Carries out instructions that are fetched from main memory. It sends out signals that fetch instructions from main memory

32
Q

What is the ALU?

A

Computer calculations being carried out eg addition, subtraction. It also carries out logical functions such as comparing values using IF, AND, , WHILE

33
Q

What are the differences between backing storage and main memory?

A

Backing storage is outside the main processor, while main memory is located inside the computer

34
Q

What does RAM stand for?

A

Random Access Memory

35
Q

What does ROM stand for?

A

Read Only Memory

36
Q

What is RAM?

A

Where the operating system is stored. Holds all programs and data. Processor can edit and read RAM

37
Q

What is ROM?

A

Where data is stored permanently on computer system. Data not lost when you turn off computer

38
Q

What is an example of backing storage?

A

USB pen drive

39
Q

What is the main indicator of a computer speed?

A

Clock speed

40
Q

What is clock speed?

A

Rate at which a processor carries out instructions

41
Q

What would be the typical processor speed?

A

2.4 GHz

42
Q

What does it mean when a computer has a processor speed of 2.4 GHz?

A

It carries out 2.4 BILLION INSTRUCTIONS A SECOND

43
Q

What are buses?

A

Multiple lines that connect the processor and main memory and are used to TRANSFER DATA AND SEND SIGNALS BETWEEN THEM

44
Q

What is an Address bus?

A

These are used to specify the address of the memory location that is to be read from or written to

45
Q

what is the address bus direction?

A

Uni directional (one way)

46
Q

What is the address bus made up of?

A

Parallel wires each carrying a single bit

47
Q

What is a data bus?

A

This bus is used to transfer data between main memory and the processor

48
Q

What is the data bus’s direction?

A

Bi directional (two way) since data can be transferred from a location and vice versa

49
Q

What do interfaces do?

A

Connect a computer and a device so. That they can work together

50
Q

Where do we plug in most peripherals?

A

USB ports

51
Q

What does an interface do

A

Data conversion - computers use digital but the majority of its peripherals and communication in the outside world and analogue
Buffering - devices send out and receive data at different rates and the interface needs to compensate differences in speed.

52
Q

what do translators do

A

it translates code written by humans into code understood by computer processors

53
Q

what are interpreters

A

takes each line of high level language and translates it into machine code

passes on instruction to processor to carry out

works its way through code one line at a time

54
Q

what are the advantages and disadvantages of interpreters

A

adv

program will run even if not finished

easy to spot errors during translation

program will run as soon as first line is translated

disadv

no copy of machine code saved

process of translating program slows down running of it

need a translator program or you cannot run it

55
Q

what are compilers

A

takes high level language and translates whole program into machine code at once

this can be saved and kept

an example of this is an .exe file

56
Q

what are the adv and disadv of compilers

A

adv

machine code is saved

program only needs to be translated once

doesnt need a translator program to run machine code

runs quicker than an interpreter

disadv

have to wait until code is complete and errors have to be fixed before translation can be finished

each time program changed it needs to be translated

57
Q

what is an execution error

A

entering text when its asks you for a real number