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 1 subjective questions Foundational Concepts

INT322 — Computing System And Technologies 20 questions with model answers. Write yours first, then compare.

Read the notes Practice MCQs
  1. Question 1 of 20

    Introduce the C and C++ programming languages. Compare their major features and programming paradigms.

  2. Question 2 of 20

    Define data types in C/C++. Explain fundamental, derived, and user-defined data types with examples.

  3. Question 3 of 20

    Distinguish among variables, constants, literals, and symbolic constants in C/C++. Explain their declaration and scope.

  4. Question 4 of 20

    Explain how scanf and printf are used for formatted input and output in C. Include common format specifiers and safety considerations.

  5. Question 5 of 20

    Describe C++ stream-based input and output using cin and cout. Compare them with scanf and printf.

  6. Question 6 of 20

    Explain the working of if, if-else, nested if, and else-if ladders. How can logical operators be used to form compound conditions?

  7. Question 7 of 20

    Compare for, while, and do-while loops. Explain loop control statements and common causes of infinite loops.

  8. Question 8 of 20

    Define a function. Distinguish between function declaration, definition, and call, and explain the role of parameters and return types.

  9. Question 9 of 20

    Compare call by value and call by reference in C++. Write functions that attempt to swap two integers using each method and explain the results.

  10. Question 10 of 20

    Explain recursion using the factorial function. Identify the base case and recursive case, and analyze its time and auxiliary space complexity.

  11. Question 11 of 20

    Explain the fundamental principles of object-oriented programming. Illustrate encapsulation, abstraction, inheritance, and polymorphism.

  12. Question 12 of 20

    Distinguish between struct and class in C++. How do they differ from a C structure?

  13. Question 13 of 20

    Design a C++ class named Rectangle to demonstrate classes, objects, data hiding, and member functions. Explain how objects of the class are used.

  14. Question 14 of 20

    What are constructors and destructors in C++? Explain default, parameterized, and copy constructors, initialization lists, and destruction order.

  15. Question 15 of 20

    Define a data structure. Classify data structures as primitive and non-primitive, static and dynamic, and homogeneous and non-homogeneous.

  16. Question 16 of 20

    Compare linear and non-linear data structures. Describe the principal operations and applications of arrays, linked lists, stacks, queues, trees, and graphs.

  17. Question 17 of 20

    Analyze the time and auxiliary space complexity of linear search and binary search. State the assumptions required for binary search.

  18. Question 18 of 20

    Explain the time-space trade-off with suitable computing examples. Why might an algorithm intentionally use more memory?

  19. Question 19 of 20

    Define Big-O, Big-Omega, and Big-Theta notation formally. Use them to classify .

  20. Question 20 of 20

    Analyze the following C++ function. Determine what it computes and derive its time and auxiliary space complexity.

    C++
    int countPairs(const int a[], int n) {
        int count = 0;
        for (int i = 0; i < n; ++i) {
            for (int j = i + 1; j < n; ++j) {
                if (a[i] == a[j]) {
                    ++count;
                }
            }
        }
        return count;
    }

That's unit 1

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.