Paper II: Data types and Strings Flashcards
1
Q
What is an integer
A
A whole/real number
2
Q
What is real/float
A
All numbers with their fractions
3
Q
What is a boolean variable
A
A variable with the two possible values True or Flase
4
Q
What is a character
A
A data type that stores a single letter, number or symbol
5
Q
What is a string
A
A sequence of characters.
6
Q
What is a string literal
A
Consists of characters enclosed i quotation marks
7
Q
What is concatation
A
When strings are joined together.
Can be done with & symbol
8
Q
What gives the position of a character in a string
A
Index number
e.g: the first character has index number 0
the second character has index number 1
9
Q
What is string traversal
A
Process of moving through a string