Industry-relevant training in Business, Technology, and Design
Fun games to boost memory, math, typing, and English skills
Comprehensive mock test on Programming concepts, Web Development, and Database Management. Features coding problems and theoretical questions.
Duration
30 min
Questions
30
Marking
Negative
What is the basic difference between a class and an object in object-oriented programming?
Which of the following defines the state of an object in object-oriented programming?
What is the behavior of an object defined by in object-oriented programming?
Which of the following is a correct example of an object in real life?
In object-oriented programming, what is the purpose of a class?
Which of the following is an example of an instance variable?
What does encapsulation mean in object-oriented programming?
What is an example of a composite data type?
Which of the following is a primitive data type?
What is the difference between primitive and composite data types?
Which of the following is the correct declaration of an integer variable in Java?
What is the term used for an object that is an instance of a class?
Which of the following is NOT a characteristic of a class?
What does an object factory refer to in object-oriented programming?
Which of the following is an example of a composite data type?
What is the key difference between an integer and a string in programming?
Which of the following can be considered as an example of an object in object-oriented programming?
Which of the following statements about an object is true?
Which of the following best describes the concept of 'abstraction' in object-oriented programming?
What do you mean by 'constructor' in object-oriented programming?
What is the role of an 'access modifier' in a class?
Which of the following is a correct example of declaring an object in Java?
Which of the following describes a method in object-oriented programming?
Which of the following is a valid method signature in Java?
What is the purpose of using the 'this' keyword in object-oriented programming?
What is the output of the following Java code? class Car { String model; void display() { System.out.println(model); } } Car c = new Car(); c.model = 'Sedan'; c.display();
What is the term used when an object is created based on a class?
Which of the following is an example of a real-life class and object?
What does inheritance mean in object-oriented programming?
What does polymorphism mean in object-oriented programming?