Paper II: Data types and Strings Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What is an integer

A

A whole/real number

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

What is real/float

A

All numbers with their fractions

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

What is a boolean variable

A

A variable with the two possible values True or Flase

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

What is a character

A

A data type that stores a single letter, number or symbol

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

What is a string

A

A sequence of characters.

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

What is a string literal

A

Consists of characters enclosed i quotation marks

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

What is concatation

A

When strings are joined together.

Can be done with & symbol

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

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

What is string traversal

A

Process of moving through a string

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