Quiz Space

Java End Term: 1 September 2024, Set QDF3 (May 2024 term)

Question 1

+4 marksOne correct option

Consider the Java code given below.

java
class Oven {
public void heatingMethod() {
System.out.println("Standard heating");
}
public void capacity() {
System.out.println("Standard capacity");
}
}
class Microwave extends Oven {
public void heatingMethod() {
System.out.println("Microwave heating");
}
}
class ConvectionOven extends Oven {
public void heatingMethod() {
System.out.println("Convection heating");
}
public void capacity() {
System.out.println("Large capacity");
}
}
public class Test {
static void show(Oven[] ovens) {
for (int i = 0; i < ovens.length; i++) {
ovens[i].heatingMethod();
ovens[i].capacity();
}
}
public static void main(String[] args) {
Oven[] ovens = {new Microwave(), new ConvectionOven()}; // LINE 1
show(ovens);
}
}

Choose the correct option.

  1. A
  2. B
  3. C
  4. D

Question 2

+4 marksOne correct option
  1. A
  2. B
  3. C
  4. D

Question 3

+4 marksOne correct option
  1. A
  2. B
  3. C
  4. D

20 more questions in this paper

Sign in with Google — it is free — to see every question with its answer and explanation, practise it in learning mode, or take it as a timed mock test.

More on the Java End Term 1 Sept 2024 Set QDF3 paper

The IIT Madras BS Programming Concepts using Java (Java) End Term paper sat on 1 Sept 2024, in the May 2024 term, set QDF3: 23 questions for 100 marks in 180 minutes. The first 3 questions are below. Sign in with Google — it is free — to see the whole paper with its answers and explanations, in learning mode or as a timed mock test.

FeatureJava End Term 1 Sept 2024 Set QDF3 at a glance
TermMay 2024 term
SubjectProgramming Concepts using Java
Course codeBSCS2005
Questions23
Marks100
Duration180 min
MCQ18
MSQ5
Official paperIIT M FOUNDATION DIPLOMA AN EXAM QDF3 01 Sep 2024
Negative markingNo negative marking.
Updated

Other sets that day

Same End Term, other subjects

More Java