Input, Output, and Processing Flashcards

1
Q

What is syntax in programming?

A

Rules that dictate how code must be written in a programming language.

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

What is debugging?

A

Process of finding and fixing errors in program code.

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

What is an algorithm?

A

A step-by-step set of instructions for solving a problem.

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

What’s the main advantage of pseudocode?

A

Allows focusing on program design without worrying about syntax rules.

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

What do oval symbols represent in flowcharts?

A

Start and End points (Terminal symbols).

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

What do parallelogram symbols represent in flowcharts?

A

Input and Output operations.

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

What do rectangle symbols represent in flowcharts?

A

Processing steps.

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

What are the three basic steps of program processing in order?

A
  1. Receive input 2. Process data 3. Produce output
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is an IPO chart used for?

A

Planning program’s Input, Processing, and Output components.

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

What is a sequence structure?

A

Program statements that execute in order, one after another.

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

What is a variable in programming?

A

A named storage location in memory that can hold data.

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

What are three main rules for naming variables?

A
  1. No spaces allowed 2. Can’t start with numbers 3. Use only letters and numbers
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What’s the difference between underscore and camelCase naming?

A

underscore_uses_underscores vs camelCaseUsesCapitalLetters

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

What happens to a variable’s old value when assigned a new one?

A

The old value is replaced completely.

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

What is variable initialization?

A

Assigning an initial value to a variable when it’s declared.

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

Why are uninitialized variables dangerous?

A

They may contain unpredictable “garbage” values.

17
Q

What’s special about named constants?

A

Their values cannot be changed after initialization.

18
Q

What is the correct order of mathematical operations in programming?

A
  1. Parentheses 2. Exponents 3. Multiplication/Division/Modulus 4. Addition/Subtraction
19
Q

What happens in integer division when the result has decimals?

A

The decimal portion is truncated (removed).

20
Q

What’s the difference between external and internal documentation?

A

External is for users (guides/tutorials), internal is for programmers (code comments).

21
Q

What are the two types of code comments?

A

Block comments (multiple lines) and line comments (single line).