Home
Explore
Exams
Search for anything
Login
Get started
Home
CPTR Test 2
CPTR Test 2
0.0
(0)
Rate it
Studied by 0 people
0.0
(0)
Rate it
View linked note
Call with Kai
Knowt Play
New
Learn
Practice Test
Spaced Repetition
Match
Flashcards
Card Sorting
1/11
There's no tags or description
Looks like no tags are added yet.
Study Analytics
All Modes
Learn
Practice Test
Matching
Spaced Repetition
Name
Mastery
Learn
Test
Matching
Spaced
No study sessions yet.
12 Terms
View all (12)
Star these 12
1
New cards
Variable
A named storage location in memory that can hold a value.
2
New cards
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'.
3
New cards
Loop
A control structure that repeats a block of code as long as a specified condition is met, such as 'while' and 'for' loops.
4
New cards
Break Statement
A statement used to exit a loop prematurely.
5
New cards
Continue Statement
A statement that skips the current iteration of a loop and continues with the next iteration.
6
New cards
Range Object
An object that represents a sequence of numbers, commonly used in 'for' loops to iterate over a sequence.
7
New cards
Function
A reusable block of code that performs a specific task; defined with the 'def' keyword.
8
New cards
Parameter Passing
The process of providing input to a function when calling it, which allows the function to use these inputs within its body.
9
New cards
Global Variable
A variable defined outside of any function that can be accessed from anywhere in the code.
10
New cards
Local Variable
A variable defined within a function that is only accessible within that function.
11
New cards
Recursion
A programming technique where a function calls itself in order to solve a problem.
12
New cards
Default Argument
A parameter value provided in a function definition that can be used if no argument is supplied during the function call.