placeholder image to represent content

OOPs with JAVA Quiz-III

Quiz by S. F. Rodd

Our brand new solo games combine with your quiz, on the same screen

Correct quiz answers unlock more play!

New Quizalize solo game modes
12 questions
Show answers
  • Q1
    Following is not an attribute of JAVA
    Inheritance
    Platform independent
    Encapsulation
    Polymorphism
    30s
  • Q2
    The command line argument is
    An array of string objects
    array of integers
    String
    float
    30s
  • Q3
    Reference type objects are stored in
    Memory
    Heap
    Hard disk
    Stack
    30s
  • Q4
    Purpose of Encapsulation is
    Development time
    Reduce debugging time
    None of these
    Software Reuse
    30s
  • Q5
    The main purpose of Inheritance is
    Code Re usability
    Catch errors
    Easier debugging
    Provide Uniform interfaces
    30s
  • Q6
    The command to pass, two pass two command line arguments - "Ajay" "Vijay" to a java program myTest is
    java MyTest Ajay, Vijay
    javac myTest Ajay Vijay
    java MyTest.java Ajay Vijay
    java myTest Ajay Vijay
    30s
  • Q7
    If s1 and s2 are two reference variables and if s1=new String("Jhon"); and s2=new String("John"); the if(s1==s2) evaluates to
    false
    true
    30s
  • Q8
    To define constant in Java we use
    const
    constant
    #define
    final
    30s
  • Q9
    To find length of string, the method used is
    len()
    length()
    size()
    getSize()
    30s
  • Q10
    The default pointer associated with any object of a class is
    reference
    constructor
    pointer
    this
    30s
  • Q11
    Array name is a
    value type
    reference type
    30s
  • Q12
    The keyword to access the java class libraries is
    package
    include
    classlibrary
    import
    30s

Teachers give this quiz to your class