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#56

Structured Query Language is used for ______________

  1. A
    Databases Management
  2. B
    Networks
  3. C
    Writing Operating System
  4. D
    none of the given options
Show correct answer

Correct answer: A. Databases Management

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

Structured Query Language is used for ______________

  1. A
    Databases Management
  2. B
    Networks
  3. C
    Writing Operating System
  4. D
    none of the given options
Show correct answer

Correct answer: A. Databases Management

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

A template function must have

  1. A
    One or more than one arguments
  2. B
    Only one argument
  3. C
    Zero arguments
  4. D
    None of the given options
Show correct answer

Correct answer: A. One or more than one arguments

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

Every class contains _______________.

  1. A
    Constructor
  2. B
    Destructor
  3. C
    Both a constructor and a destructor
  4. D
    None of the given options
Show correct answer

Correct answer: C. Both a constructor and a destructor

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

If we define an identifier with the statement #define PI 3.1415926 then during the execution of the program the value of PI __________.

  1. A
    can not be replaced
  2. B
    None of the given options
  3. C
    Remain constant
  4. D
    can be changed by some operation
Show correct answer

Correct answer: C. Remain constant

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

Classes defined inside other classes are called ________ classes

  1. A
    looped
  2. B
    nested
  3. C
    overloaded
  4. D
    none of the given options.
Show correct answer

Correct answer: B. nested

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

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#49

Heap is constantly changing in size.

  1. A
    True
  2. B
    False
Show correct answer

Correct answer: A. True

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

The first parameter of operator function for << operator,

  1. A
    Must be passed by value
  2. B
    Must be passed by reference
  3. C
    Can be passed by value or reference
  4. D
    Must be object of class
Show correct answer

Correct answer: B. Must be passed by reference

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

What will be the correct syntax to declare two-dimensional array of float data type?

  1. A
    float arr{2}{2} ;
  2. B
    float arr[2][2] ;
  3. C
    float arr[2,2] ;
  4. D
    float[2][2] arr ;
Show correct answer

Correct answer: B. float arr[2][2] ;

Check community answers against your course notes.Question permalink ↗