Python Flashcards

1
Q

Auto-Indentation

A

where the editor automatically indents lines that need to be indented, such as those ending in colons

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

Break

A

a command within a loop that gets the loop to stop

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

Camel Case

A

a way of writing variables in Python

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

Lower Camel Case

A

a command within a loop that gets the loop to stop

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

Snake Case

A

looks_like_this_with_underscores

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

Upper Camel Case

A

LooksLikeThisWithEveryLetterCapitalised

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

Casting

A

converting to a particular data type

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

CSV Files

A

Comma Separated Values Files

these are files that can easily be structured into tables, where data is arranged in several records, or rows, with values separated by commas

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

Dictionary

A

a collection which is ordered, changeable and does not allow duplicates

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

DIV

A

integer division or quotient, which returns the whole number part after the division

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

Docstring

A

describes a module, function, class or method

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

Editor Window

A

part of an IDE and IDLE used for typing in, editing and saving your code

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

Errors

A

problems in a program

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

Linking Error

A

an error that occurs when the program calls a library that has not been linked to the program

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

Logic Error

A

when the code runs, but does not do what you want it to

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

Rounding Error

A

when a number is rounded, for example 4.5 is rounded to 5.0, creating a rounding error of +0.5

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

Runtime/Execution Error

A

an error that occurs when the program requests more memory than is available, causing the program to crash whilst it is running

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

Syntax Error

A

an error that occurs when a program does not follow the expected syntax of the code, eg there is a typo

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

Truncation Error

A

when a number is truncated, for example 3.7 is truncated to 3.0, creating a truncation error of – 0.7

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

Exponentiation

A

raising to a power in Python

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

Guido van Rossum

A

the man who invented Python in 1991, naming it after Monty Python’s Flying Circus

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

Indent

A

gap at the start of a line of code

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

Index

A

automatically assigns a numerical value to each character’s position in the string

24
Q

IDE

A

Integrated Development Environment

a piece of software designed to help programmers write, test and edit their code, including compiling tools that format and translate the language the code into a language the computer can understand

25
Automatic Colour Coding
automatically turns various types of codes different colours
26
Automatic Formatting
automatically formats the code in the best way
27
Automatic Line Numbering
automatically assigns a number to each line of code
28
Break Point
line of code put in wherever you want to start a new debugging session
29
Code Optimisation
the adding of code to increase the performance of the code
30
Compilation of Code
where the python code is translated into machine code at once
31
Debugger
finds errors in the code
32
Editor
used to edit the code
33
Error Diagnostics
information that is presented following the detection of some error condition and is mainly intended to assist in identifying the cause of the error
34
Interpretation of Code
where python code is translated into machine code one line at a time
35
Libraries
collection of non-volatile resources used by computer programs
36
Linker
a program in a system which helps to link object modules of a program into a single object file
37
List
a collection of ordered, changeable numbers that allows duplicates
38
Loader
an object that is returned by the finder
39
Membership Exclusive
returns True if character doesn't exist in string
40
Membership Inclusive
returns True if a character does exist in string
41
Memory Inspector
used to calculate the space or memory your particular function is using and manage it
42
Range Slice
selects characters in a specified index range
43
Raw String
suppresses meaning of escape characters
44
Relational Operator
Boolean expression such as ==, < or >
45
Routines
code called and executed anywhere in the program
46
Set
an unordered collection data type that is alterable, mutable, and has no duplicate elements
47
Slice
select a character at a specified index position
48
Split
breaks apart the line whenever it sees a delimiter, and returns the list with separated items
49
Standard Functions
the functions and types built into the IDE
50
Statement Completion
automatically completes statements as you type them
51
Strip
removes any unnecessary characters, such as spaces, at the start and end of the line, including \n
52
Subroutine
a routine inside a routine
53
Syntax Error Detection
detects syntax errors in the code
54
Trace
allows you to trace program execution, generate annotated statement coverage listings and list functions executed during a program run
55
Tuple
a collection which is ordered and unchangeable
56
Variable Watch
makes it easier to keep track of variables in your code
57
Robustness
how frequently software encounters errors, the ability of a program to respond to unexpected events and handle them