Question: 1. Explain the difference between Procedural Programming and Object Oriented Programming. Procedural programming is divided into small pieces of functions, and it does not have
1. Explain the difference between Procedural Programming and Object Oriented Programming.
Procedural programming is divided into small pieces of functions, and it does not have data hiding, which it is not very secure. For example, C.
While Object Oriented Programming is divided into small pieces of objects, and having data hiding, so it is more secure. For example, C++.
2.Explain traversal. Explain iteration.
How is traversal related to data structures and strings.? How does traversal relate to iteration?
Why is it important for data structures?
3. a) Using || to connect multiple Boolean expressions, does it lessen or widen the scope of the Boolean Expression returning a true value? Explain in as much detail as possible.
b) Using && to connect multiple Boolean expressions, does it lessen or widen the scope of the Boolean Expression returning a true value? Explain in as much detail as possible.
4. Please define source code, machine code, and compiler. Describe in your own words how the 3 are related to creating programs in C++.
5.How are strings and arrays similar and how do they differ?
Please describe the characteristics of the two data structures. Make sure to use your own words.
6. Describe void and return functions. How are void and return functions similar? How do functions differ?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
