Question 1
A-V, B-IV, C-I, D-VI
A-VI, B-II, C-III, D-V
A-V, B-II, C-I, D-VI
A-VI, B-IV, C-III, D-V
A-V, B-IV, C-I, D-VI
A-VI, B-II, C-III, D-V
A-V, B-II, C-I, D-VI
A-VI, B-IV, C-III, D-V
Consider the Java code given below.
1 interface Transferable{2 public void transfer();3 }4 interface Receivable{5 public void receive();6 public default void sanityCheck() {7 System.out.println("Checks receipt details");8 }9 }10 class BankAccount implements Transferable, Receivable{11 public void transfer() {12 System.out.println("Transfers money");13 }14 }Choose the correct option
Consider the Java code given below.
class Tree{ String name; String scientificName; int avg_height; public Tree(String n, String sn, int h){ name = n; scientificName = sn; avg_height = h; } ***---------------*** * CODE SEGMENT * ***---------------***}public class Test{ public static void main(String[] args){ Tree t = new Tree("Neem", "Azadirachta indica", 20); System.out.println(t); }}Choose the correct option to fill the CODE SEGMENT so that the output is:
Neem:Azadirachta indica:20
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 5 Jun 2022, in the May 2022 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 5 Jun 2022 at a glance |
|---|---|
| Term | May 2022 term |
| Subject | Programming Concepts using Java |
| Course code | BSCS2005 |
| Questions | 15 |
| Marks | 50 |
| Duration | 120 min |
| MCQ | 12 |
| MSQ | 3 |
| Official paper | IIT M DIPLOMA QUIZ1 EXAM QPE1 05 Jun 2022 IBA |
| Negative marking | No negative marking. |
| Updated |