What level of abstraction is a c program what is the


Assignment

1. What level of abstraction is a C++ program?

2. What is the function of a compiler?

3. What are the attributes of a C++ variable?

4. In C++, what it the difference between a global variable and a local variable?

5. What is the C++ memory model?

6. What is a stack?

7. When a function executes in C++, what is the order of allocation on the runtime stack?

8. When a function terminates in C++, deallocation from the run time stack takes place in what order?

9. What are two kinds of functions in C++?

10. In C++, main() is a function. What does main() return? What does the operation system do with this return value?

11. What is the collection of all the items pushed onto the run-time stack called?

12. Discuss the difference between Call-By-Reference parameters and Call-By-Value parameters?

13. What is the definition of recursion?

14. What did Bjarne Stroustrup develop?

15. What is allocation on the heap known as?

16. Structures are a key data abstraction in C++. What do they allow the programmer to do?

17. LIFO is the nature of the run-time stack. What does LIFO stand for?

18. How does a recursive function end?

19. What is a linked data structure?

20. What is the Fibonacci sequences to 20 places?

2.1 a, b, c

2.2c (There are four parts)

? Part 1) Draw the call tree for the call statement from the main program.
? Part 2) How many times is the function called?
? Part 3) What is the maximum number of stack frames on the run-time stack during the execution,including main).
? Part 4) In what order does the program make the calls and returns.

2.5b (There are three parts)
? Part 1) Draw the call tree for the Fibonacci number
? Part 2) How many time is fib called?
? Part 3) What is the maximum number of stack frames allocated on the run-time stack?

2.8(a and b)

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: What level of abstraction is a c program what is the
Reference No:- TGS02648569

Expected delivery within 24 Hours