Save
...
Paper 2
Programming Fundamentals
Additional Programming Techniques
Save
Share
Learn
Content
Leaderboard
Share
Learn
Created by
Caylin Hindle
Visit profile
Cards (25)
What is an array in programming?
A
static
data structure for
fixed
data elements
View source
What must each data element in an array be?
Of the same
data type
View source
What is the index in an array?
A
number
indicating the
position
of
elements
View source
What index does the first element in an array have?
0
View source
How can you traverse an array in programming?
Using a
for loop
View source
Can you insert new values into an array?
No, the size is
fixed
View source
What happens when you overwrite the fourth element in an array?
It
changes
to
the
new value
View source
How do you delete a value in an array?
Overwrite it with a
blank
View source
What is needed to search through a large array?
A
for loop
to check each element
View source
What is a two-dimensional array?
An array with
multiple rows and columns
View source
How is indexing done in a two-dimensional array?
Using two index values for
row
and
column
View source
How do you print a specific data element in a two-dimensional array?
Use the
index number
View source
How do you search for a specific value in a two-dimensional array?
Use two
for loops
View source
What can records store that arrays cannot?
Data of
different
data types
View source
What is each piece of information in a record called?
A
field
View source
What is a key field in a record?
Unique
data identifying each record
View source
Why is Student ID a good key field?
No two students can have the
same
ID
View source
What does SQL stand for?
Structured Query Language
View source
What is the purpose of SQL?
To search for data in a
database
View source
What is the format of an SQL statement?
SELECT
field1
FROM
table
WHERE
criteria
View source
What does the * symbol represent in SQL?
All
fields
View source
Write an SQL statement to select all fields for cars that are grey or blue.
SELECT
*
FROM
Cars
WHERE
Colour
= "grey" OR Colour = "blue"
View source
Write an SQL statement to display all fields for cars that are 10 years old or less.
SELECT
*
FROM
Cars
WHERE
Age
<= 10
View source
What are the differences between a 1D array, 2D array, and record?
1D Array:
Fixed
size
, same data type
2D Array:
Multiple rows
and
columns
, same data type
Record:
Different
data
types
, contains
fields
View source
What are the steps to manipulate arrays in pseudo code?
Traverse: Use a
for loop
Insert: Change existing values
Delete: Overwrite with blank
Search: Use a for loop for
specific value
View source