Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Discrete Structures' Long Test

Total questions: 70

Worksheet time: 35mins

Name
Class
Date
1.

Which expression is logically equivalent to ¬((p → q) ∧ (q → ¬r))?

a)

p ∧ (¬q ∨ r)

b)

p ∧ (q ∧ r)

c)

¬p ∨ (q ∧ ¬r)

d)

¬p ∨ (¬q ∨ r)

2.

Which inference rule best justifies the derivation of r from: p → (q ∧ r), q → r

a)

Hypothetical Syllogism then Simplification

b)

Conjunction Introduction then Modus Ponens

c)

Modus Ponens then Conjunction Elimination

d)

Resolution then Simplification

3.

What is the negation of the statement: ¬(∀x ∃y (P(x,y) → Q(y)))

a)

∃x ∀y (P(x,y) ∧ ¬Q(y))

b)

∀x ∀y (P(x,y) ∧ ¬Q(y))

c)

∃x ∃y (P(x,y) ∧ ¬Q(y))

d)

∃x ∀y (P(x,y) → ¬Q(y))

4.

A proof technique where one assumes the opposite of a conclusion within a conditional proof structure and derives inconsistency is called:

a)

Direct proof

b)

Proof by contradiction

c)

Mathematical induction

d)

Proof by construction

5.

5. A sequence of statements where each follows from previous steps using formally accepted rules.

a)

Proof

b)

Hypothesis

c)

Assumption

d)

Experiment

6.

If A = {x ∈ Z | x < 4}, B = {x ∈ Z | x ≡ 1 (mod 3)}, then A ∩ B is:

a)

{…, -5, -2, 1}

b)

{…, -8, -5, -2}

c)

{-2, 1, 4}

d)

{1, 4, 7}

7.

A function f: A → B is injective if and only if:

a)

Distinct elements in A always map to distinct elements in B

b)

Every element in B corresponds to exactly one element in A

c)

No element in A maps to more than one element in B

d)

Every element in B is an image of some element in A

8.

What is the 10th term of the sequence defined by aₙ = 4n − (−1)ⁿ?

a)

39

b)

41

c)

43

d)

45

9.

A set whose cardinality exceeds that of any countably infinite set is called:

a)

Finite set

b)

Countable set

c)

Uncountable set

d)

Empty set

10.

A function whose values repeat after a constant integer interval is called:

a)

Periodic function

b)

Linear function

c)

Constant function

d)

Exponential function

11.

What is the 2’s complement of (01101001)_2?

a)

10010111

b)

10010110

c)

01101010

d)

01101000

12.

Convert (7A3)_16 to decimal.

a)

1955

b)

1953

c)

1987

d)

1971

13.

The binary value corresponding to (3F)_16 is:

a)

0011 1100

b)

0011 1111

c)

0010 1111

d)

0010 1100

14.

Which Boolean expression simplifies to A + B'C?

a)

(A + B')(A + C)

b)

(A + C')(A + BC)

c)

A(BC)' + BC

d)

(A + B)(A + C')

15.

The base-16 number system using symbols 0–9 and A–F is called ________.

a)

Hexadecimal

b)

Octal

c)

Binary

d)

Decimal

16.

Method of subtraction performed via adding a complement is called ________.

a)

Complement subtraction

b)

Direct subtraction

c)

Binary addition

d)

Decimal subtraction

17.

Which law justifies: AB + A'B + AC = B + AC?

a)

Dual Absorption

b)

Consensus Theorem

c)

Distributive Law

d)

Idempotent Law

18.

Which gate outputs TRUE only when inputs differ?

a)

XNOR

b)

XOR

c)

NAND

d)

NOR

19.

Binary operation corresponding to logical OR.

a)

OR

b)

AND

c)

XOR

d)

NAND

20.

Boolean law stating (AB)' = A' + B'

a)

De Morgan’s Law

b)

Associative Law

c)

Distributive Law

d)

Absorption Law

21.

In a 4-variable K-map, a group of 8 cells eliminates how many variables from the simplified term?

a)

1 variable

b)

2 variables

c)

3 variables

d)

All variables involved

22.

In a K-map, two cells are considered adjacent only if:

a)

They differ in exactly one variable and share boundary wrapping

b)

They differ in two variables but remain in the same Gray code row

c)

They lie on diagonally opposite corners of a block

d)

They share at least one identical minterm index

23.

A don’t-care condition contributes to simplification when:

a)

It forms a group only if placed on an edge of the map

b)

It completes a larger group that would otherwise be impossible

c)

It replaces a minterm containing a contradiction

d)

It forces removal of redundant prime implicants

24.

Which of the following is always TRUE about prime implicants?

a)

They must contain at least four grouped minterms

b)

They cannot be further expanded without including a 0-cell

c)

They appear only in minimal SOP form

d)

They are always essential to the final simplified expression

25.

The final simplified expression in a K-map is obtained after selecting:

a)

All possible prime implicants

b)

Only implicants containing don’t-cares

c)

All essential prime implicants plus minimum additional ones

d)

Every group that appears more than once

26.

The process of combining minterms into maximal power-of-two blocks to eliminate variables.

a)

K-map grouping / looping

b)

Boolean addition

c)

DeMorgan's Theorem

d)

Truth table expansion

27.

A group of four adjacent minterms forming a simplification block.

a)

Quad

b)

Pair

c)

Octet

d)

Single

28.

A minterm covered by exactly one prime implicant.

a)

Singleton

b)

Essential Prime Implicant

c)

Redundant Minterm

d)

Multiple Coverage

29.

A condition where unspecified outputs may be treated as 0 or 1.

a)

Don’t-care condition

b)

Race condition

c)

Hazard condition

d)

Stable condition

30.

The minimal SOP expression obtained after selecting essential prime implicants.

a)

Minimal Boolean expression

b)

Canonical SOP expression

c)

Maximal Boolean expression

d)

Non-essential SOP expression

31.

Number of distinct permutations of the word “STATISTICS”. (Letters: S×3, T×3, I×2, A×1, C×1 → 10!/(3!3!2!))

a)

25,200

b)

50,400

c)

168,000

d)

504,000

32.

A 5-digit code uses digits 0–9 but cannot begin with 0 and cannot repeat digits. How many codes?

a)

10 × 9 × 8 × 7 × 6

b)

9 × 9 × 8 × 7 × 6

c)

9 × 9 × 8 × 7 × 5

d)

9 × 8 × 7 × 6 × 5

33.

How many functions f: A → B exist if |A| = 5 and |B| = 3?

a)

3⁵

b)

5³

c)

5!

d)

3! × 5!

34.

A committee of 5 is formed from 12 people, but two specific people refuse to serve together. Number of possible committees:

a)

C(12,5) – C(10,3)

b)

C(12,5) – C(11,4)

c)

C(10,5) – C(11,3)

d)

C(12,5) – 2·C(10,3)

35.

How many arrangements of 7 people are possible if three specific people must sit consecutively as a block?

a)

6! × 3!

b)

5! × 3!

c)

7! / 3!

d)

7! – 3!

36.

A method of counting where order matters and repetition is permitted.

a)

Permutation with repetition

b)

Combination without repetition

c)

Permutation without repetition

d)

Combination with repetition

37.

A method of selecting r objects from n when order does not matter.

a)

Combination

b)

Permutation

c)

Arrangement

d)

Selection with replacement

38.

The rule where total outcomes of mutually exclusive events are added.

a)

Addition rule

b)

Multiplication rule

c)

Subtraction rule

d)

Division rule

39.

The rule used when multiple independent actions are multiplied.

a)

Multiplication rule

b)

Addition rule

c)

Subtraction rule

d)

Division rule

40.

Principle stating that if n+1 objects are placed into n boxes, one box has at least two.

a)

Pigeonhole principle

b)

Inclusion-Exclusion principle

c)

Binomial theorem

d)

Law of Large Numbers

41.

If P(A)=0.4, P(B)=0.6, P(A∪B)=0.82, find P(A|B).

a)

0.20

b)

0.37

c)

0.30

d)

0.47

42.

A card is drawn. Probability it is red or a face card?

a)

7/13

b)

9/26

c)

11/26

d)

10/13

43.

Two dice are rolled. Probability the sum is composite?

a)

19/36

b)

23/36

c)

25/36

d)

29/36

44.

If events A and B are independent, which is TRUE?

a)

P(A|B)=P(B|A)

b)

P(A∩B)=P(A)P(B)

c)

P(A∪B)=P(A)+P(B)

d)

P(A∩B)=P(A)+P(B)−1

45.

If P(A') = 0.58, what is P(A)?

a)

0.42

b)

0.58

c)

0.72

d)

0.27

46.

Identification: The complete set of all possible outcomes.

a)

Sample space

b)

Event

c)

Probability

d)

Random variable

47.

Identification: Events that cannot occur together. (Write the term that matches the definition.)

a)

Mutually exclusive

b)

Independent events

c)

Complementary events

d)

Exhaustive events

48.

Identification: Events that do not influence each other's likelihood. (Write the term that matches the definition.)

a)

Independent events

b)

Mutually exclusive events

c)

Dependent events

d)

Complementary events

49.

Identification: Probability obtained from repeated trials.

a)

Empirical probability

b)

Theoretical probability

c)

Subjective probability

d)

Classical probability

50.

Identification: Probability of 'not A'. (Write the term that matches the definition.)

a)

Complement

b)

Intersection

c)

Union

d)

Sample Space

51.

A relation that is reflexive and symmetric but may fail transitivity is known as:

a)

Preorder

b)

Tolerance relation

c)

Equivalence relation

d)

Partial order

52.

Relation R on A is antisymmetric if:

a)

aRb always implies a=b

b)

aRb and bRa imply a=b

53.

In the matrix of a symmetric relation on a set of size n:

a)

Main diagonal must be all 1s

b)

Matrix must equal its transpose

c)

Only upper triangular part can contain 1s

d)

Diagonal entries alternate depending on parity

54.

A partial order must satisfy:

a)

Reflexive, symmetric, transitive

b)

Reflexive, antisymmetric, transitive

c)

Irreflexive, symmetric, transitive

d)

Symmetric, antisymmetric, transitive

55.

For a set A with 6 elements, number of ordered pairs in A×A is:

a)

18

b)

30

c)

36

d)

42

56.

Identification: A relation where aRb and bRa imply a=b.

a)

Antisymmetric

b)

Symmetric

c)

Transitive

d)

Reflexive

57.

Identification: A relation that partitions a set into equivalence classes.

a)

Equivalence relation

b)

Transitive relation

c)

Symmetric relation

d)

Reflexive relation

58.

Identification: A table of 0s and 1s representing a relation.

a)

Matrix representation

b)

Graph representation

c)

Set notation

d)

List representation

59.

Identification: A relation containing only (a,a) for all a in A.

a)

Identity relation

b)

Symmetric relation

c)

Transitive relation

d)

Reflexive relation

60.

Identification: The Cartesian product of A with itself.

a)

A × A

b)

A + A

c)

A ∪ A

d)

A ∩ A

61.

What is the probability of drawing a heart from a standard deck of cards?

a)

1/52

b)

1/13

c)

1/4

d)

1/2

62.

Which of the following is a property of a normal distribution?

a)

Mean, median, and mode are equal

b)

Skewed to the right

c)

Only positive values

d)

Uniform distribution

63.

In a binary tree, how many edges are there if there are n nodes?

a)

n-1

b)

n

c)

2n

d)

n+1

64.

The principle that states the probability of the union of two events is the sum of their probabilities minus the probability of their intersection.

a)

Addition rule

b)

Multiplication rule

c)

Inclusion-Exclusion principle

d)

Conditional probability

65.

In a 3-variable K-map, how many cells are needed to cover all possible minterms?

a)

32

b)

4

c)

8

d)

16

66.

Which of the following represents the probability of event A occurring given that event B has occurred?

a)

P(A|B)

b)

P(B)

c)

P(B|A)

d)

P(A)

67.

Which of the following is a valid expression for the negation of (p ∧ q)?

a)

p ∨ q

b)

¬p ∨ ¬q

c)

p ∧ ¬q

d)

¬(p ∨ q)

68.

Identification: The probability of the occurrence of at least one of two events. (Write the term that matches the definition.)

a)

Union

b)

Intersection

c)

Complement

d)

Conditional probability

69.

If P(A)=0.5, P(B)=0.4, and P(A ∩ B)=0.2, find P(A|B).

a)

0.40

b)

0.80

c)

0.50

d)

0.20

70.

Which of the following is a necessary condition for two events A and B to be dependent?

a)

P(A ∪ B) = P(A) + P(B)

b)

P(A|B) ≠ P(A)

c)

P(A ∩ B) = P(A)P(B)

d)

P(A|B) = P(A)