Parts of a program Flashcards

(9 cards)

1
Q

What is the Problem Solving Process

A
  1. UNDERSTAND the problem
  2. Define the EXPECTED OUTCOME
  3. Clearly define all the DATA
  4. Top-down SEQUENCE the required tasks
  5. Write PSEUDOCODE or draw a detailed flowchart
  6. TEST the logic
  7. WRITE the code
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Write and WriteLine methods do what?

A

Display text output

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

What does \t do?

A

Tabs a line

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

What does \n do?

A

Creates a new line

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

What does \r do?

A

Causes the cursor to go to the beginning of the current line(not the next line)

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

What does \ do?

A

Causes the backslash to be be printed

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

What does ' do?

A

Causes a single quotation to be printed.

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

What does " do?

A

Causes a double quotation to be printed.

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

What is a variable?

A

Named locations in the computer’s memory (They hold one value at a time)

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