Table 8. Similarity recommendation against learner questions.
| User Input | Error type | Intended question | Soft Cosine | Cosine | Jaccard |
|---|---|---|---|---|---|
| No. of Pass (Score) |
No. of Pass (Score) |
No. of Pass (Score) |
|||
| what difference interface | IS | What is the difference between abstract class and interface? | 1(0.63) | 1(0.51) | NF |
| define method in subclass with same name | IS | It is not possible to define a method in the subclass that has the same name same arguments and the same return type. | 1(0.66) | 1(0.5) | NF |
| java not have destroy and how garbage collect | EG | Why does Java not support destructors and how does the finalize method will help in garbage collections? | 2(0.61) | NF | NF |
| how to overload | IS | What is method overloading? Explain with example. | 2(0.6) | NF | NF |
| why main public | IS | Why is main method assigned as static? | 2(0.75) | NF | 2(0.6) |
| object stored reach | EG | When an object is stored are all of the objects that are reachable from that object stored as well? | 1(0.91) | NF | NF |
| what mechanism used for a single thread at a time | EG | What is the mechanism defined by java for the resources to be used by only one thread at a time? | 1(0.59) | 2(0.41) | 1(0.36) |
| applets talk on web page | IS | How can I arrange for different applets on a web page to communicate with each other? | 1(0.57) | NF | 1(0.42) |
| show try catch throw | IS | Write a Java program which illustrates the try catch throw and throws and finally blocks. | 1(0.64) | NF | NF |
| why thread synchronization needed | IS | Describe the need of thread synchronization. How is it achieved in Java programming? Explain with a suitable program. | 2(0.51) | 2(0.33) | 2(0.37) |
| access modifiers in java | IS | Explain access modifiers and access controls at class and package level in Java. | 1(0.58) | NF | 1(0.25) |
| difference between exceptions | IS | What is difference between user defined exceptions and system exceptions? | NF | 1(0.37) | NF |
| inbuilt exceptions in class | IS | Explain with example any three inbuilt exceptions and any three inbuilt methods of exception provided by exception class. | 1(0.51) | NF | NF |
| class extends another class how to handle exception | IS | If my class already extends from some other class then what should I do, if I want an instance of my class to be thrown as an exception object? | 1(0.72) | NF | NF |
| if we do not initialize variables | IS | What happens if you do not initialize an instance variable of any of the primitive types in Java? | NF | NF | NF |
| Inheritance hierarchy in AWT. | EG | Draw the inheritance hierarchy for the frame and component classes in AWT. | 1(0.53) | 1(0.37) | NF |
| which specifier to use while all not interface implement | EG | If you do not implement all the methods of an interface while implementing what specifier should you use for the class? | 1(0.75) | NF | 1(0.5) |
| first value of array elements | IS | What will be the default values of all the elements of an array that are defined as an instance variable? | 1(0.56) | NF | 1(0.33) |
| difference between two types programming language | IS | What is the difference between an object-oriented programming language and object-based programming language? | 1(0.68) | 1(0.41) | NF |
| we change throws when override | EG | Can we modify the throws clause of the superclass method while overriding it in the subclass? | 2(0.55) | NF | NF |
| name of object with own lifecycle | IS | What is it called where object has its own lifecycle and child object cannot belong to another parent object? | 1(0.52) | NF | NF |
| boolean value operators | IS | Which of the operators can operate on a Boolean variable? | 3(0.57) | NF | 1(0.4) |
| From main call and check string palindrome or not | IS | Write a method that checks if a string is a palindrome. Call your method from the main method. | 1(0.57) | NF | 1(0.5) |
| methods String available under Name class some. Buffer | ES | What are the different buffer string methods in Java? | 1(0.62) | 1(0.33) | NF |
| high power file copy | IS | Which streams are advised to use to have maximum performance in file copying? | NF | NF | NF |
| compare different controls for visibility | IS | Explain the different visibility controls and also compare with each of them. | 1(0.54) | 1(0.51) | 1(0.66) |
| use reflection to build array | IS | How to create arrays dynamically using reflection package. | 1(0.59) | NF | NF |
| voice message with playMessage method | EG | Develop a message abstract class which contains playMessage abstract method. Write a different sub-classes like TextMessage VoiceMessage and FaxMessage classes for to implementing the playMessage method. | NF | NF | NF |
| all methods of object class | IS | Explain the different methods supported in Object class with example. | 2(0.53) | 2(0.33) | 2(0.42) |
| special style of text example | EG | How do achieve special fonts for your text? Give example. | 1(0.64) | 1(0.54) | 1(0.42) |
| keep integer overflow | IS | How does Java handle integer overflows and underflows? | 1(0.65) | 1(0.47) | NF |
| thread start initial | IS | When a thread is created and started what is its initial state? | 1(0.56) | 1(0.47) | NF |
| shift operation in short circuit | EG | Explain short circuited operators and shift operators | 1(0.59) | 1(0.31) | NF |
| what are different interface implement | IS | Describe different forms of interface implementation with their syntax declaration. | NF | NF | NF |
| all ways to call method | IS | What are the different ways of calling a static method from a program? | 1(0.52) | NF | NF |
| java program to create person from class | IS | Consider a class person with attributes firstname and lastname. Write a Java program to create and clone instances of the Person class. | 1(0.72) | NF | 1(0.4) |
| vector difference show | EG | How vector is different from array? Illustrate with programming Example. | 2(0.68) | 1(0.33) | NF |
| break statement how different | EG | Write the difference between break and continue statements in Java. | 1(0.56) | 1(0.4) | 2(0.67) |
| more than one inheritance support | EG | What is inheritance? Is multiple inheritance supported by Java? | 1(0.52) | 1(0.31) | 2(0.33) |
| applet application program | IS | What is an applet? How do applets differ from an application program? | 1(0.82) | NF | 1(0.5) |
| import class in program | EG | How can class be imported from a package to a program? | 1(0.76) | NF | 1(0.4) |
| can interface be used in class | IS | Is it possible to use few methods of an interface in a class? If so, how? | 1(0.66) | NF | NF |
| monitor procedure for many | IS | What is the procedure to own the monitor by many threads? | 1(0.64) | 1(0.44) | 1(0.33) |
| package import auto | IS | Does java.lang package is automatically imported into all programs. | 2(0.72) | 1(0.47) | NF |
| what is architecture independence | IS | Explain architecture neutral & platform independent. | 2(0.51) | NF | 2(0.33) |
| important classpath variable | EG | Write an importance of classpath variable. | 1(0.73) | NF | 1(0.4) |
| need to import lang package | EG | Do I need to import Java lang package any time? Why? | 1(0.81) | NF | 1(0.66) |
| what is serial | EG | Explain serialization? | 1(0.68) | NF | NF |
| what locale class | IS | What is the significance of Locale class? | 1(0.86) | NF | NF |
| what are the alternatives to inheritance | EG | Mention some alternatives to inheritance. | 2(0.55) | NF | NF |
| is the method what finalize? of use | ES | Explain the use of finalize method | 1(0.86) | 1(0.57) | 1(0.6) |
| each of control for what the is use structure | ES | What is the use of each control structure? | 1(0.86) | 1(0.5) | 1(0.6) |
| any give 4 ++ C and Java differences. between | ES | Give any 4 differences between Java and C++. | 1(0.6) | NF | 1(0.25) |
| Of what handle can the are Java programs types | ES | What are the different types of program Java can handle? | NF | NF | 1(0.42) |
| What platform is independency | ES | What is platform independency? | 1(0.81) | 1(0.57) | 1(0.5) |
| in of symbols comment types different are java What the | ES | What are the different types of comment symbols in Java | 1(0.57) | NF | 1(0.5) |
| How is a constant in Java defined | ES | How is a constant defined in Java? | 1(0.81) | 1(0.47) | 1(0.4) |
| use keyword is the what of final | ES | What is the use of final keyword? | 1(0.86) | NF | 1(0.6) |
| the of is control structure use what each for | ES | What is the use of each control structure? | 1(0.86) | 1(0.5) | 1(0.6) |
| constants constants static and compare final | ES | Compare static constants and final constants | 1(0.53) | NF | 1(0.5) |
| need methods for is the what static | ES | What is the need for static method? | 1(0.72) | 1(0.37) | 1(0.6) |
| platform supports how java independency | ES | How Java supports platform independency? | 1(0.72) | 1(0.51) | 1(0.5) |
| to important java why is internet | ES | Why Java is important to the internet? | 1(0.54) | NF | 1(0.16) |
| is internet to java important why | ES | Why Java is important to the internet? | 1(0.57) | NF | 1(0.16) |
| Application and Applet Compare | ES | Compare applet and application | NF | NF | NF |
| difference copy with clone | EG | Differentiate cloning and copying. | 2(0.59) | 1(0.35) | NF |
| pros and cons of static nested class | EG | Write the advantages and disadvantages of static nested class. | 1(0.64) | 2 (0.32) | 1(0.37) |
| what fields method | EG | Explain about Final class Fields Methods. | NF | NF | NF |
| package access specifier | EG | What do you understand by package access specifier? | 1(0.63) | 1(0.51) | 1(0.33) |
| priority in garbage collector | IS | Garbage collector thread belongs to which priority? | 1(0.73) | 1(0.67) | 1(0.6) |
| circle filled when right click | IS | Develop Java program that changes the color of a filled circle when you make a right click. | 1(0.64) | 1(0.56) | 1(0.2) |
| explain assertion use | IS | What is an assertion? What is its use in programming? | NF | NF | NF |
| array fill | IS | Give the syntax for array fill operation. | 1(0.63) | NF | 1(0.4) |
| method to demon thread | IS | Which method is used to create the demon thread? | 1(0.51) | NF | NF |
| what class on read side byte stream | EG | Name the filter stream classes on reading side of byte stream? | 1(0.71) | NF | NF |
| what is the use of input stream | EG | What is the functionality of sequence input stream? | 1(0.63) | NF | NF |
| see if file is hidden or not | EG | How to check if a file is hidden? | 1(0.81) | 1(0.43) | 1(0.5) |
| when was the file last modified | EG | How to get file last modified time? | 1(0.7) | 1(0.5) | 1(0.42) |
| use of encapsulation | EG | What is the primary benefit of encapsulation? | NF | NF | NF |
| most used algorithm in collection | IS | What are common algorithms implemented in Collections Framework? | 1(0.57) | 1(0.36) | NF |
| how is iterator designed | EG | What is the design pattern that iterator uses? | NF | NF | NF |
| component size preferred | IS | What is the preferred size of a component? | 1(0.86) | 1(0.86) | 1(0.75) |
| read each line of file | EG | How to read file content line by line in Java? | 1(0.81) | 1(0.63) | NF |
| delete a file that is temporary | EG | How to delete temporary file in Java? | 1(0.86) | 1(0.61) | NF |
| calculate factorial of a number | IS | Java program to find factorial of a number using loops | 1(0.51) | 1(0.33) | 1(0.25) |
| thread priorities | IS | Discuss about thread groups and thread priorities. | 1(0.75) | NF | NF |
| java programming | IS | Explain Java programming environment. | 1(0.5) | NF | NF |
| what are lexical issues | EG | Discuss the lexical issues of Java. | NF | NF | NF |
| data type used for arithmeic operators | EG | Which data type can be operands of arithmetic operators? | NF | 1(0.36) | NF |
| compound assign | IS | What are compound assignment operators? | 1(0.56) | 1(0.4) | 1(0.25) |
| use bitwise in boolean | EG | Can bitwise operators be used in Boolean operations? | 1(0.66) | 1(0.44) | NF |
| order for call awt | EG | What is the sequence for calling the methods by AWT for applets? | NF | NF | NF |
| cast object explain | EG | What do you understand by casting an object? Explain with the example | 1(0.72) | NF | NF |
| find size of object | IS | Does Java provide any construct to find out the size of an object? | 1(0.7) | NF | NF |
| required for try to follow catch | EG | Is it necessary that each try block be followed by a catch block? | 1(0.52) | 1(0.42) | 1(0.33) |
| what is precedence rule | IS | Explain precedence rules and associativity concept | 1(0.58) | NF | NF |
| type upgrade in method overloading | EG | What type promotion has to do with method overloading? | NF | NF | NF |
| explain two types of polymorphism | IS | What is run time polymorphism and compile time polymorphism? | 1(0.57) | NF | NF |
| explain blockingqueue | EG | What do you understand by BlockingQueue? | 1(0.64) | NF | NF |
| java and internet | IS | Why java is important to the Internet | 1(0.81) | 1(0.66) | 1(0.66) |
Note:
IS, insufficient information; EG, grammatical error; ES, sequential error; NF, not found.