CS 201 – VU Final Term current Paper 2021

12
163
CS 201 - VU Final Term current Paper 2021

CS 201 – VU Final Term current Paper 2021

1.can we change the behavior of overloaded operator -(minus)?Justfy.

2.what wil be output of program(Mcqs)
int i=23;
int&j=i;
cout<<j;

3.what will be output if function will call 5 times
void function()
{int x=0;
x++;
cout<<x<<endl;
}

4.what will be output of programm

cout.setf(ios::floatfield,ios::fixed);
cout<<setprecision(5)<<1234.537<<endl;
cout.setf(ios::floatfield,ios::scientific);
cout<<setprecision(5)<<1234.537<<endl;

5. write c++ code to set precision up to 3 decimal places of float value 1.2345678 which will give a 9 digit float output with preceding 0s.

6. one class or default constructor and inside the code in  class
write main code which will do following tasks
a. take the no. of objects from user.
b. allocate the memory dynamically to these objects of size enter by user.
c. deallocate the memory allocated to objects.

7.what will be output of following function.
main()
{
int n;
for(n=5,n>0,n–)
{
cout<<n;
if n==3
break;
}
}

CS 201 – VU Final Term current Paper 2021
8. How many times the following loop execute
for(n=3,n<=12,n++)

9.write program that will give the output
the sum of x and y is 13.
sum the values using Macros SUM that will take two variables x and y.

Long questions:

1.Syntax of switch statement

2.Template function program and output write

3.Virtual University is output  program write

4.One program write the space in output

AJAX and API calling

Error find in program..

How to call a variable.

While loop program

If two variables have same name how compiler can differentiate between them?

MCQ theoretical and logical that     Vu paper

12 COMMENTS

  1. Oh my goodness! Amazing article dude! Thank you so much, However I
    am having issues with your RSS. I don’t know the reason why I am unable to join it.
    Is there anyone else getting the same RSS problems?
    Anyone that knows the answer will you kindly respond?

    Thanks!!

  2. Hi, I think your website might be having browser compatibility issues.
    When I look at your blog in Firefox, it looks fine but when opening in Internet Explorer, it has some overlapping.
    I just wanted to give you a quick heads up! Other then that, amazing blog!

  3. Hi there… I simply want to give you a big thumbs up for your excellent info you have got right here on this post.
    I am coming back to your site for and moree soon..

  4. Hi there! I simply want to give you a big thumbs up for your excellent info you have got right here on this post.
    I am coming back to your site for more soooon…

  5. Do you have a spam issue on this site; I also am a blogger, and I was wanting to know your situation; many of us
    have created some nice procedures and we are looking to swap solutions with other folks,
    be sure to shoot me an email if interested.

  6. Hello there! This post could not be written any better!
    Reading through this post reminds me of my old room mate!
    He always kept chatting about this. I will forward this article to him.
    Pretty sure he will have a good read. Many thanks for sharing!

LEAVE A REPLY

Please enter your comment!
Please enter your name here