CPSC 2150 Exam 1 || Questions and 100% Accurate Answers.
As a professional... correct answers - projects will be much more complex - will work on a large team - projects can span years, with incremental releases - will have to build off someone else's code Major projects don't rewrite the system with new versions but... correct answers change parts of the system Bad Coding Habits correct answers - lack of comments - poor design - code first, questions later - no testing - assumptions made - print to screen from anywhere Difference between a programmer and software engineer correct answers software engineer designs software and anticipates change Encapsulation correct answers grouping related data and operations together - done with classes and objects - can keep data in sync Information Hiding correct answers how we control access to encapsulated data and operations through visibility settings - public, private, package private, and protected Why hide information? correct answers - keep data in sync - keep data accurate - not overwhelm programmers with implementation details Through public methods provided by a class... correct answers access to private representation can be controlled Separation of Concerns (Modular design) correct answers every module has its own role and concerns - make module's role specific - can work together to solve a more complicated problem - has high initial overhead - Objects and Classes are modules A good design helps with... correct answers - Reuse - Debugging - Adapting to Change What if any of your numbers change? correct answers avoid "magic" numbers, use a constant instead
Escuela, estudio y materia
- Institución
- CPSC 2150
- Grado
- CPSC 2150
Información del documento
- Subido en
- 25 de marzo de 2024
- Número de páginas
- 8
- Escrito en
- 2023/2024
- Tipo
- Examen
- Contiene
- Preguntas y respuestas
Temas
-
as a professional
Documento también disponible en un lote