Question 1
Match the following terms with their descriptions.
A-4, B-1, C-2, D-3
A-1, B-4, C-3, D-2
A-4, B-2, C-1, D-3
A-2, B-1, C-4, D-3
Match the following terms with their descriptions.
A-4, B-1, C-2, D-3
A-1, B-4, C-3, D-2
A-4, B-2, C-1, D-3
A-2, B-1, C-4, D-3
Consider the code given below.
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.
Consider the code given below.
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.
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.
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.
| Feature | Java Quiz 1 26 Feb 2023 at a glance |
|---|---|
| Term | January 2023 term |
| Subject | Programming Concepts using Java |
| Course code | BSCS2005 |
| Questions | 15 |
| Marks | 50 |
| Duration | 120 min |
| MCQ | 11 |
| MSQ | 4 |
| Official paper | IIT M DIPLOMA AN2 EXAM QPD2 26 Feb 2023 |
| Negative marking | No negative marking. |
| Updated |