JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD
JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD MCA 1 MATHEMATICAL FOUNDATIONS OF COMPUTER SCIENCE Previous Question Paper (October/November - 2022 - R20)
Answer any five questions. All questions carry equal marks.
Main
Construct a truth table for each of these compound propositions:
i) (P ↔ q) ⊕ (p ↔ ¬q)
ii) (p ⊕ q) → (p ⊕ ¬q)
Answer
i) Truth table for (p ↔ q) ⊕ (p ↔ ¬q):
| p | q | p ↔ q | ¬q | p ↔ ¬q | (p ↔ q) ⊕ (p ↔ ¬q) |
|---|---|---|---|---|---|
| T | T | T | F | F | T |
| T | F | F | T | T | T |
| F | T | F | F | T | T |
| F | F | T | T | F | T |
ii) Truth table for (p ⊕ q) → (p ⊕ ¬q):
| p | q | p ⊕ q | ¬q | p ⊕ ¬q | (p ⊕ q) → (p ⊕ ¬q) |
|---|---|---|---|---|---|
| T | T | F | F | T | T |
| T | F | T | T | F | F |
| F | T | T | F | T | T |
| F | F | F | T | T | T |
State the converse, contrapositive and inverse of each of these conditional statements:
i) If it snows tonight, then I will stay at home.
ii) I go to the beach whenever it is a sunny summer day.
Answer
i) If it snows tonight, then I will stay at home.
- Converse: If I stay at home, then it snows tonight.
- Contrapositive: If I do not stay at home, then it does not snow tonight.
- Inverse: If it does not snow tonight, then I will not stay at home.
ii) I go to the beach whenever it is a sunny summer day (If it is a sunny summer day, then I go to the beach).
- Converse: If I go to the beach, then it is a sunny summer day.
- Contrapositive: If I do not go to the beach, then it is not a sunny summer day.
- Inverse: If it is not a sunny summer day, then I do not go to the beach.
What do you mean by a logical equivalence? Give identity, idempotent, commutative, associative, distributive and De Morgan’s laws of Boolean algebra.
Answer
Sign in to view the complete answer paper.
Use of rules of inference to show that ∀x (P(x) → (Q(x) ∧ S(x))) and ∀x(P(x) ∧ R(x)) are true, then ∀x (R(x) ∧ S(x)) is true.
Answer
Sign in to view the complete answer paper.
Let A = {a, b, c}, B = {x, y}, and C = {0, 1}. Find A × B × C and C × B × A.
Answer
Sign in to view the complete answer paper.
Let A, B, and C be sets. Show that
Answer
Sign in to view the complete answer paper.
Give examples of different types of correspondences.
Answer
Sign in to view the complete answer paper.
Find a8 of the sequence {an} if an equals
Answer
Sign in to view the complete answer paper.
Determine whether relation R = [[1, 1, 1], [0, 1, 1], [1, 1, 1]] is an equivalence relation or not.
Answer
Sign in to view the complete answer paper.
Demonstrate with an example bubble sort algorithm.
Answer
Sign in to view the complete answer paper.
Explain big-omega and big-theta notations with examples.
Answer
Sign in to view the complete answer paper.
Prove that the sum of first n positive odd integers is
Answer
Sign in to view the complete answer paper.
Give a recursive definition of the set of positive integers that are multiples of 5.
Answer
Sign in to view the complete answer paper.
Explain the following:
i) Conditional probability
ii) Independence of events
Answer
Sign in to view the complete answer paper.
What is the Tower of Hanoi problem? Let Hn denote the number of moves needed to solve the Tower of Hanoi problem with n disks. Give a recurrence relation for the sequence {Hn}.
Answer
Sign in to view the complete answer paper.
What are complete and planar graphs? Is K4 a planar graph? If so give non-planar embedding of K4.
Answer
Sign in to view the complete answer paper.
Give the order of vertices visited in pre-order, in-order and post-order traversal of the following tree.
Answer
Sign in to view the complete answer paper.