Difference between ipo and event driven programming

Assignment Help Basic Computer Science
Reference no: EM13966043

Some typical questions:

Suppose you have a class defined as follows:

class Bore
{
public:
Bore();
Void print_stuff();
protected:
int a;
int b;
};

1. What is the difference between using "protected:" above versus using "private:?"

2. Define a new class BoreIng that is derived from Bore such that:
The class BoreIng has a new public member function deep that takes an input integer c and returns a Boolean test whether a*c is the same as b; (So show both the interface and implementation.)

3.

a. Explain what "late-binding" means and what does it have to do with "polymorphism? What does it have to do with "virtual functions?" What is a "virtual function?" Give an example.

b. Explain what we mean by redefining a virtual function. Give an example.

4. Suppose you have a binary tree with 600 nodes. Each node has 82 member variables named field1,field2, ... field80, left, right. The field left is a pointer to the next tree entry down left and right points at the next tree pointer right. (A NULL value means there is no next node on that side. A pointer variable named root points at the first entry (the root node). Suppose the root node has two children. You decide it is time to make some changes. You want to change the left child of root to be the new root. It keeps both its children. You then want to put old root and its children back in the tree where they would go to keep it ordered. How can you do that?

5. Consider the binary tree of question 4. Suppose field1 is a unique key and that the tree was built in field1 order. Write a functionto search the tree recursively for a value of any type to match field1. Have your function return that record's field2 presumed to be some positive integer. Return a negative if no record has the input value for field1.

6. Explain the difference between IPO and Event driven programming?

7. Explain what a message map does.

8. Explain what we mean by a document and a view in a Windows program.

9. Sketcher is a MDI application, not an SDI application. What's that mean? What can we have M of?

10. To add new menu items to an MFC application, you start by going to what view? So the menus are stored in what kind of files?

11. You have a linked list of 50,000 nodes sorted by customer number. You write a program to search for nodes by customer number. On average, how many comparisons do you expect you'll need to use to find an entry. (Explain). Answer the same question then for a balanced binary tree and explain that.

12. In a Windows project, you have a button that on the screen has the word Hello showing on it. You want to set it so if the button is clicked, the word Goodbye would appear instead on it. How could you do that?

13. (We've talked a lot about sorting algorithms. Explain (in words your roommate, an English major), the difference between bubble and merge sorts. List (in O notation), the complexity of each.

Reference no: EM13966043

Questions Cloud

Write a summary paper by watching the movie the avangers : Write a summary paper by watching the movie "the avangers" and point out why it is related with the theme of characters identity and personhood in the movie.
Heart transplant and patient age : The following data represent survival time in days after a heart transplant and patient age in years at the time of transplant for 10 randomly selected patients.
Huron company produces a commercial cleaning compound : Huron Company produces a commercial cleaning compound known as Zoom. The direct materials and direct labor standards for one unit of Zoom
Describe each of the four forces of evolution : In order to properly execute this assignment you are going to need to cover a number of concepts. In general you should describe each of the Four Forces of Evolution, to a degree that lets me know that you understand each of them.
Difference between ipo and event driven programming : To add new menu items to an MFC application, you start by going to what view? So the menus are stored in what kind of files?
What are requirements to sit for the pmp exam : What are requirements to sit for the PMP Exam (both paper and online methods)- Discussion on the amount of experience you must have to sit for the exam
What is your first memory of literacy acquisition : What is your first memory of literacy acquisition? What is your favorite memory of literacy acquisition? Who was/is your favorite teacher and why? What struggles do you have with literacy?
Find the least-squares line appropriate : (a) Find the least-squares line appropriate for these data. (b) Plot the points and graph the line as a check on your calculations. (c) Calculate the 95% con?dence intervals for β0 and β1, respectively.
What psychological tests do they use to assess for alzheimer : Why does ADHD fall under the Neurocognitive Disorders section of the DSM 5? What psychological tests do they use to assess for Alzheimer's

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Suggest the maximum number of slides

Suggest the maximum number of slides

  How many extra bits per second does the sender send

In a digital transmission, the sender clock is 0.2 percent faster than the receiver clock. How many extra bits per second does the sender send if the data rate is 1 Mbps?

  What is the modern method for separating style

What is the modern method for separating style and structure when constructing a web page? How can you get a graphic image on the web stored on the hard disk of your PC

  Find on what day a specific date falls

1: Find on what day a specific date falls. 2: Display the twelve month calendar for a given year. Option: Depending on the given option, the program asks user to enter valid mm dd yyyy or just yyyy and call the necessary functions to print out the..

  Information culture have negative impact on apple-s business

Which of the given information cultures would have the greatest negative impact on Apple's business? Information-functional culture, Information-sharing culture.

  Write subroutine in marie assembly that multiplies two value

Write a subtoutine in MARIE assembly that multiplies two values where the arguments for this subroutine are two pointers (each pointer pointing to a value). The routube, multiply (a,b), performs *a x *b where a's value is the address storing the valu..

  Draw a pda for the language

Draw a PDA for the language L over {0,1} consisting of strings with an equal number of 0's and 1's. So 010011 would be in this language. Next draw a DFA recognizing 0?1?. Use the algorithm from class to draw a PDA for the intersection of these two..

  Create a hierarchy chart depicting the chosen situation

Define the problem and the current need in the given situation. Create a hierarchy chart depicting the chosen situation.

  Write organizational factors for benefits of new information

Write three organizational factors which can prevent a firm in completely realizing benefits of new information system, and give examples for each.

  Describe von neumann architecture

Computer architecture is the combination of software and hardware that is organized in such a fashion as to deliver the machine's intended performance characteristics. Describe Von Neumann architecture and explain why it is important

  Design a case structure that tests the month variable

Design a case structure that tests the month variable and does the following

  Normally distributed with a population standard deviation

The heights were recorded for a Simple Random Sample of 270 freshmen. The mean of this sample was 66.5 inches. The heights are known to be Normally Distributed with a population standard deviation of 5.1 inches. Round answers to one decimal plac..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd