(Unit 1): Computational Thinking and Programming Flashcards

1
Q

What is a symbol?

A

In computing, symbols are characters with specific meanings:

  1. Arithmetic Symbols: +, -, *, / (math operations)
  2. Comparison Symbols: ==, !=, >, < (compare values)
  3. Logical Symbols: &&, ||, ! (logic operations: and, or, not)
  4. Assignment Symbols: = (assign values), += (add and assign)
  5. String Symbols: “ “ (defines text)
  6. Special Symbols: {}, [], () (group code, arrays, functions)

They help structure and control the behavior of code.

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

What is an assignment?

A

Giving a variable a value. Example: x = 5

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

What is a concatenation?

A

Joining two strings together. Example: “foot” + “ball” = “football”

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

What is a construct?

A

The building blocks in programming:

Sequence: Steps in order.
Selection: Choose between options (if/else).
Iteration: Repeat steps (loops).

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

What is a high level language?

A

Programming languages like Python that use words similar to everyday language.

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

What is an identifier?

A

It is a name for a variable or function.

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

What is an input?

A

Data we give to a program, like typing a word.

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

What is language independent?

A

Doesn’t depend on knowing a specific programming language. Example: pseudocode (simple steps, no specific code rules).

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

What is an output?

A

What the computer shows us, like text on the screen.

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

What is a pseudocode?

A

A simple, code-like way to describe how a program works, without focusing on exact rules.

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

What is a string?

A

Text data inside quotation marks. Example: “Hello”

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

What is a syntax?

A

The rules for writing code properly.

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

What is a variable?

A

A storage spot for data (like a box to keep values).

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

What is a variable declaration?

A

Telling the program you need a variable.

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

What are booleans?

A

True/false values or 0 and 1 (binary logic).

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

What are brackets?

A

( ) symbols to group code. Example: 2 * (3 + 4)

17
Q

What is a condition?

A

A test that checks if something is true or false. Example: x > 5

18
Q

What is a conditional statement?

A

Code that runs if a condition is true or false. Example: if/else

19
Q

What is an else if statement?

A

Used when there are multiple conditions. Example: if, elseif, and else