vu cs302 Mid Term Subjective Solved Past Paper No.2

vu cs302 Digital Logic Design Solved Past Papers

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.

Question 2: Which of the statements is true about destructor?
Answer:
  1. Destructors are used to initialize data members
  2. Destructors return types are always void
  3. Destructors are called in reverse order of constructor called in a class hierarchy
  4. Destructors are used to display the data members of their respective class
Question 3: Writ c++ code to overload subscript[] operator for String class.
Answer:
#include <iostream>
#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) { }
Question 5: Write c++ of overloading - operator in complex numbers class which can work in these give situation. If we have two objects of complex number class as follows,
Complex obj1;
Complex obj3 = 47.4 - obj2;
Complex obj4 = obj2 - 47.4;
Answer:

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
Question 7: Write three distinct situations in which copy constructor of a class is called.
Answer:
  1. Assignment of private data members at the time of object creation.
  2. When an object is passed by vale to a function.
  3. When allocating memory dynamically we use copy constructor to avoid dangling pointer issue.
Question 8: What are the information requirements for Strategic level in Accounting & financial Information Systems?
Answer:

Financial Information Systems like other information systems should cater for information requirements at each level, for instance. Strategic level

  1. Investment goals
  2. Long range forecasts for firm's financial performance
  3. Acquisition of financial resources and goals
Question 9: What are the management styles. Discuss in details.
Answer:

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.


Solved Past Papers of cs302 Digital Logic Design

Other cs related subjective solved past papers

Other categories of vu Solved Past Papers

Other organizations

Theme Customizer

Gaussian Texture



Gradient Background