CPTR Test 2

studied byStudied by 0 people
0.0(0)
learn
LearnA personalized and smart learning plan
exam
Practice TestTake a test on your terms and definitions
spaced repetition
Spaced RepetitionScientifically backed study method
heart puzzle
Matching GameHow quick can you match all your cards?
flashcards
FlashcardsStudy terms and definitions
Get a hint
Hint
Variable
Get a hint
Hint
A named storage location in memory that can hold a value.
Get a hint
Hint
Conditional Statement
Get a hint
Hint
A statement that executes different actions based on whether a specified condition evaluates to true or false, often using 'if', 'elif', and 'else'.

1 / 11

encourage image

There's no tags or description

Looks like no one added any tags here yet for you.

12 Terms

1
Variable
A named storage location in memory that can hold a value.
New cards
2
Conditional Statement
A statement that executes different actions based on whether a specified condition evaluates to true or false, often using 'if', 'elif', and 'else'.
New cards
3
Loop
A control structure that repeats a block of code as long as a specified condition is met, such as 'while' and 'for' loops.
New cards
4
Break Statement
A statement used to exit a loop prematurely.
New cards
5
Continue Statement
A statement that skips the current iteration of a loop and continues with the next iteration.
New cards
6
Range Object
An object that represents a sequence of numbers, commonly used in 'for' loops to iterate over a sequence.
New cards
7
Function
A reusable block of code that performs a specific task; defined with the 'def' keyword.
New cards
8
Parameter Passing
The process of providing input to a function when calling it, which allows the function to use these inputs within its body.
New cards
9
Global Variable
A variable defined outside of any function that can be accessed from anywhere in the code.
New cards
10
Local Variable
A variable defined within a function that is only accessible within that function.
New cards
11
Recursion
A programming technique where a function calls itself in order to solve a problem.
New cards
12
Default Argument
A parameter value provided in a function definition that can be used if no argument is supplied during the function call.
New cards
robot