vu mgt101 Mid Term Subjective Solved Past Paper No.3
vu mgt101 Financial Accounting Solved Past Papers
This subjective solved past paper is related to book/course code vu mgt101 Financial Accounting which belongs to vu organization. We have 4 past papers available related to the book/course Financial Accounting. This past paper has a total of 10 subjective questions belongs to topic Mid Term to get prepared. NVAEducation wants its users to help them learn in an easy way. For that purpose, you are free to get prepared for exams by learning subjective questions online on NVAEducatio.
NVAEducation also facilitates users to download these solved past papers with an affordable prices. However, users are not enforced to pay for money, rather they can use credits to buy such stuff on NVAEducation. Users can earn credits for doing some little tasks and then you will be able to use that credits to buy solved past papers on NVAEducation.
- (i) Recursively sort the 1st and 2nd halves separately
- (ii) Merge the two-sorted halves into a sorted group.
- (iii) If the number of items to sort is 0 or 1, return.
Which is the correct order of instructions in merge sort algorithm?
- (i),(ii),(iii)
- (ii),(iii),(i)
- (iii),(ii),(i)
- (iii),(i),(ii)
Tightly Coupled Example:
public class CartEntry{public float Price; public int Quantity;
}
public class CartContents {
public CartEntry[] items;
}
public class Order {
private CartContents cart;
private float salesTax;
public Order(CartContents cart, float salesTax) {
this.cart = cart;
this.salesTax = salesTax;
}
public float OrderTotal() {
float cartTotal = 0;
for (int i = 0; i < cart.items.Length; i++) {
cartTotal += cart.items[i].Price * cart.items[i].Quantity;
}
cartTotal += cartTotal*salesTax; return cartTotal;
}
}
Reference: Lecture No. 14
Collaboration diagrams
Collaboration diagrams can also be used to depict the dynamic behavior of a system. They show how objects interact with respect to organizational units (boundaries!).
Since a boundary shapes communication between system and outside world e.g. user interface or other system, collaboration diagrams can be used to show this aspect of the system. The sequence of messages determined by numbering such as 1, 2, 3, 4, This shows which operation calls which other operation.<
p>Reference: (Page 110)