Notice: Due to an ongoing migration of our storage and publishing system, material requested since last month will not be uploaded for the time being, and new requests are paused. All existing notes remain available.

Unit 4 subjective questions Fundamentals of Programming Languages

CSE357 — Combinatorial Studies 20 questions with model answers. Write yours first, then compare.

Read the notes Practice MCQs
  1. Question 1 of 20

    Compare and contrast C, C++, and Java with respect to programming paradigms, memory management, and platform dependency.

  2. Question 2 of 20

    Explain the concept of Pointers in C/C++. How is the address-of operator (\&) different from the dereference operator (*)?

  3. Question 3 of 20

    Define Pointer Arithmetic. If an integer pointer holds the address and the size of an integer is 4 bytes, what will be the value of ? Explain the calculation.

  4. Question 4 of 20

    Describe the four distinct Storage Classes in C/C++ and their scope, lifetime, and default initial values.

  5. Question 5 of 20

    Differentiate between a Class and a Structure in the context of C++.

  6. Question 6 of 20

    Explain the four pillars of Object-Oriented Programming (OOP).

  7. Question 7 of 20

    Discuss the concept of Constructors and Destructors in C++. When are they invoked?

  8. Question 8 of 20

    Compare Call by Value and Call by Reference with appropriate examples.

  9. Question 9 of 20

    What is Binding? Distinguish between Static Binding and Dynamic Binding.

  10. Question 10 of 20

    Explain the difference between Stack and Heap memory in the context of OOP languages.

  11. Question 11 of 20

    How is dynamic memory management handled in C++ versus C? Compare new/delete with malloc/free.

  12. Question 12 of 20

    What is Garbage Collection in Java? Briefly explain the concept of 'Reachability'.

  13. Question 13 of 20

    Explain the concept of Virtual Functions in C++. Why are they necessary for runtime polymorphism?

  14. Question 14 of 20

    What is the this pointer in C++? What is its significance?

  15. Question 15 of 20

    Distinguish between Shallow Copy and Deep Copy in the context of memory handling.

  16. Question 16 of 20

    What is a Memory Leak? Provide a C++ code snippet that would cause a memory leak and explain how to fix it.

  17. Question 17 of 20

    Define Access Specifiers in OOP. Explain public, private, and protected.

  18. Question 18 of 20

    What is a Reference in C++? How does it differ from a pointer regarding initialization and nullability?

  19. Question 19 of 20

    Explain the concept of Friend Functions in C++. Why does it seemingly violate encapsulation, and when is it useful?

  20. Question 20 of 20

    Derive the logic for Pass by Address (Pointer) in C by writing a function to swap two integers. Explain the memory operations involved.

That's unit 4

Long answers stick best when they're tested again soon. Run the MCQs on this unit, then come back to the questions you found hardest.