Programming Flashcards
What does ASCII represent?
Alphanumeric data
What is Binary used to represent?
Numbers, letters and symbols
Why do we use ASCII?
Because computers use all information in binary
How is each character represented?
As a binary number from 0 to 127
How is characters stored?
As a binary value in 7 bits. 1 bit is reserved for error checking
Why is ASCII limited?
As it doesn’t store all possible characters such as foreign languages or future symbols
Why can’t ASCII represent more characters?
We are limited by how many bits are used per character
What are variables?
Named objects that can store one item of data
What can variables hold?
Whole numbers, strings of characters, decimals, single characters or set to true or false
What do we use to declare a variable?
Dim
What are the data types?
Integer, decimal, char, string, Boolean
What are loops?
Loops are used in programs to carry out some instructions more than once
What are the two types of loops?
Conditional and fixed(unconditional)
When would you use a fixed loop?
If you know how many times the loop should be carried out
What is input validation?
Additional code that checks what has been entered and sees if it is sensible
What are the three types of testing?
Normal
Extreme
Exceptional
How would you fully test a program?
You need to use all three testing types
What is normal testing?
Data that you would expect to be inputted to the program eg enter year of study 2,4
What is extreme testing?
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
What is exceptional testing?
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
What is the most basic component of any computer graphic?
Pixel
How would you work out the file size of something?
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