CS-141-sample questions-1 - Computing and Informatics Final...

Info icon This preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Computing and Informatics Final Examination for CS-141-Computer Programming II Total=100 Marks PART I- Multiple Choice Question 1*15=15 1) In a selection sort of n elements, what is the time complexity a) O(1) b)O(n-1) c)O(nlogn) d)O(n 2) Answer: d 2) Finding the location of the element with a given value is: 3) Which of the following components generate action events? Buttons Labels Check boxes Windows
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
4) Any function that can be calculated using simple recursion: 5) A data structure where elements can be added or removed at either end but not in the middle a. Linked lists b. Stacks c. Queues d. Deque d. Deque 6) Which of the following data structure is non-linear type? a. Strings b. Lists c. Stacks d. None of above d. None of above 7) Which of the following data structure is linear type? a. Strings b. Lists c. Queues d. All of above d. All of above 8. A binary tree whose every node has either zero or two children is called c. Extended binary tree
Image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern