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 · Midterm#16

C is widely known as development language of _______ operating system.

  1. A
    Linux
  2. B
    Windows
  3. C
    Unix
  4. D
    Mac OS
Show correct answer

Correct answer: C. Unix

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

When an array of object is created dynamically then there is no way to provide parameterized constructors for array of objects.

  1. A
    True
  2. B
    False
Show correct answer

Correct answer: A. True

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

Overloaded delete operator function takes the same parameter as an argument returned by new operator function.

  1. A
    True
  2. B
    False
Show correct answer

Correct answer: A. True

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

The stream objects cin and cout are included in which header file?

  1. A
    iostream.h
  2. B
    fstream.h
  3. C
    istream.h
  4. D
    ostream.h
Show correct answer

Correct answer: A. iostream.h

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

Which of the following is NOT a preprocessor directive?

  1. A
    #error
  2. B
    #define
  3. C
    #line
  4. D
    #ndefine
Show correct answer

Correct answer: D. #ndefine

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

Which of the following function is used to increase the size of already allocated memory chunk?

  1. A
    malloc
  2. B
    calloc
  3. C
    realloc
  4. D
    free
Show correct answer

Correct answer: C. realloc

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

When a value is referred by a normal variable then it is known as,

  1. A
    Direct Reference
  2. B
    Indirect Reference
  3. C
    Partial Reference
  4. D
    Proper Reference
Show correct answer

Correct answer: A. Direct Reference

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

Operator overloading can be performed through__________________.

  1. A
    Classes
  2. B
    Function
  3. C
    Operators
  4. D
    Reference
Show correct answer

Correct answer: B. Function

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

Reference Value Type Data The code is written to __________ the program.
â–º
â–º
â–º
â–º

  1. A
    implement
  2. B
    design
  3. C
    analysis
  4. D
    none of the given options
Show correct answer

Correct answer: A. implement

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

A Pointer is a special variable that contain

  1. A
    Data values
  2. B
    Memory Address
  3. C
    Both data and values
  4. D
    None of the given option
Show correct answer

Correct answer: B. Memory Address

Check community answers against your course notes.Question permalink ↗