2.2.3 Flashcards

1
Q

text file

A

a set of character values which are in a document line by line

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

how to add writing to a file?

A

.write()

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

how to close a file?

A

.close()

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

how to read everything on a file?

A

.read()

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

how to print one line at a time from a file?

A

.readline()

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

what are the different file modes?

A

-‘r’ (read only)
-‘w’ (write mode, all the current data is discarded)
-‘a’ (append mode, adds to the existing file)

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

what does SQL stand for?

A

Structured
Query
Language

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

what is SQL?

A

a language used to retrieve data from a database

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

describe SQL

A

it’s persistent, related and organised

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

record

A

all of the data about one item in a database

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

field

A

a characteristic of something stored in a database

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

how do you work SQL?

A

SELECT <fieldname>
FROM <tablename>
WHERE <condition></condition></tablename></fieldname>

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

what does * do in SQL?

A

all fields should be included

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

what does J% do in SQL?

A

all conditions beginning with J

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

what are the advantages of a subroutine?

A

-more efficient program
-improved reliability
-saves total programming time

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