Are you looking for past papers for the Final Term? This is the right website for you. All CS201 Final Term Past Paper are available here.THEINFO.pk provides past papers for all subjects in VU’s final term.
This post contains the CS201 Final term Past paper. For quick preparation for the final term exams, you can refer to CS201 Final Term past paper.
CS201 Final Term Solved MCQs and Subjective
It is possible for students to obtain past term papers. This will help them gain an understanding of what kind of MCQs and Subjective questions will be covered in Final Term Exams.
You can use CS201 Final term Past paper to gain knowledge if you want to do well in exams. In addition, students must follow Virtual University Handouts, PPT Slides, and all video lectures.
CS201 Final Term Past Paper Objective Part 1
Q1: What is the output of the following code, if the first case is true
switch (var) {
case ‘a’:cout<<“apple”<<endl;
case ‘b’:cout<<“banana”<<endl;
case ‘m’:cout<<“mango”<<endl;
default: cout<<“any fruit”<<endl;
}
- apple
- apple
any fruit - apple
banana
mango
any fruit - none of above
Q2: In C/C++, the algebraic expression (b2-4ac) / 2a can be written as:
- (b*b – 4*a*c) / (2*a)
- b*b – 4*a*c / (2*a)
- b*b – 4*a*c / 2*a
- b*b – (4*a*c) / 2*a
Q3: getche() is a ________ function and defined in ________ header file.
- user-define function , conio.h
- built-in function , conio.h
- built-in function, stlib.h
- built -in function, iostream.h
Q4: The dynamic memory allocation uses ________ whereas static memory allocation uses ________.
- heap , stack
- stack , lists
- array , stack
- classes , array
Q5: There can be ________ ‘default’ statement(s) in any switch structure.
- 1
- 2
- 3
- n
Q6: A ________ structure specifies that an action is to be repeated while some condition remains true.
- Control
- Logical
- Repetition
- Relational
Q7: In C/C++, which of the following data type is used to store real numbers?
- float
- char
- boolean
- int
Q8: What is the correct syntax to declare an array of size 10 of int data type?
- int [10] name;
- name[10] int;
- int name[10];
- int name[];
Q9: ________ operators are the ones that require only one operator to work.
- Unit
- Unary
- Single
- None of the given
Q10: Which one of the following is mandatory preprocessor directive for c++?
- #undef
- #include
- #undef
- All of the given
Q11: ________ operator is used to pass the address of a variable in call by reference method.
- %
- +
- @
- &
Q12: The ________ is called automatically when an object destroys.
- destructor
- constructor
- main program
- default constructor
Q13: Operating System is a type of a/an ________.
- application software
- system software
- computer language
- interpreter
Q14: What will be the output of following code?
int i = 1;
while(i<10){
if(i%2 == 0)
cout<<i<<” “;
i++;
}
- 2 4 6 10
- 1 3 5 7
- 2 4 6 8
- 2 4 8 10
Q15: < and > both are ________ operators.
- Arithmetic
- Relational
- Logical
- Mathematical
