Function Of The Code string.lower Flashcards

1
Q

Function of the code string.lower

A

Returns the data in the string in lower case

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

Description of a condition-controlled loop

A

The loop runs either while a condition is true or until a condition is true

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

Description and features of an array

A
  • Data
  • Stores multiple data items
  • Of the same data type
  • Under one identifier
  • Can view as a table with many items
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Searching a 1D array

A

Loop through each index in turn e.g.
For x=0 to last element index check array(x)
Next x

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

Description if a 2D array

A

View as a multi-row table

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

Purpose and use of SQL

A
  • Structured query language

* Used to access, create, amend, delete, search, etc databases

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

Function of the SQL
SELECT fieldName
FROM table
WHERE conditions

A
  • Select the fieldname(s) listed
  • From the table named
  • Where the conditions are true
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Description of the array index

A
  • The numeric position of an item in an array

* The first element is element 0

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

Searching a 2D array

A

Loop through each index in turns e.g.
FOR x=0 to 1st dimension last element index
FOR y=0 to 2nd dimension last element index
check array(x,y)
NEXT y
NEXT x

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

Description of a 1D array

A

Only one row in the table

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

Purpose of casting

A

Turning data of one type into another type e.g. the string “22” into the integer 22

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

Examples of Boolean operators

A

Used for comparisons; for example, in IF statements e.g. AND, OR, NOT

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

Examples of arithmetic operators

A

Used to represent mathematical functions e.g. +,*, -, /, ^

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

Description and example of a string

A

A series of characters e.g. Bob

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

Features of a subprogram

A
  • Self-contained code
  • Procedure or function
  • Can be called from the main program(or subprograms)
  • Returns control to the main program when finished
  • Can receive parametres from main program
How well did you know this?
1
Not at all
2
3
4
5
Perfectly