• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 2 out of 10 pages
Exam (elaborations)

May/June 2020 COS2611 Programming: Data Structures

Document preview thumbnail
Preview 2 out of 10 pages

UNIVERSITY EXAMINATIONS May/June 2020 COS2611 Programming: Data Structures 70 Marks 3 Hours This paper consists of 10 pages including Appendix A, B and C (pp 9-10). Instructions: 1. Answer all questions. 2. The total marks for this examination is 70 marks. 3. The mark for each question is indicated in brackets next to the question. 4. If you do not submit your work on or before the indicated time, for whatever reason, you will be marked as absent. In that case, you will be automatically deferred to the October/November 2020 examination. 5. The code in this exam paper can also be downloaded from myUnisa additional resource in Exam code folder. PLAGIARISM is the presentation by a student of an assignment or piece of work which has in fact been copied in whole or in part from another student’s work, or from any other source, without due acknowledgement in the text. Dishonest practices may also amount to criminal offences, such as fraud, theft and criminal copyright liability. Such dishonest practices include the following: copying information from another person (e.g. another student’s assignment or portfolio) and submitting identical work where such work is not the result of teamwork and indicated as such by all participants, asking someone else to do the work on one’s behalf. Having another person do the work on your behalf will result in disciplinary action, and potential suspension or expulsion from the university. First Examiner: Mr T Masombuka Second Examiner: Mr L Aron GOOD LUCK Downloaded by Marco Peramaul () lOMoARcPSD| 2 COS2611 May/June 2020 [Turn Over] Question 1 Program Analysis [10] For each of the following questions choose the correct alternative. Questions 1.1, 1.2 and 1.3 refer to the following code fragment. 1 for(int j = 10; j = n; j++ ) 2 for(int k = 1; k = n; k*=2 ) 3 sum++; 4 for(int p = n; p 1; p/=2 ) 5 for(int q = 0; q 500; q+=4 ) 6 sum--; 1.1. How many times is statement 3 executed? A. O(N) B. O(N2 ) C. O(N3 ) D. O(N log N) E. O(log N


Document information

Uploaded on
November 3, 2021
Number of pages
10
Written in
2021/2022
Type
Exam (elaborations)
Contains
Questions & answers
$3.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Sold
1102
Followers
917
Items
2065
Last sold
2 weeks ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions

Whoops! We can’t load your doc right now. Try again or contact support.