2.2 Flashcards

1
Q

What is an integer?

A

A whole number

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

What is a float?

A

A number with a decimal point

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

What is a character?

A

A single character/symbol that can be typed

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

What is a string?

A

Zero or more characters enclosed in quotation marks

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

What is a Boolean data type?

A

Can only take the value of True or False

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

What is a constant?

A

A value that cannot change during the execution of the program

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

What is the arithmetic operator for addition?

A

+

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

What is the arithmetic operator for subtraction?

A

-

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

What is the arithmetic operator for multiplication?

A

*

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

What is the arithmetic operator for division?

A

/

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

What is the arithmetic operator for modulus?

A

MOD

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

What is the arithmetic operator for quotient?

A

DIV

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

What is the arithmetic operator for exponentiation?

A

**

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

What is the comparison operator for equal to?

A

==

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

What is the comparison operator for not equal to?

A

!=

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

What is the comparison operator for less than?

A

<

17
Q

What is the comparison operator for less than or equal to?

A

<=

18
Q

What is the comparison operator for greater than?

A

>

19
Q

What is the comparison operator for greater than or equal to?

A

> =

20
Q

What is a sequence?

A

Statements are written one after the other and execution follows the same order

20
Q

What is a selection statement?

A

if…then, else, elif

21
Q

What is casting?

A

Converting to another data type

22
Q

What is concatenating?

A

joining together strings

23
Q

What is indexing used for?

A

to isolate a single character in a string

24
Q

What is an array?

A

A data structure of fixed length that can be used to hold several items of the same data type. e.g an array with seven elements could be declared as arrayday[7]

25
Q

What is a database?

A

A collection of records, each having an identical record structure. Each field in a record has a defined field type.

26
Q

What is the format of an SQL statement?

A

SELECT … FROM … WHERE

27
Q

What is a procedure?

A

Similar to a function, but called by simply writing the name of the procedure and any parameters in brackets. They don’t return a value and are defined the same way as a function

28
Q
A