computing studies Flashcards

(25 cards)

1
Q

comments

A

anything on the line after a # is considered a comment

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

identifiers

A

any sequence of letters, digits and underscores, starting with a letter. both uppercase and lowercase are case are supported

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

(ALU)

A

arithmetic logic unit

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

integer

A

a whole number

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

data type

A

a set of possible values

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

string

A

words or text

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

common arithmetic operators

A

+= addition,-=subtraction,*=multiplication,/=division,**=squared,//=div,%=mod

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

Boolean operators

A

and,or,not

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

how to loop

A

for i in range

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

common comparison operators

A

equals to ==, not equals to !=, less than <,greater than >,less than or equals to <=,greater than or equals to >=,

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

inputs and outputs

A

print and input

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

selection

A

if statements
if/elif/else

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

subprograms

A

functions, procedures, parameters

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

values

A

variables, constants, assignment

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

types of data types

A

string, integer, float, boolean, char, casting

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

data structure

A

list/array,indexes

17
Q

string formats

A

width
precision
type
alignment

18
Q

programming construct

A

iteration
-loops
-for
.count controlled
.fixed number of times
-while
.condition controlled
.indeterminate number of times

19
Q

numbers [] =?

20
Q

array=?

A

a linear data structure

21
Q

float=?

A

fractional numbers

22
Q

boolean=?

A

logical true or false

23
Q

character=?

A

a string with a length of 1

24
Q

subprogram=?

A

a block of code given a unique identifiable name within a program

25
benefits of a subprogram
-easier to code -easier to debug -ease of reuse