programming Flashcards

1
Q

data type

A

-tells comp how to interpret value

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

boolean

A

True/false

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

integers

A

whole numbers

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

real

A

decimal

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

character

A

letter (A)

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

string

A

1+ numbers/letters

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

iteration

A

-repetition/loops

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

selection

A

-code executed when condition is met

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

subroutine

A

smaller sections of code written inside a larger program

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

nested structures

A

when one program is within anither

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

case conversion

A

upper- print(variable.upper())
lower- print(variable.lower())
title-print(variable.title())

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

length

A

print(len(variable))
if len(variable)><=

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

substring

A

-string[start character : end character]
-print(variable[n:] p- prints everything after n position
-first letter=0,last letter= -1

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

concatenation

A

-string3=string1 + string 2:
string1string2
-string3= string1 + “ “ + string2:
string 1 string2

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

casting

A

-converting me data ty9e to another

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

parametres

A

-gives subroutine specific data to be sued within subroutine

17
Q

lists

A

-can’t mix datatypes
-mylist = [1,2,3,4]
-index stars at 0