Control Statements Flashcards

1
Q

Two way selection statemetns nelerdir

A

if then else

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

Nested?

A

if
if
else
else
java -> else en yakın ifin elsidir
python -> else aynı indentteki ifin elsidir.

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

multiple?

A

if elif elif elif elif else ya da
switch-case

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

counter controlled loops

A

for([expr_1];[expr_2];[expr_3]){stmt}
expr_1-> initial status
expr_2 -> end status
expr_3 -> stepsize

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

logically controlled loops

A

pretest -> while
posttest-> do-while

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

döngüden nasıl çıkılır

A

break, exit ile çıkılır
continue ile spesifik durumlar görmezden gelinir

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

unconditional branching nasıl yapılır

A

goto ile.


goto blabla

blabla:
print(“bogosbinted”)

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