Chapter 1
Introduction to Information Technology
TU BBM past exam questions
Past questions and answers
22 questions set from this chapter. Most repeated first.
- TU BBM past exam paper Set 2 · 1 mark
What does it mean for two propositions to be logically equivalent?
Answer
Two propositions are logically equivalent when they always have the same truth value in every possible case — that is, their truth tables are identical.
Answer checked by Claude Haiku · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- TU BBM past exam paper Set 2 · 1 mark
Convert "If an integer is not even, then it is odd" into equivalent logical expression.
Answer
Let : "An integer is even" and : "It is odd".
"Not even" is , so the statement "If an integer is not even, then it is odd" is
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- TU BBM past exam paper Set 2 · 1 mark
Find the seventh term of .
Answer
The general term in the expansion of is
For the 7th term, :
Seventh term =
Answer checked by Claude Haiku · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- TU BBM past exam paper Set 2 · 1 mark
What do you mean by recursive algorithm.
Answer
A recursive algorithm is one that solves a problem by calling itself on smaller instances of the same problem, until it reaches a base case that can be solved directly.
Answer checked by Claude Haiku · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- TU BBM past exam paper Set 2 · 1 mark
State sum rule and product rule of counting.
Answer
Sum Rule: If a task can be done in one of mutually exclusive ways or in one of other mutually exclusive ways, then the total number of ways to do the task is .
Product Rule: If a task consists of two successive steps, where the first step can be done in ways and, for each of these, the second step can be done in ways, then the total number of ways to complete the task is .
Answer checked by Claude Haiku · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- TU BBM past exam paper Set 2 · 1 mark
How permutation differ from combination.
Answer
In permutation, the order of selection matters (e.g., arranging 3 books on a shelf); in combination, the order does not matter (e.g., choosing 3 books from a set).
Answer checked by Claude Haiku · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- TU BBM past exam paper Set 2 · 1 mark
Define wheel graph with example.
Answer
A wheel graph is a graph with vertices formed by joining one extra vertex (the hub) to every vertex of a cycle (the rim). It has edges.
Example: is a triangle (rim vertices ) with a hub joined to all three. It has 4 vertices and edges.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- TU BBM past exam paper Set 2 · 1 mark
What is game tree?
Answer
A game tree is a diagram that represents all possible moves and their outcomes in a game, with the initial position at the root and each branch showing a player's possible choices.
Answer checked by Claude Haiku · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- TU BBM past exam paper Set 2 · 1 mark
Define degree of tree with example.
Answer
Degree of a tree: The degree of a tree is the maximum degree among all the nodes (vertices) of the tree, i.e. the highest number of children any single node has.
Example: Consider a tree with root A having children B, C, D, where B has children E and F.
- Degree of A = 3, B = 2, C = 0, D = 0, E = 0, F = 0
- Degree of the tree = max(3, 2, 0, 0, 0, 0) = 3
Answer checked by Claude Haiku · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- TU BBM past exam paper Set 2 · 1 mark
List out any three applications of graph.
Answer
Any three applications of graph:
- Social networks — modelling friendships, followers and connections between people.
- Maps and navigation — finding shortest routes between locations (e.g., Google Maps).
- Computer networks — representing and routing data between connected devices.
Answer checked by Claude Haiku · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- TU BBM past exam paper Set 2 · 3 marks
Show that if n is an integer and is odd, then n is even using a proof by contraposition.
Answer
Proof by contraposition
We must show: if (n) is not even (i.e. (n) is odd), then (n^3+5) is not odd (i.e. (n^3+5) is even).
Assume (n) is odd. Then (n=2k+1) for some integer (k).
Substitute into (n^3+5):
[ n^3+5=(2k+1)^3+5 ]
[ =(2k)^3+3(2k)^2(1)+3(2k)(1)^2+1^3+5 ]
[ =8k^3+12k^2+6k+1+5 ]
[ =8k^3+12k^2+6k+6 ]
[ =2(4k^3+6k^2+3k+3) ]
Since (4k^3+6k^2+3k+3) is an integer, (n^3+5) is even, i.e. it is not odd.
Thus we have proved the contrapositive: if (n) is odd, then (n^3+5) is even. Therefore, the original statement is true — if (n^3+5) is odd, then (n) must be even. (\blacksquare)
Answer checked by Claude Haiku · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- TU BBM past exam paper Set 2 · 3 marks
Prove that is divisible by 3, using mathematical induction.
Answer
To prove: (n^3+2n) is divisible by 3 for all (n\in \mathbb{N}).
Let (P(n): n^3+2n) is divisible by 3.
Base case: For (n=1), [ 1^3+2(1)=3 ] which is divisible by 3. So (P(1)) is true.
Induction hypothesis: Assume (P(k)) is true, i.e. [ k^3+2k=3m ] for some integer (m).
Induction step: For (n=k+1), [ (k+1)^3+2(k+1) ] [ = k^3+3k^2+3k+1+2k+2 ] [ = (k^3+2k)+3k^2+3k+3 ] [ = 3m+3(k^2+k+1) ] [ = 3\left(m+k^2+k+1\right) ] which is divisible by 3. Thus (P(k+1)) is true whenever (P(k)) is true.
Hence, by mathematical induction, (n^3+2n) is divisible by 3 for all natural numbers (n). (\blacksquare)
Answer checked by Claude Haiku · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- TU BBM past exam paper Set 2 · 3 marks
State the pigeon hole principle. How many numbers must be selected from the set {1,3,5,7,9,11,13,15} to guarantee that at least one pair of these numbers add up to 16?
Answer
Pigeonhole Principle: If (n) objects are placed into (m) boxes and (n > m), then at least one box must contain more than one object. In general, if (n) objects are put into (m) boxes, at least one box contains at least (\lceil n/m \rceil) objects.
The given set is
[
{1,3,5,7,9,11,13,15}
]
The pairs that add up to 16 are: [ (1,15),\ (3,13),\ (5,11),\ (7,9) ]
So there are 4 such pairs. If we select 4 numbers, we could select exactly one number from each pair and still not get a pair adding to 16. But if we select 5 numbers, then by the pigeonhole principle, since there are only 4 pairs (boxes) and 5 selected numbers (objects), at least two selected numbers must come from the same pair. Those two numbers will add up to 16.
[ \boxed{\text{Minimum number to be selected} = 5} ]
Answer checked by Claude Haiku · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- TU BBM past exam paper Set 2 · 3 marks
Write a Euclidean algorithm to compute GCD of any two positive integers.
Answer
Euclidean Algorithm to Compute GCD of Two Positive Integers
Idea: Repeatedly replace the larger number by the remainder obtained when the larger is divided by the smaller, until the remainder becomes zero. The last non-zero divisor is the GCD.
Algorithm (in words):
- Start.
- Read two positive integers and .
- While , repeat:
- Set (remainder of divided by )
- Set
- Set
- The GCD is the final value of .
- Display and stop.
Pseudocode:
START
INPUT a, b
WHILE b ≠ 0 DO
r ← a MOD b
a ← b
b ← r
END WHILE
PRINT "GCD =", a
END
Example: For , :
| Step | |||
|---|---|---|---|
| 1 | 48 | 18 | 12 |
| 2 | 18 | 12 | 6 |
| 3 | 12 | 6 | 0 |
| 4 | 6 | 0 | — |
Since , the GCD is .
Answer checked by Claude Haiku · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- TU BBM past exam paper Set 2 · 3 marks
Explain simple, muti and pseudo graph with example.
Answer
Simple Graph
A simple graph is an undirected graph in which no two vertices are connected by more than one edge, and no edge connects a vertex to itself (no loops). In other words, between any pair of vertices there is at most one edge, and self-loops are not allowed.
Example: Three vertices A, B, C with edges AB and BC. There is only one edge between any pair and no loop — this is a simple graph.
Multi Graph
A multigraph is a graph that allows multiple (parallel) edges between the same pair of vertices. However, loops are generally not permitted in a multigraph.
Example: Vertices A and B connected by two or three separate edges (say e₁, e₂, e₃) between them. Since more than one edge joins the same pair of vertices, it is a multigraph.
Pseudo Graph
A pseudograph is a graph that allows both multiple edges between the same pair of vertices and loops (an edge from a vertex to itself).
Example: Vertices A and B joined by two parallel edges, and vertex A also having a loop e₃ from A back to A. Since it contains both a parallel edge and a loop, it is a pseudograph.
Summary
| Graph Type | Multiple Edges | Loops |
|---|---|---|
| Simple graph | Not allowed | Not allowed |
| Multigraph | Allowed | Not allowed |
| Pseudograph | Allowed | Allowed |
Answer checked by Claude Haiku · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- TU BBM past exam paper Set 2 · 3 marks
Define binary search tree. Construct the binary search tree of: 8,3,1,10,6,14,7.
Answer
Binary Search Tree (BST)
A binary search tree is a binary tree in which every node satisfies the BST property: the value in the left subtree of a node is smaller than the node's value, and the value in the right subtree is greater than the node's value. This property holds for every node in the tree, so searching, insertion and deletion can be done in O(log n) time on average.
Construction of the BST from: 8, 3, 1, 10, 6, 14, 7
Insert each value one by one, comparing with the root and moving left (if smaller) or right (if greater).
- Insert 8 → becomes the root.
- Insert 3 → 3 < 8, so goes to the left of 8.
- Insert 1 → 1 < 8 (left), 1 < 3 (left), so goes to the left of 3.
- Insert 10 → 10 > 8, so goes to the right of 8.
- Insert 6 → 6 < 8 (left), 6 > 3 (right), so goes to the right of 3.
- Insert 14 → 14 > 8 (right), 14 > 10 (right), so goes to the right of 10.
- Insert 7 → 7 < 8 (left), 7 > 3 (right), 7 > 6 (right), so goes to the right of 6.
The resulting binary search tree is:
8
/ \
3 10
/ \ \
1 6 14
\
7
Inorder traversal check: 1, 3, 6, 7, 8, 10, 14 — the values come out in ascending order, which confirms the tree is a valid BST.
Answer checked by Claude Haiku · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- TU BBM past exam paper Set 2 · 5 marks
Show that the hypotheses "If you send me an e-mail message, then I will finish writing the program," "If you do not send me an e-mail message, then I will go to sleep early," and" if I go to sleep early, then I will wake up feeling refreshed" lead to the conclusion" If I do not finish writing the program, then I will wake up feeling refreshed."
Answer
Let the propositions be:
- (p): You send me an e-mail message.
- (q): I will finish writing the program.
- (r): I will go to sleep early.
- (s): I will wake up feeling refreshed.
Hypotheses:
- (p \to q) (If you send me an e-mail message, then I will finish writing the program)
- (\neg p \to r) (If you do not send me an e-mail message, then I will go to sleep early)
- (r \to s) (If I go to sleep early, then I will wake up feeling refreshed)
Conclusion to prove: (\neg q \to s) (If I do not finish writing the program, then I will wake up feeling refreshed)
Proof:
| Step | Statement | Reason |
|---|---|---|
| 1 | (p \to q) | Hypothesis 1 |
| 2 | (\neg q \to \neg p) | Contrapositive of (1) |
| 3 | (\neg p \to r) | Hypothesis 2 |
| 4 | (\neg q \to r) | Hypothetical syllogism on (2) and (3) |
| 5 | (r \to s) | Hypothesis 3 |
| 6 | (\neg q \to s) | Hypothetical syllogism on (4) and (5) |
Explanation:
- From (p \to q), its contrapositive (\neg q \to \neg p) is logically equivalent.
- Chaining (\neg q \to \neg p) with (\neg p \to r) gives (\neg q \to r).
- Chaining (\neg q \to r) with (r \to s) gives (\neg q \to s).
Thus the three hypotheses validly lead to the conclusion: If I do not finish writing the program, then I will wake up feeling refreshed. (\blacksquare)
Answer checked by Claude Haiku · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- TU BBM past exam paper Set 2 · 5 marks
State Chinese remainder theorem. Find all solution to the system of congruences.
, ,
Answer
Chinese Remainder Theorem:
If (m_1,m_2,\dots,m_n) are pairwise relatively prime positive integers, then the system
[
x\equiv a_1\pmod{m_1},\quad x\equiv a_2\pmod{m_2},\quad \dots,\quad x\equiv a_n\pmod{m_n}
]
has a unique solution modulo (M=m_1m_2\cdots m_n).
The solution is [ x\equiv a_1M_1y_1+a_2M_2y_2+\cdots+a_nM_ny_n\pmod M, ] where [ M_i=\frac{M}{m_i} ] and (y_i) is the inverse of (M_i) modulo (m_i).
Given: [ x\equiv 2\pmod 3,\qquad x\equiv 1\pmod 4,\qquad x\equiv 3\pmod 5. ]
Here, [ M=3\cdot4\cdot5=60. ]
Now, [ M_1=\frac{60}{3}=20,\qquad M_2=\frac{60}{4}=15,\qquad M_3=\frac{60}{5}=12. ]
Find inverses: [ 20\equiv 2\pmod 3,\qquad 2^{-1}\equiv 2\pmod 3. ] So, [ y_1=2. ]
[ 15\equiv 3\pmod 4,\qquad 3^{-1}\equiv 3\pmod 4. ] So, [ y_2=3. ]
[ 12\equiv 2\pmod 5,\qquad 2^{-1}\equiv 3\pmod 5. ] So, [ y_3=3. ]
Thus, [ x\equiv 2\cdot20\cdot2+1\cdot15\cdot3+3\cdot12\cdot3\pmod{60} ] [ x\equiv 80+45+108\pmod{60} ] [ x\equiv 233\pmod{60} ] [ x\equiv 53\pmod{60}. ]
Therefore, all solutions are [ \boxed{x=53+60k,\quad k\in\mathbb Z} ] or [ \boxed{x\equiv 53\pmod{60}}. ]
Check: [ 53\equiv 2\pmod 3,\qquad 53\equiv 1\pmod 4,\qquad 53\equiv 3\pmod 5. ]
Hence the required solution is (\boxed{x\equiv 53\pmod{60}}).
Answer checked by Claude Haiku · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- TU BBM past exam paper Set 2 · 5 marks
Determine whether the following graphs are isomorphic or not.
Answer
The figure of the two graphs is not part of the question text, so the verdict depends on the graphs given. Two graphs and are isomorphic if there is a one-to-one, onto map such that
Procedure
- Compare the number of vertices and edges. If different, the graphs are not isomorphic.
- Compare the degree sequences (sorted lists of vertex degrees). If different, not isomorphic.
- Compare other invariants: number of connected components, number and length of cycles, and whether a vertex of a given degree is adjacent to vertices of the same degrees.
- If all invariants agree, try to build by matching vertices of equal degree and check that every edge is preserved (compare adjacency matrices after relabelling).
Worked illustration: Let be the 4-cycle and the 4-cycle . Both have 4 vertices, 4 edges and degree sequence . The map preserves all edges, so they are isomorphic. By contrast, a path on 4 vertices has 3 edges and degree sequence , so it is not isomorphic to the 4-cycle.
Applying steps 1 to 4 to the graphs in the figure gives the required conclusion.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- TU BBM past exam paper Set 2 · 5 marks
What is minimum spanning tree? Find the minimum spanning tree for the following graph by using Kruskal’s algorithm.
Answer
Minimum spanning tree
A spanning tree of a connected weighted graph is a connected, acyclic subgraph containing all the vertices; a graph with vertices has a spanning tree of exactly edges. A minimum spanning tree (MST) is the spanning tree whose total edge weight is the smallest.
Kruskal's algorithm
- Sort all edges in ascending order of weight.
- Take the smallest edge not yet considered; add it to the tree if it does not form a cycle with the edges already chosen, otherwise reject it.
- Repeat step 2 until edges are chosen.
Applying it
The figure is not part of the question text, so the method is shown on an example graph with vertices A to F. Apply the same steps to the graph in your figure.
| Edge | A–B | A–C | A–D | B–C | B–E | C–D | C–E | C–F | D–F | E–F |
|---|---|---|---|---|---|---|---|---|---|---|
| Weight | 6 | 1 | 5 | 5 | 3 | 5 | 6 | 4 | 2 | 6 |
| Edge (in order) | Weight | Decision |
|---|---|---|
| A–C | 1 | Accept |
| D–F | 2 | Accept |
| B–E | 3 | Accept |
| C–F | 4 | Accept (joins {A,C} and {D,F}) |
| A–D | 5 | Reject (cycle A–C–F–D) |
| B–C | 5 | Accept (joins {B,E} to the rest) |
Five edges are chosen for six vertices, so we stop. MST edges: A–C, D–F, B–E, C–F, B–C, with total weight
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- TU BBM past exam paper Set 2 · 10 marks
Define linear homogeneous and non-homogeneous recurrence relation with constant coefficients with example. Solve the recurrence relation for , with , and .
Answer
1. Linear recurrence relation with constant coefficients
A recurrence relation of the form
where are constants and is a function of , is called a linear recurrence relation with constant coefficients.
(a) Linear homogeneous recurrence relation
If for all , then
is called a linear homogeneous recurrence relation with constant coefficients.
Example:
or the Fibonacci recurrence
(b) Linear non-homogeneous recurrence relation
If , then
is called a linear non-homogeneous recurrence relation with constant coefficients.
Example:
or
2. Solve the recurrence relation
Given:
with
Step 1: Write the characteristic equation
Assume a solution of the form . Then
Dividing by ,
so
Step 2: Factorise the characteristic equation
Try :
So is a factor.
Now,
Factorising further,
Hence,
The roots are
Step 3: Write the general solution
Since the roots are distinct, the general solution is
i.e.
Step 4: Use the initial conditions
For :
For :
For :
Subtract equation (1) from equation (2):
Subtract equation (1) from equation (3):
Adding equations (4) and (5):
Substitute in equation (4):
Now substitute and in equation (1):
Step 5: Final solution
Verification
For :
For :
For :
Hence the solution is correct.
Answer checked by Claude Haiku · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- TU BBM past exam paper Set 2 · 10 marks
What do you mean by shortest path problem? Write Dijkstra’s algorithm to find the shortest path. Apply this algorithm to find the shortest path between a to every other vertex for the following graph.
Answer
1. Shortest path problem
In a weighted graph, the shortest path problem is to find a path between two vertices (or from one source to all other vertices) for which the sum of edge weights is minimum. Weights may represent distance, cost or time. Dijkstra's algorithm solves it when all weights are non-negative.
2. Dijkstra's algorithm
Let be the source, the current shortest distance to and its predecessor.
DIJKSTRA(G, w, s)
1. for each vertex v: d[v] = infinity, pi[v] = NIL
2. d[s] = 0; S = empty; Q = V[G]
3. while Q is not empty
4. u = vertex in Q with smallest d[u]; remove it from Q; add u to S
5. for each neighbour v of u
6. if d[u] + w(u,v) < d[v]
7. d[v] = d[u] + w(u,v); pi[v] = u
3. Application
The figure is not part of the question text, so the method is shown on an example graph with source . Substitute the weights of your figure in the same table.
Edges: a–b 4, a–c 2, b–c 1, b–d 5, c–d 8, c–e 10, d–e 2, d–f 6, e–f 3.
| Step | Vertex fixed | ||||||
|---|---|---|---|---|---|---|---|
| Start | – | 0 | ∞ | ∞ | ∞ | ∞ | ∞ |
| 1 | a | 0 | 4 | 2 | ∞ | ∞ | ∞ |
| 2 | c | 0 | 3 | 2 | 10 | 12 | ∞ |
| 3 | b | 0 | 3 | 2 | 8 | 12 | ∞ |
| 4 | d | 0 | 3 | 2 | 8 | 10 | 14 |
| 5 | e | 0 | 3 | 2 | 8 | 10 | 13 |
| 6 | f | 0 | 3 | 2 | 8 | 10 | 13 |
| To | Shortest path | Distance |
|---|---|---|
| b | a → c → b | 3 |
| c | a → c | 2 |
| d | a → c → b → d | 8 |
| e | a → c → b → d → e | 10 |
| f | a → c → b → d → e → f | 13 |
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
Questions from TU BBM past exam paper Set 2 (IT 235), TU BBM past exam paper (MKT 201: Fundamentals of Marketing · 2024), TU BBM past exam paper (MKT 201 · 2024) and TU BBM past exam paper (TU BBM past exam paper). Answers are written for this site; check them against your class notes.