Quiz Space

Java Quiz 1: 26 February 2023 (January 2023 term)

Question 1

+3 marksOne correct option

Match the following terms with their descriptions.

  1. A

    A-4, B-1, C-2, D-3

  2. B

    A-1, B-4, C-3, D-2

  3. C

    A-4, B-2, C-1, D-3

  4. D

    A-2, B-1, C-4, D-3

Question 2

+3 marksOne correct option

Consider the code given below.

java
class Institute{
public void teach() {
System.out.println("Teaches");
}
}
class College extends Institute{
public void sports() {
System.out.println("College sports");
}
public void research() {
System.out.println("College research");
}
}
class University extends College{
public void research() {
System.out.println("University research");
}
}
public class Test{
public static void main(String[] args) {
College obj = new University();
obj.teach(); //LINE 1
obj.sports();
obj.research(); //LINE 2
}
}

Choose the correct option.

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

Question 3

+3 marksOne correct option

Consider the code given below.

java
class Employee{
public final void bonus(){
System.out.println("Employee bonus");
}
}
class TeamManager extends Employee{
public void bonus(){
System.out.println("Team manager bonus");
}
}
class Manager extends TeamManager{
}
public class Example{
public static void main(String[] args){
Manager m = new Manager();
m.bonus();
}
}

Choose the correct option regarding the given code.

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

12 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 Quiz 1 26 Feb 2023 paper

The IIT Madras BS Programming Concepts using Java (Java) Quiz 1 paper sat on 26 Feb 2023, in the January 2023 term: 15 questions for 50 marks in 120 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 Quiz 1 26 Feb 2023 at a glance
TermJanuary 2023 term
SubjectProgramming Concepts using Java
Course codeBSCS2005
Questions15
Marks50
Duration120 min
MCQ11
MSQ4
Official paperIIT M DIPLOMA AN2 EXAM QPD2 26 Feb 2023
Negative markingNo negative marking.
Updated

Same Quiz 1, other subjects

More Java