Computing Studies Flashcards

(25 cards)

1
Q

Comments

A

anything on the line after a # is considered as comment

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

identifiers

A

Any sequence of letter, 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

Integer

A

A whole number

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

(ALU)

A

Arithmetic logic unit

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 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 <=, more than or equals to >=

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

Inputs and output

A

Print and input

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

Selection

A

if statement
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

Variable, 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

number [] = ?

20
Q

Float=?

A

Fractional number

21
Q

Boolean=?

A

Logical true or false

22
Q

Character=?

A

a string with a length of 1

23
Q

Array=?

A

A linear data structure

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