- Type
- Midterm past paper
- Course
- CS201 Introduction to Programming
- Size
- PDF 171 KB
- Updated
- 23 Oct 2026
You get 3 free files a day on the website. Add the Chrome extensionSign in with the extension for 30 a day.
Preview text
Text from pages 1, 2, 3 of 12. Download the file for all 12 pages.
The #include directive instructs the preprocessor to read and include a file into a source code file. The file name is typically enclosed with < and > if the file is a system provided file, or in quotes if the file is user provided.
Abstract class:
A class that can only be used as a base class for some other class. A class is abstract if it has at least one pure virtual function.
Aggregate:
An array or object of a class with no constructors, no private or protected members, no base classes, and no virtual functions. Also see initializer and initialization.
Alias:
Defining an alias for a structure or built-in type allows use of the alias as if it were a new type. In C, the keyword is typedef. It's a bad idea to alias (have two objects pointing to the same data) unless one of those objects is a temporary variable.
Allocation:
The process of giving memory space to an object. Also see dynamic storage, static storage, and deallocation
Argument:
When calling a function, refers to the actual values passed to the function. Also see parameter.
Array:
An ordered and indexable sequence of values. C++ supports arrays of a single dimension (a vector) or of multiple dimensions.
Assignment:
The process of giving a value to a pre-existing object. Also see copy constructor and initialization.
Base class:
A class that serves as a base for a derived class to inherit members from. Also see
Bit:
A bit is the smallest unit of memory that can be manipulated. It has a binary or boolean value of 0 or 1. Within memory bits are combined to form bytes and words. Depending on its type, a variable in a program is stored in some number of bytes.
Bool:
C++ keyword used to declare a Boolean data type.
Break:
C++ keyword used to specify a statement that is used to break out of a for or while loop or out of a switch statement.
Byte:
A byte is a grouping of eight bits which a computer typically groups as one logical unit. It is usually the smallest addressable unit of memory.
Call by reference:
Passing a pointer to an argument to a function. The function can then change the argument value. Also see call by value.
Call by value:
Passing a copy of an argument to a function. The function cannot then change the argument value. C and C++ use call by value argument passing. But also see pointer and reference, also see call by reference.
Case:
A C++ keyword used to denote an individual element of a switch statement.
Char:
A C++ keyword used to declare an object of character type. Often considered the same as a byte, though it is possible to have multi-byte characters. cin:
In C++ stream I/O, the standard input stream.
Class:
A C++ keyword used to declare the fundamental building block of C++ programs. A class has a tag, members, access control mechanisms, and so on.
Class layout:
The way in which data class members are arranged in a class object
Class member:
A constituent member of a class, such as a data declaration, a function, or a nested class.
Class template:
A template used for generating class types.
Comments:
C++ has C-style comments delimited with /* and */, and new C++-style line-oriented comments starting with //.
Compiler:
A software tool that converts a language such as C++ into a different form, typically
Const:
A C++ keyword used to declare an object as constant or used to declare a constant parameter.
Constructor:
A function called when a class object comes into scope. The constructor is used to initialize the object. See allocation, copy constructor, and destructor.
Related CS201 files
All CS201 files →- CS201 Midterm Past Paper 2 Midterm PDF 437 KB
- CS201 Midterm Important Key Points Updated Midterm PDF 239 KB
- CS201 Midterm Solved MCQs Updated Midterm PDF 437 KB
- CS201 Midterm Solved Quiz 1 2015 Midterm DOCX 20 KB
- CS201 Handouts Set 2 by VUBuddy Handout PDF 14.5 MB
- CS201 Lectures 1-2 Quiz DOCX 289 KB
Get more out of VUBuddy, for free
- Unlimited downloads
- The explanation behind every MCQ answer
- Study offline on slow data
- 30 downloads a day instead of 3
- Sign in and buy Pro Semester here
One Pro Semester membership works in both the extension and the app.