Computer science 1

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/36

encourage image

There's no tags or description

Looks like no tags are added yet.

37 Terms

1
New cards

program?

a series of instructions that a computer can follow

2
New cards

debuging?

going over code and fixing it

3
New cards

subprogram?

a series of instructions a computer can follow that is within a program

4
New cards

what does = mean?

assign

5
New cards

sequence?

running code line from line, top to bottom

6
New cards

iteration?

repeating actions using while or for loop

7
New cards

selection?

making decisions using if/else statements?

8
New cards

what are the 5 data types?

boolean, float, character, integer, string

9
New cards

statement?

a single instruction

10
New cards

expression?

code that calculates and returns a value

11
New cards

what does : do?

a syntax character the opens a new nested block of code

12
New cards

what is the typical amount of memory for each data type

boolean theoretically 1 bit but often 1 byte, integer 4 bytes, float 4 bytes, character 1 byte, string 1 byte per character

13
New cards

pseudocode?

fake, simplified programming language used to map out code before writing it

14
New cards

while loop, what control?

condition controlled

15
New cards

for loop, what type of control?

count controlled

16
New cards

what are the three types of iteration i need to know?

do until, while, for

17
New cards

function?

returns a value

18
New cards

method?

performs a process

19
New cards

casting?

converting a value from one data type into another

20
New cards

what are logical operators that become boolean operators when used in boolean expression?

and, not, or

21
New cards

what are comparative operators that also evaluate to boolean values (true, false) (python)?

, >=, <, <=, ==, !=


22
New cards

what symbol is assign in Pseudocode?

arrow

23
New cards

how do u convert a string to an integer in Pseudocode?

string_to_int

24
New cards

how do u convert an integer to string in Pseudocode?

int_to_string

25
New cards

what is input in Pseudocode?

USERINPUT

26
New cards

What is PRINT in pseudocode?

OUTPUT

27
New cards

abstraction?

Removing unnecessary details or info from a task to focus on the essential characteristics.

28
New cards

algorithm?

a sequence of steps that can be followed to complete a task or solve a problem

29
New cards

Decomposition?

the process of breaking down problems into sub problems

30
New cards

structure diagram advantages?

some modules are reusable saving development time, problems easier to manage when it consists of subtasks

31
New cards

structure diagram?

a visual blueprint that shows what pieces a system is made of and how they connect

32
New cards

what does a step do in Pseudocode?

it allows you to determine by how much the values in for loop go in

33
New cards

what shape is the input/output in flowchart?

parallelogram

34
New cards

what shape is start/end in flowchart?

oval

35
New cards

what shape is a decision in flowchart?

diamond

36
New cards

What shape is a process in a flowchart?

rectangle

37
New cards

What shape is a sub program in a flowchart?

rectangle with one line on each side