Constants, variables and data types Flashcards Preview

AQA Computer Science GCSE > Constants, variables and data types > Flashcards

Flashcards in Constants, variables and data types Deck (19):
1

What is a variable?

A variable is a label for stored information that can change while the program is running

2

What is a constant?

A constant is label for stored information that cant change while the program is running

3

Which data type stores whole numbers?

Integer

4

Which data type stores text?

String

5

Which data type only has two possible values?

Boolean (true or false)

6

Which data type can store a single letter (or number, symbol etc)

Character (char)

7

Which data type stores any numbers including fractions?

Real (sometimes called float)

8

Which data type would you use to store 15/4/12?

Date/Time

9

Which data type would you use to store 20:15?

Date/Time

10

Which data type would you use to store 4 September 2014 13:30 ?

Date/Time

11

What characters can you start a variable name with?

letter or underscore

12

What characters can you use in the main part of a variable name?

letter, number, underscore

13

True or false? if a is true and b is true, a AND b is...

true

14

If A is false and B is false then A AND B is...

false

15

if A is false and B is true then A and B is....

false

16

if a is true and b is true, a OR b is...

true

17

if a is true and b is false, a OR b is...

true

18

if a is false and b is false , a OR b is...

false

19

if A is true, NOT A is...

false