vu cs201 Mid Term Subjective Solved Past Paper No.5

vu cs201 Introduction to Programming Solved Past Papers

Solved Past Papers

This subjective solved past paper is related to book/course code vu cs201 Introduction to Programming which belongs to vu organization. We have 12 past papers available related to the book/course Introduction to Programming. 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: Write down different situations where we need the sequential circuits.
Answer:

Digital circuits that use memory elements for their operation are known as Sequential circuits. Thus Sequential circuits are implemented by combining combinational circuits with memory elements.

--or--

This type of system uses storage elements called flip-flops that are employed to change their binary value only at discrete instants of time. Synchronous sequential circuits use logic gates and flip-flop storage devices. Sequential circuits have a clock signal as one of their inputs. All state transitions in such circuits occur only when the clock value is either 0 or 1 or happen at the rising or falling edges of the clock depending on the type of memory elements used in the circuit.

Question 4: Write the uses of multiplexer
Answer:
Multiplexer is a digital switch that has several inputs and a single output. Multiplexers are also known as Data Selectors. The main use of the Multiplexer is to select data from multiple sources and to route it to a single Destination. (Page 167)
Question 7: Can we create an array of objects for a class having user defined constructor. Justify your answer.
Answer:
There must always be a default constructor if we want to create array of objects.
Question 8: class Complex
{
private:
double x,y;
static int z;
public:
Complex(double = 0.0);
friend ostream& operator<<(ostream&, const Complex&);
static int doSomething( ) { z = 2 * y; return z; }
};

a. What is wrong in the definition of member function doSomething().

b. What will be the effect of writing the friend function operator<<(…) in private part of the above class

Answer:

a) Static keyword because using static key word we are declaring a static member function doSomething(). Which can not use non static data members.

b) There will be no effect on friend function if we write it in private part. Friend function is a friend function and can use any private or public data member of the class. Where ever we declare it in class body.


Solved Past Papers of cs201 Introduction to Programming

Other cs related subjective solved past papers

Other categories of vu Solved Past Papers

Other organizations

Theme Customizer

Gaussian Texture



Gradient Background