Inputs, Outputs and Thinking Ahead Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

Input

A

signals or data received by the system

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Output

A

signals or data sent from the system.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Performance Modelling

A

working out the most optimal design for the best performance.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Caching

A

storing bits of data that can be reused from storage.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Reusable Components

A

using code and parts of code that can be used/called upon again and again in a computer program.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is an input in a computer system?

A

An input is data or signals received by the system from external sources, such as a keyboard, mouse, or sensor.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is an output in a computer system?

A

An output is data or signals sent from the system to external devices, such as a display, printer, or speaker.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What does “thinking ahead” mean in the context of computer science?

A

Thinking ahead involves anticipating the inputs, outputs, and processes needed for a program before implementation, considering potential future requirements or user actions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Why is considering inputs important when designing a program?

A

Understanding inputs ensures the program can correctly process data, handle unexpected values, and validate user input to avoid errors.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Give an example of a common input validation check.

A

Ensuring a user enters a valid email format, checking that a number falls within a specified range, or ensuring a field is not left blank.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is an “input device”?

A

An input device is any hardware component that sends data to the computer, such as a keyboard, mouse, or microphone.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is an “output device”?

A

An output device is any hardware component that receives and displays data from the computer, such as a monitor, printer, or speakers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is meant by “preconditions” in procedural thinking?

A

Preconditions are conditions or requirements that must be met before a procedure or algorithm can be executed properly.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Why are preconditions important in program design?

A

They help ensure that the program runs correctly by validating the initial state before executing a procedure, reducing the chances of errors or unexpected behavior.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

How does “thinking ahead” affect system performance?

A

By anticipating and preparing for future needs (e.g., handling larger inputs or optimizing for faster outputs), you can design more efficient and scalable systems.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is meant by “caching” in computing?

A

Caching involves storing frequently used data or calculations in temporary storage (cache) to reduce access times and improve performance.

17
Q

How does caching relate to thinking ahead in computer systems?

A

Caching anticipates repeated use of certain data and speeds up future processes by reducing the need to repeatedly access the slower main memory or recalculate data.

18
Q

What is a “buffer” in terms of outputs?

A

A buffer is a temporary storage area used to hold data being transferred between two devices or processes that operate at different speeds.

19
Q

Why are buffers important in managing outputs?

A

Buffers ensure smooth data transfer by temporarily holding data until the output device is ready to process it, preventing data loss or delays.

20
Q

What is an example of thinking ahead when designing user input interfaces?

A

Anticipating potential user mistakes (e.g., inputting letters where numbers are expected) and designing input validation to handle these errors appropriately.

21
Q

What is the purpose of input validation in programming?

A

Input validation ensures that the data entered by users meets certain criteria, preventing invalid or malicious data from being processed by the system.

22
Q

What is a postcondition in computing?

A

A postcondition is a condition that must be true after a procedure has been executed, ensuring the program has successfully completed its task.

23
Q

How can thinking ahead help prevent program crashes?

A

By predicting possible issues like invalid input or resource exhaustion, developers can implement error-handling mechanisms to ensure the program can recover gracefully.

24
Q

What is a “use case” in the context of thinking ahead?

A

A use case is a description of how a user interacts with a system to achieve a goal, helping developers anticipate inputs, outputs, and edge cases in program design.

25
Q

How does thinking ahead improve user experience (UX)?

A

By anticipating user needs, developers can design intuitive input methods, reduce delays in output, and create a smoother, more efficient user experience.