Quiz Space

Programming Concepts using Java · Quiz 1 · 13 Jul 2025 · May 2025 term

Question 12: Which of the following statements correctly describe int…

Question 12

+6 marksOne or more correct options

Which of the following statements correctly describe interface and specification in software components?

Select all that apply.

  1. A

    An interface includes function signatures, arguments, and return types.

  2. B

    Specification refers to the intended input-output behavior of the component.

  3. C

    Interface helps describe how a component is implemented internally.

  4. D

    A good specification language should balance abstraction and detail.

Show answer

Correct answers

  • A

    An interface includes function signatures, arguments, and return types.

  • B

    Specification refers to the intended input-output behavior of the component.

  • D

    A good specification language should balance abstraction and detail.

Question 12 of 15 in the IIT Madras BS Programming Concepts using Java (Java) Quiz 1 paper sat on 13 Jul 2025, in the May 2025 term (IIT M DIPLOMA AN EXAM QDD2 13 July 2025). It carries 6 marks.

More questions from this paper

  1. Q1Consider the following Java program. When the call stack reaches its maximum depth, which method will be at the top of …
  2. Q2Consider the Java code below. Choose the correct option.
  3. Q3Consider the Java code given below. Choose the correct option to be filled in place of LINE 1 so that the output is: Na…
  4. Q4Consider the Java code given below: What will the output be?
  5. Q5Consider the Java program below. Choose the correct option to fill in place of the CODE BLOCK so that the output is:
  6. Q6Consider the Java code given below. Identify the appropriate option to fill in place of LINE 1 such that the output is:
  7. Q7Consider the Java code given below. Choose the correct option.
  8. Q8Consider the code given below. Identify the appropriate statement to fill in the blank at LINE 1, such that the output …
  9. Q9Consider the Java code given below. What will the output be?
  10. Q10Consider the following Java code. Choose the correct option.
  11. Q11Consider the Java code given below. Choose the correct option for LINE 1 such that the program generates the following …
  12. Q13Which among the following statements is/are true about activation records?
  13. Q14Consider the Java code given below. Choose the correct option(s) to fill in the CODE SEGMENT so that the output is: Mal…
  14. Q15Consider the Java code given below. Which of the following statements are correct?