Science - 4.1 Programming
2024
What is encapsulation? - ✔✔✔ANSWER-Hiding internal implementation details
of objects.
What is error handling? - ✔✔✔ANSWER-Dealing with exceptions to prevent
program crashes.
What is indefinite iteration? - ✔✔✔ANSWER-Repeating instructions until a
condition is met.
What is inheritance? - ✔✔✔ANSWER-Objects can inherit properties and methods
from other objects.
What is instantiation? - ✔✔✔ANSWER-The process of creating an object from a
class.
What is iteration? - ✔✔✔ANSWER-Repetition of instructions in a program.
, How are dates stored? - ✔✔✔ANSWER-As numbers, usually integers or doubles
representing the amount of days since a datum.
How are functions declared? - ✔✔✔ANSWER-Using the `Function` keyword and
have a return type.
How are procedures executed in procedural-oriented programming? -
✔✔✔ANSWER-In a predetermined order, moving from one procedure to the next.
How is an integer stored? - ✔✔✔ANSWER-In 32 bits.
What are arrays? - ✔✔✔ANSWER-Collections of objects of the same type
arranged by index.
What are character sets? - ✔✔✔ANSWER-They decide the storage method for
characters, such as ASCII (7 bits) or Unicode (16 bits).
What are functions? - ✔✔✔ANSWER-Similar to subroutines, but they return a
value.
What are global variables? - ✔✔✔ANSWER-Variables that are available to the
entire program and can store data that needs to be shared between different parts of
the program.
What are local variables? - ✔✔✔ANSWER-Variables declared within a subroutine
or function and are only accessible within that subroutine or function.