Let's break down the questions you provided:
Question 3: Object-Oriented Programming (OOP)
A) Which of the following is a correct description of object-oriented programming (OOP)?
-
Any language that uses functions and variables is an OOP language.
Incorrect. This describes programming in general, not specifically OOP. -
OOP facilitates inheritance allowing all objects to access methods from all other classes.
Partially correct. Inheritance allows a class to inherit methods and properties from another class, but objects don't universally access all other classes' methods. -
OOP facilitates encapsulation allowing all the relevant information and functions to be kept in one package.
Correct. This describes one of the core principles of OOP: encapsulation. -
OOP languages are based on machine code segments converted into high-level language objects.
Incorrect. OOP languages are not defined by this characteristic.
Answer: OOP facilitates encapsulation allowing all the relevant information and functions to be kept in one package.
Question 4: Selecting the Appropriate Language
A) How will “bad” instructions help to select the appropriate language?
-
Instructions are not clear on what to do, instructions in the chosen language are too complex, or instructions do not actually accomplish what they are supposed to.
Correct. Analyzing "bad" instructions helps clarify the requirements and can guide the selection of an appropriate programming language. -
Choosing a high-level language is always the right choice.
Incorrect. It depends on the context; sometimes low-level languages are more appropriate. -
Language features have no effect on our problem.
Incorrect. Language features impact problem-solving. -
This will increase the output of graphics on the screen.
Irrelevant. It doesn’t directly relate to selecting a language based on “bad” instructions.
Answer: Instructions are not clear on what to do, instructions in the chosen language are too complex, or instructions do not actually accomplish what they are supposed to.
Question 5: Purpose of a Software Application
A) What is the overall purpose of a software application?
-
Being user-friendly has no impact on solving a problem.
Incorrect. User-friendliness is often pivotal in ensuring a solution is usable. -
All languages work the same.
Incorrect. Different languages have different features and paradigms. -
Answers depend on problem needing to be solved.
Correct. The purpose of a software application should be aligned with the specific problems it aims to solve. -
Graphics do not matter.
Incorrect. Graphics can significantly affect user experience, depending on the application.