Midterm Review Questions
From Maryville College CS Wiki
< Intro CS II | spring2020
Revision as of 10:09, 2 March 2020 by Robert.lowe (talk | contribs) (Created page with "{{DISPLAYTITLE:Midterm Review Questions}} # How do you declare a main function in C++? # How do you declare an integer, double, character, and string variable in C++? # What...")
- How do you declare a main function in C++?
- How do you declare an integer, double, character, and string variable in C++?
- What is an array?
- How does a C++ string differ from a character array?
- An object contains what two things?
- What does the public access modifier do?
- What does the private access modifier do?
- What is the relationship between classes and objects in C++?
- How many constructors can a class have?
- How do you invoke the constructor on a class?
- What are pointers?
- How can you dynamically allocate an int, double, or character?
- How can you dynamically allocate an array of a given type?
- How can you pass constructor arguments into a class when dynamically allocating an object?
- How do you deallocate objects/primitive typed variables?
- How do you deallocate arrays?
- What does the new operator do?
- What does the delete operator do?
- What are valid arguments to the delete operator?
- What is the relationship between pointer arithmetic and array indexing?
- What is FLTK?
- What is a widget?
- How do you create a window in FLTK?
- How do you add widgets to a window in FLTK?
- How do you finish and show a window in FLTK?
- What is a callback?
- What is inheritance?
- What is polymorphism?
- Briefly describe what a virtual function?
- An abstract class contains what kind of function?
- How does polymorphism get used when creating custom widgets in FLTK?
- Be able to write code that declares a class and creates an object of that class.
- Be able to construct a program which creates and shows a small FLTK window with a couple of widgets. (It will include nothing more than the Fl_Window, Fl_Button, Fl_Output, and Fl_Input widgets)