YOUR SUBJECT CS201 Introduction to ProgrammingChange subject ↗
PRACTICE AT YOUR OWN PACE

CS201 practice questions

Think through the options before revealing the answer. Use the term filter to focus your revision.

86 questions
CS201 · Final-term only#76

While calling function, the arguments are assigned to the parameters from _____________.

  1. A
    left to right
  2. B
    right to left
  3. C
    no specific order is followed
  4. D
    none of the given options.
Show correct answer

Correct answer: A. left to right

Check community answers against your course notes.Question permalink ↗
CS201 · Midterm#75

If a symbolic constant has been defined, it will be an error to define it again.

  1. A
    True
  2. B
    False
Show correct answer

Correct answer: A. True

Check community answers against your course notes.Question permalink ↗
CS201 · Final-term only#74

We can also do conditional compilation with pre-processor directives.

  1. A
    True
  2. B
    False
Show correct answer

Correct answer: A. True

Check community answers against your course notes.Question permalink ↗
CS201 · Final-term only#73

The first parameter of overloaded stream insertion operator is _________ where second parameter is_______

  1. A
    input stream, object of class
  2. B
    object of class, output stream
  3. C
    output stream, object of class
  4. D
    object of class, input stream
Show correct answer

Correct answer: C. output stream, object of class

Check community answers against your course notes.Question permalink ↗
CS201 · Midterm#72

Unary operator implemented as member function takes ____ arguments whereas non-member function takes _____ arguments.

  1. A
    One, zero
  2. B
    Zero, one
  3. C
    One, two
  4. D
    Two, one
Show correct answer

Correct answer: B. Zero, one

Check community answers against your course notes.Question permalink ↗
CS201 · Final-term only#71

Which of the following is the correct C++ syntax to allocate space dynamically for an array of 10 int?
â–º ;
â–º
â–º
â–º

  1. A
    new int(10)
  2. B
    new int[10] ;
  3. C
    int new(10) ;
  4. D
    int new[10];
Show correct answer

Correct answer: B. new int[10] ;

Check community answers against your course notes.Question permalink ↗
CS201 · Final-term only#70

Structure is a collection of ______________ under a single name.

  1. A
    Only Functions
  2. B
    Only Variables
  3. C
    Both Functions and Variables
  4. D
    None of the given options
Show correct answer

Correct answer: B. Only Variables

Check community answers against your course notes.Question permalink ↗
CS201 · Final-term only#69

Which of the following is used with bit manipulation?

  1. A
    Signed integer
  2. B
    Un-signed integer
  3. C
    Signed double
  4. D
    Un-signed double
Show correct answer

Correct answer: B. Un-signed integer

Check community answers against your course notes.Question permalink ↗
CS201 · Final-term only#68

Template class cannot have static variables.

  1. A
    True
  2. B
    False
Show correct answer

Correct answer: B. False

Check community answers against your course notes.Question permalink ↗
CS201 · Final-term only#67

A template function can have different type of arguments.

  1. A
    True
  2. B
    False
Show correct answer

Correct answer: A. True

Check community answers against your course notes.Question permalink ↗