Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
89 changes: 89 additions & 0 deletions computer-science/basics/answers/pabloRamirez.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
## Computer Science – Basics

### Questions

1. What is data?

answer1.)
Data is information that an application uses to do things — like show content, make decisions, or store user input.

2. What is an algorithm?

answer2.)
An algorithm is a set of instructions that tells a computer how to do a specific task and get a specific outcome.

3. What is a function?

answer3.)
A function is a block of reusable code that does a specific task.
You can call it whenever you need that task done.

4. What is function scope? What is a block scope? What is global scope?

answer4.)
- Function scope: Variables declared in a function only work inside that function.
- Block scope: Variables in blocks like if statements or for loops, only work inside that block.
- Global scope: Variables declared outside any function or block, they can be used anywhere in the file.

5. What is a variable?

answer5.)
A variable is a renameable container that you can assign values and data to.

6. What is a data type?

answer6.)
A data type is a specific kind of data like a number, string, or character.


7. What is a data structure? What are some examples?

answer7.)
A data structure is a way to store a list of data in an organized container.
ex. arrays, objects, stacks queues


8. What is a web server?

answer8.)
A web server is a computer connected to the internet that listens for requests and responds with data.

9. What is an operator?

answer9.)
An operator is a symbol used to compare or manipulate variables in a programming language.
ex. ++ adds 1 , || OR, === equal value and type

10. What is a character? A string?

answer10.)
A character is a single value like a, b, c, 1, 2, or 3.
A string is a combination of characters, like a word or sentence.

11. What is state? Why is it important?

answer11.)
State is the current condition or setup of an application.
It’s important because your apps often need to do things based on certain factors or user actions, like clicks, inputs, or data changes.

12. What is an interface?

answer12.)
An interface is a way for the user to interact with an app or program. it can be a GUI, or text based like the CLI

13. What is an API?

answer13.)
An API - Application Programming Interface, lets servers and apps talk to each other and exchange data.

### Advanced

14. What are calculations (e.g. “pure functions”)?

answer14.)
idk ngl
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Replace placeholder 'idk ngl' with a formal explanation of pure functions.

Suggested change
idk ngl
A pure function always returns the same output for the same input and does not cause any side effects.


15. What are actions (e.g. “side-effectful functions”)?

answer15.)
idk ngl lol
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Replace 'idk ngl lol' with a detailed, professional explanation of side-effectful functions.

Suggested change
idk ngl lol
Actions (side-effectful functions) are functions that interact with the outside world or change state, such as modifying a variable, updating a database, or printing to the screen.