DSA QUIZ#1 B KEY.pdf - DSA QUIZ#1(Spring 2017 Solution Instructor MR TAHIR IQBAL Answer Key Q1 a Right Option b(Prints Binary Representation of n b

DSA QUIZ#1 B KEY.pdf - DSA QUIZ#1(Spring 2017 Solution...

This preview shows page 1 - 2 out of 2 pages.

Page 1 of 2 DSA QUIZ#1 (Spring 2017) Solution Instructor: MR TAHIR IQBAL Answer Key: Q1) a) Right Option: b (Prints Binary Representation of n) b) Output 1: 111000 Output 2: 100101 Output 3: 1101 Q3) a) Output 1: 75 Output 2: 35 Output 3: 50 Output 4: 65 Output 5: NULL b) Value 1: false Value 2: true Value 3: true Value 4: true Value 5: false Q4) Answer: a) ((())
Image of page 1
Page 2 of 2 Q5) Code: void Delete(int num) { Link *temp, *pre; temp = head; if (temp->data == num)
Image of page 2

You've reached the end of your free preview.

Want to read both pages?

  • Fall '17
  • Tahir Iqbal

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask You can ask (will expire )
Answers in as fast as 15 minutes