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
Q

Automatic Colour Coding

A

automatically turns various types of codes different colours

26
Q

Automatic Formatting

A

automatically formats the code in the best way

27
Q

Automatic Line Numbering

A

automatically assigns a number to each line of code

28
Q

Break Point

A

line of code put in wherever you want to start a new debugging session

29
Q

Code Optimisation

A

the adding of code to increase the performance of the code

30
Q

Compilation of Code

A

where the python code is translated into machine code at once

31
Q

Debugger

A

finds errors in the code

32
Q

Editor

A

used to edit the code

33
Q

Error Diagnostics

A

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
Q

Interpretation of Code

A

where python code is translated into machine code one line at a time

35
Q

Libraries

A

collection of non-volatile resources used by computer programs

36
Q

Linker

A

a program in a system which helps to link object modules of a program into a single object file

37
Q

List

A

a collection of ordered, changeable numbers that allows duplicates

38
Q

Loader

A

an object that is returned by the finder

39
Q

Membership Exclusive

A

returns True if character doesn’t exist in string

40
Q

Membership Inclusive

A

returns True if a character does exist in string

41
Q

Memory Inspector

A

used to calculate the space or memory your particular function is using and manage it

42
Q

Range Slice

A

selects characters in a specified index range

43
Q

Raw String

A

suppresses meaning of escape characters

44
Q

Relational Operator

A

Boolean expression such as ==, < or >

45
Q

Routines

A

code called and executed anywhere in the program

46
Q

Set

A

an unordered collection data type that is alterable, mutable, and has no duplicate elements

47
Q

Slice

A

select a character at a specified index position

48
Q

Split

A

breaks apart the line whenever it sees a delimiter, and returns the list with separated items

49
Q

Standard Functions

A

the functions and types built into the IDE

50
Q

Statement Completion

A

automatically completes statements as you type them

51
Q

Strip

A

removes any unnecessary characters, such as spaces, at the start and end of the line, including \n

52
Q

Subroutine

A

a routine inside a routine

53
Q

Syntax Error Detection

A

detects syntax errors in the code

54
Q

Trace

A

allows you to trace program execution, generate annotated statement coverage listings and list functions executed during a program run

55
Q

Tuple

A

a collection which is ordered and unchangeable

56
Q

Variable Watch

A

makes it easier to keep track of variables in your code

57
Q

Robustness

A

how frequently software encounters errors, the ability of a program to respond to unexpected events and handle them