All programming languages have built in data types that are used when declaring variables (though not all programming languages have variables - don't worry about this yet though!). Some very common data types, and the ones you need to know for the exam, are as follows: Using these data types we can start to write a simple computer program: dim name as string dim age as integer name = "Barry" age = 56.3 Console.writeline("hello " & name & "! you are " & age & " years old") But wait a second, this gives you an odd output, it says:    Code Output hello Barry! you are 56 years old I told it that Barry was 56.3 years old! The reason is because I have used an integer to store the age and not a real (single or double) datatype, it therefore drops the decimal part. Integers, afterall, don't store decimal places! Depending on the datatype, we assign values in different ways: Integers, Bytes, Real, Singles, Doubles = Plain assignment without speech marks exampleNumber = 7.65 Boolean = Plain assignment without speech marks paidMember = TRUE String, Char = Assignment with speech marks name = "Henry" Date = Assignment with speech marks doB= "12/12/45"
{'wiki_source': 'wikibooks', 'other_info': "{'content_model': 'wikitext', 'language': 'en', 'title': 'A-level Computing 2009/AQA/Problem Solving, Programming, Data Representation and Practical Exercise/Fundamentals of Programming/Built-in data types', 'type': 'text'}"}