Discrete Structure, Past Papers

Discrete Structure BSCS 2nd TERM Past paper 2015 UOS

Discrete Structure BSCS 2nd TERM Past paper 2015 UOS

University of Sargodha

BS 2nd Term Examination 2015
Subject: Computer Science
Paper: Discrete Structure (CMP-2211)

Time Allowed: 2:30 Hours
Maximum Marks: 80

Objective Part (Compulsory)

Q 1: Write short answers of the following. (2*16)

  1. Differentiate between bound and free variable with the help of an example?
  2. Find the negation of this statement: 
  3. Write the converse of this statement: “If we prepare the exam, then we will get the good grade.”
  4. Write the addition rule of inference?
  5. Define Vacuous Proof?
  6. Differentiate between subset and proper subset?
  7. Is the function  from the set of integers to the set of integers one-to-one?
  8. Find a formula for this sequence: 
  9. Define the correctness of an algorithm?
  10. Differentiate between sum and product rule with the help of an example?
  11. How many relations are there on set ?
  12. Differentiate between function and a relation?
  13. Draw graph .
  14. Compute the degree of every vertex in this graph?
  15. List the members of the following sets. a.  b. 
  16. Use truth table to determine whether  is a tautology.

Subjective Part

I. Translate this statement into quantifiers and predicates logic.
“For all $ x $, for all $ y $, if $ x $ is greater than zero and $ y $ is less than zero, then multiplying them together will produce a negative number.”

II. Let $ A = {a, b, c, d} $
$ B = {1, 2, 2, 3, 3} $
$ C = {2, b, a, 1} $