DS101 MIDTERM REVIEWER

0.0(0)
studied byStudied by 11 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/44

flashcard set

Earn XP

Description and Tags

Module 5-8

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

45 Terms

1
New cards

Conditional Statements

are the foundation of logical reasoning and computer programming.

2
New cards

Converse

formed by reversing the hypothesis and conclusion.

3
New cards

If q, then p.

Converse Statement Form

4
New cards

Inverse

formed by negating both the hypothesis and conclusion.

5
New cards

If not p, then not q.

Inverse Statement Form

6
New cards

Contrapositive

formed by reversing and negating both the hypothesis and conclusion.

7
New cards

If not q, then not p.

Contrapositive Statement Form

8
New cards

Generalization

It allows us to make a broader statement from something that is already true. If one statement is true, then we can also say that “it or something else” is true.

9
New cards

p ∴ p v q

q ∴ p v q

Generalization Symbol Form

10
New cards

Specialization

It allows us to take a specific part of a statement that contains two or more facts.

11
New cards

p ^ q ∴ p

p ^ q ∴ q

Specialization Symbol Form

12
New cards

Elimination

It says that if you have two possible statements and one is false, then the other must be true.

13
New cards

p v q, ~q ∴ p

p v q, ~p ∴ q

Elimination Symbol Form

14
New cards

Transitivity

It states that if one statement leads to a second, and the second leads to a third, then the first also leads directly to the third.

15
New cards

p ⟶ q

q ⟶ r

∴ p ⟶ r

Transitivity Symbol Form

16
New cards

Proof by Division into Cases

It says that if there are two possible situations, and both lead to the same conclusion, then that conclusion must be true.

17
New cards

p v q,

p ⟶ r,

q ⟶ r

∴ r

Proof by Division into Cases Symbol Form

18
New cards

Fallacy

a mistake in reasoning. It looks logical, but it’s actually wrong.

19
New cards
  • Avoid wrong conclusions

  • Strengthen our reasoning

  • Spot false arguments in debates or media

Why do we need to study fallacies?

20
New cards

Formal Fallacy

error in the structure of logic.

21
New cards

Informal Fallacy

error in the content or meaning of words.

22
New cards

Ad Hominem

False Cause

Hasty Generalization

Appeal to Authority

Bandwagon

Examples of Informal Fallacy

23
New cards

Ad Hominem

Attacking the person, not the idea.

Example: Don’t listen to Maria’s opinion on climate change; she failed her science class.

24
New cards

False Cause

Assuming one thing caused another.

Example: I wore my lucky shirt during the exam and got a high score, so the shirt brought me good luck.

25
New cards

Hasty Generalization

Quick judgment from few examples.

Example: Two students from that school were rude, so everyone there must be rude.

26
New cards

Appeal to Authority

It’s true because an expert said so.

Example: This energy drink must be healthy because a famous doctor on TV recommends it.

27
New cards

Bandwagon

Everyone’s doing it, so it’s right.

Example: All my friends are skipping class, so it must be okay to skip too.

28
New cards

Fallacy of Language

happens when words or grammar cause confusion or false meaning.

29
New cards

Language shapes how we think and reason.

Why Language Matters in Logic

30
New cards

Ambiguity

Amphiboly

Equivocation

Composition

Division

Accent

Types of Fallacy of Language

31
New cards

Ambiguity

a word has multiple meanings.

Ex.

“I saw her duck.”⟶ (It’s unclear whether ‘duck’ means the animal or the action of lowering her head.)

32
New cards

Amphiboly

unclear grammar or structure.

Ex. “The teacher told the student that he was lazy. ” ⟶ (It’s unclear who ‘he’ refers to — the teacher or the student.)

33
New cards

Equivocation

one word used in two meanings.

Ex. “A feather is light. What is light cannot be dark. Therefore, a feather cannot be dark. ” ⟶ (The word “light” changes meaning from ‘not heavy’ to ‘not dark’ )

34
New cards

Composition

thinking what’s true for parts is true for the whole.

Ex. “Each player is good, so the team must be good. ” ⟶ (What’s true of the parts may not be true of the whole.)

35
New cards

Division

opposite of composition.

Ex. “Our school is famous, so every student here must be famous too. ” ⟶ (What’s true of the whole doesn’t apply to every part.)

36
New cards

Accent

changing meaning by stress or emphasis.

Ex. “I didn’t steal his money. ” ⟶ (Depending on which word is emphasized, the meaning changes, maybe someone else did, or it wasn’t money.)

37
New cards

Principle of Counting

If one event can happen in m ways and another in n ways, then both can happen in m × n ways.

38
New cards
  1. Multiplication Rule (AND)

  2. Addition Rule (OR)

2 Basic Rules of Counting

39
New cards

Multiplication Rule (AND)

When events happen together, multiply.

Example: 3 shirts × 2 pants = 6 outfits

40
New cards

Addition Rule (OR)

When one of several can happen, add.

Example: 5 math OR 4 computer subjects → 5 + 4 = 9 choices

41
New cards

Factorial

counts arrangements of items.

42
New cards

Pascal’s Triangle

  • A triangle of numbers that shows patterns in counting.

  • Each number = sum of two numbers above it.

  • Used to find combinations and binomial coefficients.

43
New cards

nCr = n! / [r!(n − r)!]

Pascal’s Triangle Formula

44
New cards

⟶ Password creation

⟶ Arranging data

⟶ Computing probabilities

Real-Life Applications: Counting Principles

45
New cards

⟶ Probability & statistics

⟶ Pattern recognition

⟶ Network path counting

Real-Life Applications: Pascal’s Triangle