CS50: Functions, Variables

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

1/8

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 1:51 AM on 7/9/25
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

9 Terms

1
New cards

function

A named block of code that performs a specific task when called (action or verb that lets you do something in the program. )

2
New cards

arguments

The information you give to a function so it can do its job.(input to a function that somehow influences its behavior) “hello”

3
New cards

side effects

Changes a function makes outside of itself, like printing text or changing a variable.

4
New cards

bugs

an error or flaw in a computer program that causes it to behave unexpectedly or malfunction.

5
New cards

return value

What a function sends back to you after it finishes.

6
New cards

variables

Names that store information, like a box that holds a value you can use later.

7
New cards

comments

notes to yourself in your code

8
New cards

str

A type of variable that holds letters, words, or sentences (text).

9
New cards

parameters

The names used in a function to hold the information (arguments) you give it. Think of them as placeholders inside the function.

Explore top flashcards

G6 U2
Updated 479d ago
flashcards Flashcards (31)
Romantyzm
Updated 1173d ago
flashcards Flashcards (45)
Fenne's frans
Updated 1180d ago
flashcards Flashcards (765)
1017
Updated 393d ago
flashcards Flashcards (55)
G6 U2
Updated 479d ago
flashcards Flashcards (31)
Romantyzm
Updated 1173d ago
flashcards Flashcards (45)
Fenne's frans
Updated 1180d ago
flashcards Flashcards (765)
1017
Updated 393d ago
flashcards Flashcards (55)