UT.WTCS.23PaTTAN CS Praxis Pseudocode

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

1/44

flashcard set

Earn XP

Description and Tags

CS Praxis prep

45 Terms

1
New cards

Pseudocode Explanation: Assignment operator

Pseudocode Notation: <- (full arrow, not ASCII)

2
New cards

Pseudocode Explanation: Arithmetic operators

Pseudocode Notation: + - / * ^ %

3
New cards

Pseudocode Explanation: Relational operators

Pseudocode Notation: == < > โ‰ค โ‰ฅ โ‰ 

4
New cards

Pseudocode Explanation: Logical operators

Pseudocode Notation: and, or, not

5
New cards

Pseudocode Explanation: String concatenation operator

Pseudocode Notation: +

6
New cards

Pseudocode Explanation: Boolean values

Pseudocode Notation: true false

7
New cards

Pseudocode Explanation: Null

Pseudocode Notation: null

8
New cards

Pseudocode Explanation: Comments

Pseudocode Notation: // for single line, /* this is a C-style comment */

9
New cards

Pseudocode Explanation: Pre- and post- increment

Pseudocode Notation: ++i, i++

10
New cards

Pseudocode Explanation: Print (used to describe if a line feed or blank is printed between arguments, where necessary)

Pseudocode Notation: print arg, print ( arg ), print (arg1, arg2, โ€ฆ)

11
New cards

the % (modulus or 'mod') results in

the remainder as an answer

12
New cards

the relational operators result in

true or false Boolean result

13
New cards

using the 'and' operator

evaluates both conditions on either side of it and if they are both true returns true, otherwise false

14
New cards

using the 'not' operator

evaluates both conditions on either side of it and if they are either are true returns true, otherwise false

15
New cards

using the 'or' operator

single line operator that reverses 'true' and 'false' Boolean

16
New cards

using the '+' as operator

joins strings of text

17
New cards

data types

Boolean, char, double, float, int, int [], int [] [], int array, short, string

18
New cards

the three basic data types in all coding languages are

numeric, text-based, Boolean

19
New cards

char means

single character in ASCII, Unicode, or other table

20
New cards

string means

collection of characters usually up to 256 (why excel cuts off at 255)

21
New cards

"" is interpreted as an

empty string

22
New cards

int values range from

-2bn to +2bn

23
New cards

short values range from

-32768 to 32768

24
New cards

floating point values are also known as

decimal values

25
New cards

double, and float variables store this type of number

decimal values (double can be more precise)

26
New cards

an array stores

sets of a single data type

27
New cards

multidimensional arrays are often called

grids (int [] [])

28
New cards

a grid array

stacks like rows in excel/sheets

29
New cards

if statements are only executed if

TRUE

30
New cards

else statements are only executed

the condition above them returns false

31
New cards

the four basic loop structures are

for, while, do, repeat until

32
New cards

predefined blocks of code are known as

procedures, functions, methods

33
New cards

procedures

perform action without printing output

34
New cards

functions

perform action on given parameter

35
New cards

methods

act as both procedures (void) or functions (return)

36
New cards

parameters

the variables input to a function

37
New cards

classes

declare variables and procedures as a group

38
New cards

common class definition terms include (4)

extends, new, public, private

39
New cards

class term: extends

inherits from another class

40
New cards

class term: new

instantiates a new version (think doc1, doc2)

41
New cards

class term: public

allows the class to be used by other classes

42
New cards

class term: private

does not allow class to be used by other classes

43
New cards

a pre test loop is determined by

the block of statements is executed after (below) the condition

44
New cards

a post test loop is determined by

the block of statements is executed before (above) the condition

45
New cards

examples of int data types

int, short, char (int calls on ASCII or Unicode);