Image

cs201 Final Term Paper 2020 Shared by Student

Today CS201 Current final term paper fall 2020

27-02-2021

#CS201 Final Term Current Paper FALL 2020-21
27-FEB-2021
Objective to much easy totally from current quizzes
Subjective all question are finding errors and writing output
Only one question is:
What is this pointer?
CS201 MCQs maximum past paper + quiz waly question or Long ma Macro or program 5 employee ki salary show krwani thi or or
Mera exam ho gya...
Mushkil ni tha , assan tha , mcqs b assan thy....
3 marks ...Difference between" _>" and " ."
3 marks ...Declare 3 ×3 matrix and initialize all elements with 0 using loop
3 marks...use setflag manipulator function to show number in octal and hexadecimal
3 marks...ak chota sa program tha , us ki output btani thi
3 marks...2 classes di hui thi , un ka two way relation bnana tha
5 marks ....setfill aur setw manipulator use kar k kuch out puts dekhani thi....
--------11
@@@@5555
*****6666
Ya question bohot easi hai.
5 marks....ak class define ki hui thi , us mein sy syntex errors nikalny thy.
Ya b bohot easy tha...agar kisi ko class k bary thora bohot knowledge ho tu assani sy kar sakta hai.
5 marks... ak template function likhna tha.. main program mein user sy 5 elements array mein input karwa k , array function ko pass karni thi...aur function ny array ka 1st element aur last element ko add kar k sum return karna tha.. ya b itna mushqil ni tha

cs201 Final Term Paper 2020 Shared by Student

CS201 VU Current Final Term Papers Spring 2020

Cs201 at 11:00 am 5 to 7 mcqs from past papers of waqar Q1: difference between default and parameterized constructors. Q2: use three variable to expose the dec, hex, and oct. Q3, write c++ programs with three variable salary, no. Of days and rate and salary account by the formula Salary= no.days*rate Take out of no of days with the daily rate of 1000 per day. Q4: write c++ program with 2 variable 1- calculate rows and columns 2- calculate transpose of matrix Q5_ function of default function Q6_ if you agree prototype of ordinary function and special function of a class are same. Justify with comment.
3 questions error find
2 questions output btane wale
2 programs
R 3 ese he short short question the Kn knse operator overload ni ho skte wo btayen Kese pta chlega k new function se memory allocate hue h ya ni
Today paper cs201 17-02-20 30 to 40% From past papers of Moaaz And Waqar Bhatti
2 Question on Finding Errors in code
1 question was on incrementing Date through class
1 question from pointers i.e getting input from user and reverse the order through pointer
Write a program for array of 10 numbers using float data type and initialize the first 4 numbers at 1.0,2.0,3.0,4.0 (3 marks) We use Malloc or Calloc to allocate memory chuck, what should we check against to know if the allocation of the memory chunk was successful or not. (3 Marks)

Why do we use delete to free memory? write the code to free memory in the following code (Code consisted new operator but no delete operator to free it just had to enter that in the code) (3 marks)
Suppose an object in Class A is made an object of Class B(don't exactly remember the wording) For which class the constructor is called for first For which class the destructor is called for first (3 marks)

Find mistakes in the given code, give reason for the mistakes and also write the correct code. (the program was about Teacher ID and coding consisted of class and constructor) (5 Marks)
Suppose we want to write a Macro that swaps 2 numbers, what problems can we come across and how do we avoid them? Give 5 affects (5 marks)

cs201 Final Term Paper 2021 Shared by Student

CS201 Current Finalterm Papers Fall 2020 | 27-02-2021
Objective to much easy totally from current quizzes
Subjective all question are finding errors and writing output
Only one question is:
What is this pointer?
Subjective mn totally programing thi, 3 program lkhny thy aik function ka tha or baqi 2 ki output lkhni thi
Static memory ka question tha 3 nmbr ka,
Kon sa arthmetc operatr hm C mn use nhi kr skty or kyon nhi kr skty
Past papr mn sy 20 percent tha

cs201 Final Term Paper 2021 Shared by Student

Cs-201 Important Topics For Final Term Exam
15% From MidTerm Syllabus
Final Term Topics
Static and Dynamic Memory Allocation
Class & Object
Constructor and its Types
Destructor
Function Overloading
Function Overriding
new Operator
delete Operator
Friend Function
Friend Classes
Operator Overloading and its Types
plus (+) Operator Overloading
minus (-) Operator Overloading
increment (++) Operator Overloading
decrement (--) Operator Overloading
Assignment ) Operator Overloading
Equal (==) Operator Overloading
this Pointer
Overloading (Insertion and Extraction Operator)
Template Function
Template Class
Advantage and Disadvantage of Template
STL stands for?
Matrix and Transpose of a Matrix
Matrix Class

cs201 Final Term Paper 2020 Shared by Student

CS201 current paper | 11-09-2020 | 11:00 AM
5 to 7 mcqs from past papers of waqar
Q1: difference between default and parameterized constructors.
Q2: use three variable to expose the dec, hex, and oct.
Q3, write c++ programs with three variable salary, no. Of days and rate and salary account by the formula Salary= no.days*rate Take out of no of days with the daily rate of 1000 per day.
Q4: write c++ program with 2 variable 1- calculate rows and columns 2- calculate transpose of matrix
Q5_ function of default function
Q6_ if you agree prototype of ordinary function and special function of a class are same. Justify with comment.
3 questions error find
2 questions output btane wale
2 programs
R 3 ese he short short question the Kn knse operator overload ni ho skte wo btayen Kese pta chlega k new function se memory allocate hue h ya ni

cs201 Final Term Paper Shared by Student

CS201 Current Finalterm Papers Fall 2020 | 28-02-2021
Cs201
Objective to much easy totally from current quizzes
Subjective all question are finding errors and writing output
Only one question is:
What is this pointer?
CS201 MCQs maximum past paper + quiz waly question or Long ma Macro or program 5 employee ki salary show krwani thi or or

cs201 Final Term Paper 2020 Shared by Student

CS201 Current Finalterm Papers Fall 2020
*Cs201 at 11:00 am*
5 to 7 mcqs from past papers of waqar Q1: difference between default and parameterized constructors. Q2: use three variable to expose the dec, hex, and oct. Q3, write c++ programs with three variable salary, no. Of days and rate and salary account by the formula Salary= no.days*rate Take out of no of days with the daily rate of 1000 per day. Q4: write c++ program with 2 variable 1- calculate rows and columns 2- calculate transpose of matrix Q5_ function of default function Q6_ if you agree prototype of ordinary function and special function of a class are same. Justify with comment.
3 questions error find
2 questions output btane wale
2 programs
R 3 ese he short short question the Kn knse operator overload ni ho skte wo btayen Kese pta chlega k new function se memory allocate hue h ya ni
Today paper cs201 17-02-20 30 to 40% From past papers of Moaaz And Waqar Bhatti
2 Question on Finding Errors in code
1 question was on incrementing Date through class
1 question from pointers i.e getting input from user and reverse the order through pointer
Write a program for array of 10 numbers using float data type and initialize the first 4 numbers at 1.0,2.0,3.0,4.0 (3 marks) We use Malloc or Calloc to allocate memory chuck, what should we check against to know if the allocation of the memory chunk was successful or not. (3 Marks)
Why do we use delete to free memory? write the code to free memory in the following code (Code consisted new operator but no delete operator to free it just had to enter that in the code) (3 marks)
Suppose an object in Class A is made an object of Class B(don't exactly remember the wording) For which class the constructor is called for first For which class the destructor is called for first (3 marks)
Find mistakes in the given code, give reason for the mistakes and also write the correct code. (the program was about Teacher ID and coding consisted of class and constructor) (5 Marks)
Suppose we want to write a Macro that swaps 2 numbers, what problems can we come across and how do we avoid them? Give 5 affects (5 marks)

cs201 Final Term Paper 2020 Shared by Student

CS201 current paper
Word wrap.
Border radius
Background origin
Padding
Jquery traversal methods were asked
Html4 and html5 character sets puchay thay..
Word-wrap
Jquery dimensions
Interval()
Abbreviations
Xslt, xpath, dom, html
Advantages of html namesapce

cs201 Final Term Paper 2020 Shared by Student

-Difference call by value and call by reference
-Date class array of 10 objects run a loop for display function
-Define 2 classes rectangle and square and declare a rectangle class as a friend class of square
3 tell output of the function
-If the scope of data members of class is not declared what will be explain with logic
-Output of a function declared to erase in calculate the vector of 2 arrays and tell the output
No questions from operator over loading, only mcqs, template McQ 5, 5 to 7 were from mids

cs201 Final Term Paper 2020 Shared by Student

CS201 Current Finalterm Papers Fall 2020 | | 04-03-2021 | 09:30 AM cs201 9:30AM 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; coutj; 3.what will be output if function will call 5 times void function() {int x=0; x++; coutxendl; } 4.what will be output of programm cout.setf(ios::floatfield,ios::fixed); coutsetprecision(5)1234.537endl; cout.setf(ios::floatfield,ios::scientific); coutsetprecision(5)1234.537endl; 5. write c++ code to set precision upto 3 decimal places of float value 1.2345678 whichwill give a 9 digit float output with preceding 0s. 6. aik class dii hoi thi or default constructor diyah hoa tha class kay andar or yh main code likhna tha 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--) { coutn; if n==3 break; } } 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. Baqi saray mcqs theoratical and logical that koi program output wala nhi tha oper walay 8 question 3 or 5 marks kay thay.

CS201 Final Term Solved MCQs and Subjective by Moaaz

CS201 Final Term Solved MCQs and Subjective by Moaaz

cs201 Final Term Paper Shared by Student

Date: 04-01-2020

Q1: difference between default and parameterized constructors.
Q2: use three variable to expose the dec, hex, and oct.
Q3, write c++ programs with three variable salary, no. Of days and rate and salary account by the formula Salary= no.days*rate Take out of no of days with the daily rate of 1000 per day.
Q4: write c++ program with 2 variable 1- calculate rows and columns 2- calculate transpose of matrix
Q5_ function of default function
Q6_ if you agree prototype of ordinary function and special function of a class are same. Justify with comment.
3 questions error find
2 questions output btane wale
2 programs
R 3 ese he short short question the Kn knse operator overload ni ho skte wo btayen Kese pta chlega k new function se memory allocate hue h ya ni



MCQs Download Subjective Download

cs201 Final Term Paper Shared by Student

Today paper cs201 17-02-20 30 to 40% From past papers of Moaaz And Waqar Bhatti
2 Question on Finding Errors in code
1 question was on incrementing Date through class
1 question from pointers i.e getting input from user and reverse the order through pointer
Write a program for array of 10 numbers using float data type and initialize the first 4 numbers at 1.0,2.0,3.0,4.0 (3 marks) We use Malloc or Calloc to allocate memory chuck, what should we check against to know if the allocation of the memory chunk was successful or not. (3 Marks)
Why do we use delete to free memory? write the code to free memory in the following code (Code consisted new operator but no delete operator to free it just had to enter that in the code) (3 marks)
Suppose an object in Class A is made an object of Class B(don't exactly remember the wording) For which class the constructor is called for first For which class the destructor is called for first (3 marks)
Find mistakes in the given code, give reason for the mistakes and also write the correct code. (the program was about Teacher ID and coding consisted of class and constructor) (5 Marks)
Suppose we want to write a Macro that swaps 2 numbers, what problems can we come across and how do we avoid them? Give 5 affects (5 marks)

VU Subjects Available List

Available Subjects List

Join Chat Room

Join Chat

Join our FB Group For VU help

Join VU Group

CS201 Final Term Solved MCQs and Subjective by Moaaz

cs201 Final Term Paper Shared by Student

Date: 04-01-2020

Word wrap.
Border radius
Background origin
Padding
Jquery traversal methods were asked
Html4 and html5 character sets puchay thay..
Word-wrap
Jquery dimensions
Interval()
Abbreviations
Xslt, xpath, dom, html
Advantages of html namesapces



cs201 Final Term Paper Shared by Student

Date: 04-01-2020

-Difference call by value and call by reference
-Date class array of 10 objects run a loop for display function
-Define 2 classes rectangle and square and declare a rectangle class as a friend class of square
3 tell output of the function
-If the scope of data members of class is not declared what will be explain with logic
-Output of a function declared to erase in calculate the vector of 2 arrays and tell the output
No questions from operator over loading, only mcqs, template McQ 5, 5 to 7 were from mids

cs201 Final Term Paper Shared by Student

#Cs201 Current Paper Spring 2019
mcqs past paperz main thy
short question
why program is evaluated?two techniques of evaluation?
write three type of systm software
and how system software control all the .....
2 progrms thy ....aik weight in kg convert it in pounds kuch
is trha ka
aur aik array wala tha
...bs yhi yad h..

cs201 Final Term Paper Shared by Student

Date: 04-01-2019

CS 201 Paper Done
Paper Bohat Easy Tha .......Asaaan C Coding Thii .......Errors Puchay Thy Aur kuch ki
Outp
ut Show Karna thi....Handsout main jo programs diye hai examples unko b daikh
lena aik 5 number ka program aya tha un main sey
Mcqs sary past papers sey aye thy .......But agar handsout parhi ho kisi ney to sabhi
handsout main sey thy mcqs.....

cs201 Final Term Paper Shared by Student

Date: 04-01-2019

Cs201 paper
MCQS 18 thy,
almost past paper sy thy...
2 Q. of 3 marks,
3 Q. of 5 marks
...write the functionality of following function: strcpy & strncpy(3 marks)
... using not operator write the output: true? false?(3 marks)
....write a program of 4 digits which gives the first and last digit:(5 marks)
....code given tha error find krny thy:(5 marks)
...program likhna tha:(5 marks)



cs201 Final Term Paper Shared by Student

Date: 04-01-2019

5 to 7 mcqs from past papers of waqar.
Q1: Difference between default and parameterized constructors.
Q2: Use three variable to expose the dec, hex, and oct.
Q3: Write c++ programs with three variable salary, no. Of days and rate and salary account by the formula Salary= no.days*rate. Take out of no of days with the daily rate of 1000 per day.
Q4: write c++ program with 2 variable
Calculate rows and columns
Calculate transpose of matrix
Q5: Function of default function
Q6: If you agree prototype of ordinary function and special function of a class are same. Justify with comment.

MCQs Test Online 1

Take a Test 1

MCQs Test Online 2

Take a Test 2

MCQs Test Online 3

Take a Test 3

MCQs Test Online 4

Take a Test 4

MCQs Test Online 5

Take a Test 5

MCQs Test Online 6

Take a Test 6

MCQs Test Online 7

Take a Test 7

MCQs Test Online 8

Take a Test 8

MCQs Test Online 9

Take a Test 9

MCQs Test Online 10

Take a Test 10

cs201 Final Term Paper Shared by Student

CS201 FINAL TERM PAPER FEB-26-2020
2:30 PM
(5 matks)
Consider the following statement :
String *text;
Text = new String[5];
Now we want to delete this array, what happens when we use the following statement? Justify your answer with solid reasons.

Delete text;
Write code which overloads the function named abs1 for integer, double and character data types.

For example, if we pass an integer value to this function, a message should print on screen "using integer abs1", on passing a double type value, the message "using double abs1" and on passing character value, the message "using character abs1" should print.
Read the following code carefully and find out errors in it.

#include <iostream.h>

class A

{

public

A()

{

cout "n A Constructor ...";

}

~A();

{

cout "n A Destructor ...";

}

}

class B

{

public;

B()

{

cout "n B Constructor ...";

}

~B()

{

cout "n B Destructor ...";

}

private:

A a

};

void main(void)

{

B b;

}
Given is the code for the class myClass.
class myClass
{
private:
int x ;
int y;
public:

myClass()

{

x = 0;

y = 0;

}
};
You are required to write the code to perform the following task in the main() function.
Prompt the user to enter the number of objects to be created.
Dynamically allocate memory to objects according to the size entered by user.
De-allocate memory that was allocated to objects.
Write a program which prompts the user to enter a string and reverse the string using pointers and display the string in reverse order on the output screen. Program must input a complete line including spaces(3 marks )
Is it possible to define a function inside the class? If yes, then how does the compiler treat the newly defined function?
Is it possible to define a function inside the class? If yes, then how does the compiler treat the newly defined function?
Suppose an object of class A is declared as data member of class B.
(i) The constructor of which class will be called first?
(ii) The destructor of which class will be called first?
Write a statement for opening file trans.txt for input; using an ifstream object called inTransaction.
What will be the output of the given program code ?

#include <iostream>

using namespace std;

int main ()

{

int n;

n=-77;
cout.width(6);

cout right n endl;

cout.width(6);

cout internal n endl;

cout.width(6);

cout left n endl;

return 0;

}

èIf the requested memory is not available in the system then what does calloc(), malloc() and new operator return?

CS201 short notes for final term

Download

CS201 Short Notes

Download

Virtual University 22-09-2022 12:05:04pmView: 93509

Categories: Virtual University

Comments

Leave a comment