PYTHON Flashcards

(73 cards)

1
Q

Hardware

A

The physical devices that a computer is made of

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

What is a computer?

A

A computer is not one single device , but a system of devices that all work together.

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

CPU

A

CPU is the part of computer that actually runs the program. It ıs the brain of computer system

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

Main memory

A

This is where the computer stores a program while the program is running , as well as the data that the program is working with.

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

RAM

A

It is usually a volatile type of memory that is used for only temporary storage while a program is running.

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

Secondary StorageDevices

A

It is a type of memory that can hold data for long period of time even when there is no power to the computer .Most common secondary storage device is “ disk drive “

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

Algorithm

A

A set of well defined logical steps that must be taken to perform a task is called algorithm (step diyince aklına gelsin

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

Mixed Type Expression

A

It is an expression that uses operands of different data types is called mixed type expression.

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

Operant

A

Left and right digits near of the operator.
2 + 4
2 and 4 are operands.

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

pseudocode

A

Mockup code fake code(It ıs an informal language that ha no syntax rule)

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

Algorithm

A

A set of well defined logical steps that must be taken to perform a task .

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

Input

A

It ıs a data that the program receives

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

Output

A

The results of operation is sent out of the program

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

Comments

A

Commments are notes of explanation that document items or section of a program.

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

Variable

A

A variable is name that represents a value in the computer’s memory.

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

Multiple Assignment Statement

A

Several variables which can be used in a one single statement(t , y , a= 1 , 2 , 3)

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

Index

A

It specifies the elements locatıon
[1],[0] vs

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

F_string

A

Formatted string

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

Alignment Designator

A

< > ^

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

Precision designator

A

.1f
.2f

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

Magic number

A

A magic number is an unexplained value that appears in a program’s code
Amount = balance * 0.069
0.069 is a magic number

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

Logical Operator

A

They are set of operator that you can connect multiple Boolean Expression in order to create compound expression.
“And”
“Or”
“Not” these are logical operators

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

Boolean Expressions

A

The expressions that are tested whether it is true or false By the if statement are called Boolean expression

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

Relational Operator

A

It is an operator type that determines and compare whether a specific relationship exists between two values.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Sentinel
Sentinel is a special value that marks the end of a sequence of items
26
Target value
For loopta kullanılan variable’ın adına denir.
27
Step value
For loopta range functionunun içinde bulunan, kaçar kaçar gittiğini temsil eden kısımdır. for count in range (f,y,m) deki m range functiondur.Sayıların kaçar kaçar gideceğini temsil eder.
28
Augmented Assignment Value
Kısaca x=x+2 tarzı ifadelerinin kısa ve daha anlaşılır bir şekilde yazılması x+=2 bir augmented assignment value,+= augmented operatördür.
29
Error trap , error handler
These terms are the alternative names of input validation
30
Divide and conquer
A large task is divided into several smaller tasks that are easily performed.
31
Modularized Program
A program that has been written with each task performed by a seperate function
32
Local variable
Sadece içlerinde bulunmuş oldukları fonksiyonda tanımlı olan özel variable türlerine denir.
33
Scope
The part of a program in which a variable may be accessed
34
Parameter
The variables that receive pieces of data in a function are called parameters Def main(number) value= 5 show_double(value) Def back_up(number): result = number * 2 print(result) main() Burada parantez içindeki value ve result birer parametredir.
35
Dictionary
A dictionary is an object that stores a collection of data.(lists can also collect datas)
36
Arguments
The pieces of data that are passed into a function are called arguments
37
Program
A program is a set of instruction that a computer follows a task
38
Mnemonic
Assembly languagede kullanılan kısa kelimeler
39
Debug
Hataları ayıklamak ve düzenlemek
40
Conditional expression
If else statementinin kısa halde yazılmış,tek satırlık versiyonu If a>b: result=0 else: result=1 result= 0 if a>b else 1 bu bir conditional expressiondur.
41
Argument
An argument is a piece of data that is sent into function
42
Condition controlled loop
it causes a statement or set of statement to repeat as long as condition is true It is also known as "While"
43
Count Controlled loop
It iterates specific number of times. In python ıt is also known as "for"
44
Sequence
It is an obect that holds multiple items of data
45
Top-down design.
A design system in which algorithm is broken into functions
46
Divide and conquer method
A method is that a large program is divided into several small pieces that are easily performed
47
Hiararchy Graph
It ıs a visualization graph that in order to see function’s name and connection betweeen one another. There is no process details unlike flowchart.
48
Modularized Program
A program that has been written with each task performed by a seperate function
49
Scope
It is a special area that function can acccess
50
Keyword Argument
An argument that is written in accordance with this syntax is known as keyword argument
51
Keyword Only Parameter
Def show_sum(a,b,*,c,d) This asterisk is called keyword only parameter. C and d is accepted by python as keyword arguments.Others are positional arguments
52
Positional Only Parameter
Def show_sum(a,b,c,d,/) / is accepted as positional only parameter A b c an d are positional arguments
53
Writing A file
The process of saving data in a file (Verilen bir dosyaya verilerin kaydedilmesi işlemine denir)
54
Reading A file
the process of retrieving data from a file k(bir dosyadan veri alma işlemine denir)
55
newline character (\n)
It seperates the items that are stored in the file.
56
strip rstrip(it removes the right \n ) lstrip(it removes the left \n) file_variable.rstrip("\n")(KULLANIMI)
It removes the items coupling with "\n"
57
Sets
A set contains a collection of unique values and works like mathematical set ÇOK ÖNEMLİ: "UNIQUE VALUES" kısmı bizim yol göstericimiz olacak
58
object
An object is a software entity that contains both data and procedures
59
data attributes
the data contained in an object is known as the data attributes.
60
method
the procedures that an object performs are known as methods.An object's methods are functions that perform operations on the object's data attributes.
61
__init__
To initialize an object's data attributes in a program.
62
(self)parameter
metodun hangi nesne üzerinde çalışsacağını belirtiyor. Data attribute ve diğer metodlara erişim sağlıyor.
63
UML(UNified Modeling Language)
class kodu yazmadan önce oluşturulan tasarımsal ön grafiktir.UML'lere self parametresi yazılmaz
64
FINDING THE CLASSES IN A PROBLEM
bir potensiyal class ismi bulmak için programcılar üç teknikten faydalanırlar 1-)Problem domainin bir tanımını yapmak 2-) bu problemdeki tanımda geçen tüm isim,isim tamlamaları ve zamirleri yazmak 3-) bunlları değerlendirip tutmak,ya da elemek eğer aynı şeye karşılık gelen ifadeler varsa elenirt eğer programda ihtiyaç duymadığımız bir data ismi varsa elenir bazen bi potansiyel isimler classı değil object'i yorumlar bu yüzden elenir(mesela car bir class BMW,PORCHE,MERCEDES object eğer bazı isimlerin cevaplari çok basit stringler ya da integerler içeriyorsa o zaman class olma ihtimalleri yoktur elenirler bazen yazılımcılar bir ismin hem çoğulunu hem de tekilini potansiyel isim olarak değerlendirirler.Bazen Çoğul olan isim class,tekil olan ism objecttir
65
Problem Domain
It is a written description of the real world objects parties and major events related to the problem
66
Accessor (getter)
the thing does not change the data atttributes is known accessor. Mostly get.__ structures are accessors
66
Mutator(setter)
the thing which changes the data attribute due to some reasons are called mutator.Mostly set.__ structures are the potential mutators
67
Writing A file
The process of saving data in a file as "writing data".Verinin programdaki bir değşkenden alınıp dosyaya kopyalanmasıdır.Writing file bir output çıktısıdır.
68
record
A record is a complete set of data about an item
69
field
a field is an individual piece of data within a record
70
void function
a function that simply executes the statements that it contains and does not return the value back to the part of the program that called it .
71
value-returning function
a function that returns a value back to the part of the program that called it .(example: input(),int(),float())
72