
OOPs with JAVA Quiz-III
Quiz by S. F. Rodd
Feel free to use or edit a copy
includes Teacher and Student dashboards
Measure skillsfrom any curriculum
Measure skills
from any curriculum
Tag the questions with any skills you have. Your dashboard will track each student's mastery of each skill.
With a free account, teachers can
- edit the questions
- save a copy for later
- start a class game
- automatically assign follow-up activities based on students’ scores
- assign as homework
- share a link with colleagues
- print as a bubble sheet
12 questions
Show answers
- Q1Following is not an attribute of JAVAInheritancePlatform independentEncapsulationPolymorphism30s
- Q2The command line argument isAn array of string objectsarray of integersStringfloat30s
- Q3Reference type objects are stored inMemoryHeapHard diskStack30s
- Q4Purpose of Encapsulation isDevelopment timeReduce debugging timeNone of theseSoftware Reuse30s
- Q5The main purpose of Inheritance isCode Re usabilityCatch errorsEasier debuggingProvide Uniform interfaces30s
- Q6The command to pass, two pass two command line arguments - "Ajay" "Vijay" to a java program myTest isjava MyTest Ajay, Vijayjavac myTest Ajay Vijayjava MyTest.java Ajay Vijayjava myTest Ajay Vijay30s
- Q7If s1 and s2 are two reference variables and if s1=new String("Jhon"); and s2=new String("John"); the if(s1==s2) evaluates tofalsetrue30s
- Q8To define constant in Java we useconstconstant#definefinal30s
- Q9To find length of string, the method used islen()length()size()getSize()30s
- Q10The default pointer associated with any object of a class isreferenceconstructorpointerthis30s
- Q11Array name is avalue typereference type30s
- Q12The keyword to access the java class libraries ispackageincludeclasslibraryimport30s