2.3 - Programming Foundations Flashcards

Gain a basic understanding of coding concepts to manipulate and explore data efficiently. (12 cards)

1
Q

Why is programming useful for data analysis?

A

Programming allows you to automate tasks, manipulate large datasets, and perform repeatable analyses efficiently.

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

Name two beginner-friendly programming languages often used in data analysis.

A

Python and R

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

What is a variable in programming?

A

A container that stores a value which can be used and manipulated in code.

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

A ______ is a reusable block of code that performs a specific task.

A

Function

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

What is a list (or array) in programming?

A

A collection of items stored in a specific order that can be accessed and manipulated.

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

A ______ loop allows a block of code to repeat until a condition is met.

A

While / For

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

Which of these is an example of a programming task in data analysis?
A) Sorting a dataset
B) Cleaning missing values
C) Calculating averages
D) All of the above

A

D) All of the above

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

What does “syntax” mean in programming?

A

The set of rules that defines how code must be written for it to run correctly.

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

Why is debugging important?

A

To find and fix errors in code, ensuring accurate results and smooth execution.

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

Writing clear and readable code is called ______.

A

Code readability / clean coding

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

Give an example of a data-related task that can be automated with programming.

A

Examples: reading multiple files, cleaning repeated errors, generating reports.

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

Why is understanding programming logic important before using advanced tools like Power BI or Tableau?

A

It helps you understand how data is processed, transformed, and can be prepared for visualization.

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