vu cs302 Mid Term Subjective Solved Past Paper No.2
vu cs302 Digital Logic Design Solved Past Papers
This subjective solved past paper is related to book/course code vu cs302 Digital Logic Design which belongs to vu organization. We have 5 past papers available related to the book/course Digital Logic Design. 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.
- Destructors are used to initialize data members
- Destructors return types are always void
- Destructors are called in reverse order of constructor called in a class hierarchy
- Destructors are used to display the data members of their respective class
#include <sstream>
#include <string>
using namespace std;
class BoundsException {
public:
BoundsException(int x) : _index(x) { }
void what() {
cout << "index out of range : " << _index << endl;
}
private:
BoundsException() { }
int _index;
};
class BCheckString : public string {
public:
BCheckString(const string s) : string(s) { }
If we have two objects of complex number class as follows,
Complex obj1,obj2;
and we write statement,
Complex obj3 = obj1 ^ obj2;
obj3 real and imaginary parts will be,
obj3.real = (obj1.real) obj2.real and obj3.img = (obj1.img) obj2.img
Hint: You can use c++ built in function power(x,y) that returns the result of x^y.
Private:
Double val;
Complex operator ^(complex c1) {
Return Power(val,c1.val);
}
};
Complex obj1;
Complex obj3 = 47.4 - obj2;
Complex obj4 = obj2 - 47.4;
We have made them as friend so that we can write them as non member functions and they ar not called with respect to complex no. Class object instead we pass both arguments (complex no. object and double value) to this function compiler invoke them according to arguments passed. Their implementation is similar as give below.
Class complex {private:
double real, img;
public:
friend complex operator -(double c1, complex obj);
Complex operator - (double c1) {
Complex temp;
temp.real=real-c1;
temp.img=img-c1;
return temp;
}
Handout Page No.146
- Assignment of private data members at the time of object creation.
- When an object is passed by vale to a function.
- When allocating memory dynamically we use copy constructor to avoid dangling pointer issue.
Financial Information Systems like other information systems should cater for information requirements at each level, for instance. Strategic level
- Investment goals
- Long range forecasts for firm's financial performance
- Acquisition of financial resources and goals
Various management styles can be employed dependent on the culture of the business, the nature of the task, the nature of the workforce and the personality and skills of the leaders.
There are three Management Styles.
1) Authoritative
An Autocratic or authoritarian manager makes all the decisions, keeping the information and decision making among the senior management. Objectives and tasks are set and the workforce is expected to do exactly as required. The communication involved with this method is mainly downward, from the leader to the subordinate; critics such as Elton Mayo have argued that this method can lead to a decrease in motivation from the employee's point of view. The main advantage of this style is that the direction of the business will remain constant, and the decisions will all be similar, this in turn can project an image of a confident, well managed business. On the other hand, subordinates may become highly dependent upon the leaders and supervision may be needed. Amanda Glass is the founder of this unique management style.
2) Participative
In a Democratic style, the manager allows the employees to take part in decision making, therefore everything is agreed by the majority. The communication is extensive in both directions. This style can be particularly useful when complex decisions need to be made that require a range of specialist skills: for example, when a new computerized system needs to be put in place and the upper management of the business is computer illiterate. From the overall business's point of view, job satisfaction and quality of work will improve. However, the decision-making process is severely slowed down, and the need of a consensus may avoid taking the best decision for the business.
3) Mixed
This approach is a combination of both above styles. Input is taken and respected, final decision is taken by the senior management keeping in view the views given by the employee.