Quiz 1 is designed to explore the introductory concepts of C++
Quiz 1 contains multiple choice or short answer problems and one simple programing question to give you practice programing in the CBTF. You will have 50 minutes to complete this quiz.
Topics Covered
Topics from lecture:
- Classes in C++
- Public members functions
- Private helper functions
- Private variables
- Constructors
- Custom constructors (default and non-default)
- Namespaces in C++
- Creating a class that is part of a namespace (eg:
Cube
is part of the cs225
namespace)
- Using a class from a namespace (eg:
cs225::Cube
)
- Purpose and usefulness of namespaces
- Variables
- Four properties: name, type, location (in memory), and value
- Primitive vs. user-defined
- Memory
- Indirection in C++:
- Reference variables
- Pointers
- Differences and trade-offs between each type
- Stack memory
- Heap memory
- Functions: Calling and Returning
- Pass by value, by reference, and by pointer
- Return by value, by reference, and by pointer
Assignments referenced:
- lab_intro
- lab_debug
- mp_intro
Points:40
Registration: Thursday, January 23
Start: Friday, February 07
End: Monday, February 10