The document discusses key concepts in object-oriented programming and Java.
It contains multiple choice questions about classes, objects, attributes, methods, encapsulation, inheritance, polymorphism, and other fundamental OOP and Java topics.
The questions cover topics such as the difference between object code and bytecodes, the role of classes in creating objects, how attributes represent an object's state, features that make Java platform independent like bytecodes, the differences between OOP and POP, and more.
The document discusses key concepts in object-oriented programming and Java.
It contains multiple choice questions about classes, objects, attributes, methods, encapsulation, inheritance, polymorphism, and other fundamental OOP and Java topics.
The questions cover topics such as the difference between object code and bytecodes, the role of classes in creating objects, how attributes represent an object's state, features that make Java platform independent like bytecodes, the differences between OOP and POP, and more.
The document discusses key concepts in object-oriented programming and Java.
It contains multiple choice questions about classes, objects, attributes, methods, encapsulation, inheritance, polymorphism, and other fundamental OOP and Java topics.
The questions cover topics such as the difference between object code and bytecodes, the role of classes in creating objects, how attributes represent an object's state, features that make Java platform independent like bytecodes, the differences between OOP and POP, and more.
2.Which of the following is known also as object code?
(1 Point) The program file containing the actual instructions in Java. The output of the compiler after it processes source code. The bytecodes we get after compiling the source code using Javac compiler None of these 3.The blueprint from which objects are created in Java is known as- (1 Point) objectifier Interface Class Language 4.The object is called an __________ of a class. (1 Point) physical entity instance property None 5.A state of an object is represented in software terms by- (1 Point) characteristics attributes variable method 6.The feature which makes Java program platform independent- (1 Point) native executable code WORA byte code object code 7.POP emphasizes on _______ while OOP emphasizes on _________ (1 Point) data,code code,data program,information None 8.Class is a ________ entity (1 Point) logical actual Both a and b None 9.____________ refers to the act of representing essential features without including background details. (1 Point) data ridding data hiding data abstraction None of the above 10.The ________________ principle of Java prevents accidental or intentional changes. (1 Point) Inheritance polymorphism encapsulation data hiding 11.Reducing code duplication means- (1 Point) reusability of code code redundancy code manipulation None 12._________ converts source code to byte code. (1 Point) JIT compiler JVM Javac None 13.Small programs that are embedded in web pages are- (1 Point) standalone applications internet applications internet applets API 14.Message passing makes the programs___________ (1 Point) flexible redundant dynamic Both a and c 15.long a=890765L; int b=(int)a; System.out.println(a+"\t"+b); (1 Point) compiling error 890765L 890765 890765 890 890765 890765 16.int a= 80;int b=--a/++a*++a%--a;System.out.println(a+""+b); (1 Point) 80 800 80 0 runtime error