CS-141-sample questions-1

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

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

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

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

View Full Document
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
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### What students are saying

• 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.

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

• 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.

Dana University of Pennsylvania ‘17, Course Hero Intern

• 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.

Jill Tulane University ‘16, Course Hero Intern