Friday, June 2, 2023
HomeGuess PaperCS201 Final Term Past Paper 2022 | Virtual University VU MCQs

CS201 Final Term Past Paper 2022 | Virtual University VU MCQs

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;
}

  1. apple
  2. apple
    any fruit
  3. apple
    banana
    mango
    any fruit
  4. none of above

Q2: In C/C++, the algebraic expression (b2-4ac) / 2a can be written as:

  1. (b*b – 4*a*c) / (2*a)
  2. b*b – 4*a*c / (2*a)
  3. b*b – 4*a*c / 2*a
  4. b*b – (4*a*c) / 2*a

Q3: getche() is a ________ function and defined in ________ header file.

  1. user-define function , conio.h
  2. built-in function , conio.h
  3. built-in function, stlib.h
  4. built -in function, iostream.h

Q4: The dynamic memory allocation uses ________ whereas static memory allocation uses ________.

  1. heap , stack
  2. stack , lists
  3. array , stack
  4. classes , array

Q5: There can be ________ ‘default’ statement(s) in any switch structure.

  1. 1
  2. 2
  3. 3
  4. n

Q6: A ________ structure specifies that an action is to be repeated while some condition remains true.

  1. Control
  2. Logical
  3. Repetition
  4. Relational

Q7: In C/C++, which of the following data type is used to store real numbers?

    1. float
    2. char
    3. boolean
    4. int

Q8: What is the correct syntax to declare an array of size 10 of int data type?

  1. int [10] name;
  2. name[10] int;
  3. int name[10];
  4. int name[];

Q9: ________ operators are the ones that require only one operator to work.

  1. Unit
  2. Unary
  3. Single
  4. None of the given

Q10: Which one of the following is mandatory preprocessor directive for c++?

  1. #undef
  2. #include
  3. #undef
  4. All of the given

Q11: ________ operator is used to pass the address of a variable in call by reference method.

    1. %
    2. +
    3. @
    4. &

Q12: The ________ is called automatically when an object destroys.

  1. destructor
  2. constructor
  3. main program
  4. default constructor

Q13: Operating System is a type of a/an ________.

    1. application software
    2. system software
    3. computer language
    4. interpreter

Q14: What will be the output of following code?

int i = 1;

while(i<10){

if(i%2 == 0)

cout<<i<<” “;

i++;

}

  1. 2 4 6 10
  2. 1 3 5 7
  3. 2 4 6 8
  4. 2 4 8 10

Q15: < and > both are ________ operators.

  1. Arithmetic
  2. Relational
  3. Logical
  4. Mathematical
CS201 Final term Past paper
RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular