CSC 170 Exam 1 Vocabulary Flashcards

0.0(0)
studied byStudied by 0 people
GameKnowt Play
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/17

flashcard set

Earn XP

Description and Tags

Vocabulary flashcards covering IPO, variables, Python basics, operators, conditionals, functions, and grading concepts from the notes.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

18 Terms

1
New cards

IPO

Stands for Input, Process, Output: a model of how data flows through a program (input data, process it, then output results).

2
New cards

Variable attributes

Three main attributes: name (identifier), type (data type), and value (current data stored).

3
New cards

SEP

Separator string inserted between printed values (default is a space). (Can be used in replacement for the default spacing in comma's)

4
New cards

END

String appended at the end of the print output (default is a newline).

5
New cards

Arithmetic Operator precedence

Rules for the order of operations; (),**, lefto right *,%,//,/ then +, -

6
New cards

MOD

%, returns the remainder of division; e.g., 55 % 3 = 1.

7
New cards

Floor division

//, division that discards fractional part; e.g., 55 // 3 = 18.

8
New cards

Exponentiation

**, raises a number to a power; e.g., 2 ** 3 = 8.

9
New cards

Comment out

Line comments start with # and are ignored by the interpreter.

10
New cards

Conditional patterns (3 kinds)

Simple if, if-else, and if-elif-else chains.

11
New cards

Relational operator

Operators that compare values: <, <=, >, >=, ==, != (yield booleans).

12
New cards

Logical operator

and, or, not; combine boolean expressions.

13
New cards

Boolean expressions

Expressions that evaluate to True or False.

14
New cards

Function return vs arguments vs variables (correspondence)

When unpacking a function's return, the number of items returned should match the number of variables receiving them.

15
New cards

Must all functions take arguments?

No. Functions can have zero parameters.

16
New cards

Must all functions return values?

No. Some functions return nothing (None).

17
New cards

Naming parameters vs arguments

Parameter names can be the same as argument values; parameters are names in a function definition, arguments are values passed in a call. (Yes they can be named the same)

18
New cards

Statement about parameters vs arguments (true/false)

True: Parameters appear in a function definition and arguments appear in a function call.