Quiz 1 - Computational Thinking

¡Supera tus tareas y exámenes ahora con Quizwiz!

What phrase identifies an example of a single object template, or class, from a classification pattern? a. social media subscriber b. restaurant name, hours of operation, and menu X c. a user ID, a password, and a mobile number X d. car color, make, model, and VIN number

?

Which idea represents an example of a repetitive pattern? a. looking for patterns in a template used to specify the attributes for an abstract object b. allowing three password entry attempts before locking a user out of an online account ? c. defining a class called "Restaurant" with attributes of restaurant name, hours of operation, and menu X d. using a variable to represent many different numbers

?

Which statement describes why abstraction is an important computer science concept? A. It provides a means to hide implementation details from the user to simplify subsequent development and promotes software reuse. b. It allows a complex application to be divided into smaller modules. c. It ensures a computer program will continue to work efficiently as the size of the data set grows. d. It ensures the correct application classes are assigned to the correct attribute.

A. It provides a means to hide implementation details from the user to simplify subsequent development and promotes software reuse.

A login credentials template used in a social media application is an example of an abstraction that contains a set of attributes. a. True b. False

a. True

A programmer uses decomposition when devising an algorithm for a complex problem or task. a. True b. False

a. True

Which term refers specifically to the process of finding similarities in procedures and tasks? a. pattern identification b. decomposition c. computational thinking d. abstraction

a. pattern identification

Abstracting out too much detail can make a program too specific to work with a wide variety of data. a. True b. False

b. False

One way a programmer can devise an efficient algorithm for accomplishing a simple, everyday technology application is to use a standard algorithm. a. True b. False

b. False

Recognizing that each user of a social media site has a login credential set is an example of pattern identification. a. True b. False

b. False

What term refers specifically to the process of dividing a complex problem into smaller parts? a. abstraction b. decomposition c. computational thinking d. pattern identification

b. decomposition

Which phrase describes an example of structural decomposition? a. using algorithmic pattern recognition to identify possible variables b. diagramming a mobile banking app as a hierarchy of building-block units c. breaking down a two-factor authentication module into smaller actions, processes, or steps d. looking for two-factor authentication logical and physical objects that a computer program will manipulate

b. diagramming a mobile banking app as a hierarchy of building-block units

Which statement describes how the black box concept is an implementation of abstraction? a. A black box produces an output by using unique templates that utilize abstract variables. b. A black box produces an output by creating a classification pattern. c. A black box produces an output while hiding the inner workings of a process. d. A black box produces an output by implementing pattern identification.

c. A black box produces an output while hiding the inner workings of a process.

Which phase describes an example of functional decomposition? a. using algorithmic pattern recognition to identify possible variables b. diagramming a mobile banking app as a hierarchy of building-block units c. breaking down a two-factor authentication module into smaller actions, processes, or steps d. looking for two-factor authentication logical and physical objects that a computer program will manipulate

c. breaking down a two-factor authentication module into smaller actions, processes, or steps

To select an efficient algorithm for a use case, a programmer uses a set of techniques designed to formulate problems and their solutions known as _____. a. algorithm termination closure b. standard algorithm processing c. computational thinking d. hierarchical modeling

c. computational thinking

Which example illustrates how abstraction can help identify variables? a. Abstraction can be used in functional design to identify the classes related to variables. b. Abstraction can be used in functional design to identify the attributes related to variables. c. Abstraction can be used in object-oriented design to identify the objects related to variables. d. Abstraction can be used in pattern recognition to identify possible variables.

d. Abstraction can be used in pattern recognition to identify possible variables.

What statement describes how dependencies and cohesion relate to decomposition? a. An effective breakdown maximizes dependencies among the various parts. b. An effective breakdown minimizes cohesion among the various parts. c. An effective breakdown maximizes dependencies and minimizes cohesion among the various parts. d. An effective breakdown minimizes dependencies and maximizes cohesion among the various parts.

d. An effective breakdown minimizes dependencies and maximizes cohesion among the various parts.

Why is decomposition an important tool for computer scientists? a. It creates algorithm designs with a flat layout, leading to programs that are more efficient. b. It creates algorithm designs with a high level of abstraction, leading to programs that are more efficient. c. It creates algorithm designs with a low level of abstraction, leading to programs that are more efficient. d. It creates algorithm designs with more manageable pieces, leading to programs that are more efficient and maintainable.

d. It creates algorithm designs with more manageable pieces, leading to programs that are more efficient and maintainable.

Suppose a programmer is functionally decomposing a two-factor authentication process. Which step requires further decomposition before it can become a step in an algorithm? a. Prompt for user ID. b. Prompt for password. c. Generate a one-time PIN. d. Validate that user ID and password match.

d. Validate that user ID and password match.


Conjuntos de estudio relacionados

Genetics Exam 3 Notes, Quizzes and Homework Review

View Set

Приветствие/Прощание - Greeting and farewell phrases

View Set

US History Industrial Revolution Test

View Set