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

Explore top notes

note Note
studied byStudied by 6 people
899 days ago
5.0(1)
note Note
studied byStudied by 18 people
840 days ago
5.0(1)
note Note
studied byStudied by 631 people
712 days ago
5.0(1)
note Note
studied byStudied by 18 people
764 days ago
5.0(1)
note Note
studied byStudied by 113 people
935 days ago
5.0(1)
note Note
studied byStudied by 5 people
947 days ago
5.0(1)
note Note
studied byStudied by 430 people
573 days ago
4.8(6)
note Note
studied byStudied by 11953 people
709 days ago
4.6(36)

Explore top flashcards

flashcards Flashcard (249)
studied byStudied by 96 people
502 days ago
5.0(1)
flashcards Flashcard (54)
studied byStudied by 33 people
312 days ago
5.0(1)
flashcards Flashcard (46)
studied byStudied by 22 people
853 days ago
5.0(2)
flashcards Flashcard (100)
studied byStudied by 74 people
26 days ago
5.0(1)
flashcards Flashcard (23)
studied byStudied by 41 people
580 days ago
5.0(1)
flashcards Flashcard (50)
studied byStudied by 57 people
362 days ago
5.0(1)
flashcards Flashcard (53)
studied byStudied by 3 people
383 days ago
5.0(1)
flashcards Flashcard (83)
studied byStudied by 215 people
508 days ago
5.0(6)
robot