Coding Flashcards
(34 cards)
Python interpreter
a program that can read Python programming statements and execute them
IDE
A graphical editor in which you can type code, work with multiple files, run code amongst other things.
.py
Used for executing programs
Output
The program giving something to the user
Pandas
Data analysis module for the Python programming language
Flask
Web frame work
Class
Template/blueprint that describes the behavior/state that the object of its type supports.
Byte
Byte data type is an 8-bit signed two’s complement integer
Short
Data type is a 16-bit signed two’s complement integer
Motion in Scratch is what color?
Blue
Looks is what color in Scratch?
Purple
The first sprite you get in a new scratch is a….
Cat
Can you have a sprite say things in Scratch?
Yes
Variables are what color?
Orange
When the sprite takes 10 steps, is that motion visable?
No
> > > knights = {‘gallahad’: ‘the pure’, ‘robin’: ‘the brave’}
for k, v in knights.items():
… print(k, v)
What method is this method?
The ( ) method
What function is this?
> > > for i, v in enumerate([‘tic’, ‘tac’, ‘toe’]):
The enumerate() function.
To loop over two or more sequences at the same time, you use this function.
The zip( ) function
To loop over a sequence in reverse, you use this function.
The reversed() function.
List comprehensions creates…
A list
What is the definition of coding?
The process of assigning a code to something for classification or identification.
How do you declare a variable in Java?
data type variable [ = value][, variable [ = value] …] ;
How are local variables declared?
Local variables are declared in methods, constructors, or blocks.
Object
Objects have states and behaviors. Example: A dog has states - color, name, breed as well as behavior such as wagging their tail, barking, eating. An object is an instance of a class.