vu eco403 Mid Term Subjective Solved Past Paper No.1

vu eco403 Macroeconomics Solved Past Papers

Solved Past Papers

This subjective solved past paper is related to book/course code vu eco403 Macroeconomics which belongs to vu organization. We have 3 past papers available related to the book/course Macroeconomics. 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 1: Can you use an assignment operator to assign the value of one C-string to another?
Answer:

Yes we can assign the one value of C-string to another using assignment operator. We can assign the value of one string to another string through this method.

  1. A[0]=B[0]
  2. A[1]=B[2]
  3. A[3]=B[3]

And we can assign the whole string to another C string using Assignment operator by using loops.

Question 5: Define Flow chart.
Answer:

Flow Chart

A flow chart is a pictorial representation of a program. There are labeled geometrical symbols, together with the arrows connecting one symbol with other. A flow chart helps in correctly designing the program by visually showing the sequence of instructions to be executed.
Question 6: Define static variable. Also explain life time of static variable?
Answer:
When you declare a static variable (native data type or object) inside a function, it is created and initialized only once during the lifetime of the program.
Question 8: Differentiate between C and c++.
Answer:

1. C was the C++ predecessor. As it's name implies, alot of C remains in C++. Although not actually being more powerful than C.

2. C++ allows the programmer to more easily manage and operate with Objects, using an OOP (Object Oriented Programming) concept

3. C++ allows the programmer to create classes, which are somewhat similar to C structures. However, to a class can be assigned methods, functions associated to it, of various prototypes, which can access and operate within the class, somewhat like C functions often operate on a supplied handler pointer.

4. Although it is possible to implement anything which C++ could implement in C, C++ aids to standardize a way in which objects are created and managed, whereas the C programmer who implements the same system has a lot of liberty on how to actually implement the internals, and style among programmers will vary a lot on the design choices made

5. In C, some will prefer the handler-type, where a main function initializes a handler, and that handler can be supplied to other functions of the library as an object to operate on/through. Others will even want to have that handler link all the related function pointers within it which then must be called using a convention closer to C++.

C++ applications are generally slower at runtime, and are much slower to compile than C programs.

The low-level infrastructure for C++ binary execution is also larger. For these reasons C is always

commonly used even if C++ has alot of popularity, and will probably continue to be used in projects where size and speed are primary concerns, and portable code still required (assembly would be unsuitable then).

Question 9: Differentiate between random access and sequential access file?
Answer:

Random access file:

Random access files are not in sequence mean its not necessary put that's thing first that written first we put any thing from file any where. So tellg() and tellp() are the two very useful functions while reading from or writing into the files at some certain position.

Sequential access file:

Sequential access files are simple character files. while working with the sequential access files we write in a sequence not in a random manner

Question 10: Do you think that friend functions violate encapsulation. Justify your answer.
Answer:
The friend functions of a class have access to the private data members of class. Despite being a good thing, there is possibility of vulnerability. We are opening our thoughts, inside view for somebody else. Without having 100% trust, it will be risky to make our thoughts and feelings public. We want that our private data is accessible to someone outside, not public for everybody. Otherwise, the data encapsulation and data-hiding concept will be violated. We keep the data members private and declare some specific functions that are not member of the class but friend of the class. As friends, they have access to the inside data structure of the class despite not being members.

Solved Past Papers of eco403 Macroeconomics

Other eco related subjective solved past papers

Other categories of vu Solved Past Papers

Other organizations

Theme Customizer

Gaussian Texture



Gradient Background