quiz image

CSP 103 Pre Final Test - OOP

TrustingPeridot avatar
TrustingPeridot
·

Start Quiz

50 Questions

Which term refers to a mechanism that allows a class to inherit properties and behaviors from another class?

Answer hidden

What is the process of simplifying complex systems by modeling classes based on essential properties and behaviors they possess?

Answer hidden

What is a blueprint or template for creating objects?

Answer hidden

Which term refers to the ability of objects of different types to be treated as objects of a common type?

Answer hidden

What restricts access to some components, preventing accidental modification of data?

Answer hidden

Which promotes code reuse and establishes a relationship between classes?

Answer hidden

What is a collection of abstract methods that defines a contract for classes that implement it?

Answer hidden

Which involves having multiple methods with the same name in a class, but with different parameter types or a different number of parameters?

Answer hidden

What represents an instance of a class and encapsulates data and behavior?

Answer hidden

What is the purpose of the finally block in a try-catch construct?

Answer hidden

Which class is the root for all exceptions and errors in Java?

Answer hidden

What is the purpose of the throws clause in a method signature?

Answer hidden

Which type of exception is derived from the Exception class but is not checked at compile-time?

Answer hidden

What is the process by which an exception is thrown from one method to another or from one part of the program to another called?

Answer hidden

Which exception is thrown when trying to access a file that does not exist?

Answer hidden

What is the category of exceptions that are not meant to be caught or handled by the application?

Answer hidden

Which exception is thrown when an arithmetic operation results in an exceptional condition, such as division by zero?

Answer hidden

What is method overriding in Java?

Answer hidden

What is an abstract class in Java?

Answer hidden

What are getter and setter methods used for in Java?

Answer hidden

What is the purpose of a constructor in Java?

Answer hidden

What do static variables and methods belong to in Java?

Answer hidden

What does the method signature of a method in Java consist of?

Answer hidden

What is the purpose of method overloading in Java?

Answer hidden

What are instance variables in Java?

Answer hidden

What do access modifiers control in Java?

Answer hidden

What does the Java Collections framework provide?

Answer hidden

What is the technical term for Java stopping and generating an error message?

Answer hidden

What is the purpose of the try statement in Java?

Answer hidden

What does the catch statement in Java allow you to do?

Answer hidden

What is the purpose of the finally statement in Java?

Answer hidden

What does the throw statement in Java allow you to do?

Answer hidden

Which keyword is used to create a custom error in Java?

Answer hidden

What is the purpose of the try-catch block in Java?

Answer hidden

What is the purpose of the catch block in Java?

Answer hidden

What is the key difference between a built-in array and an ArrayList in Java?

Answer hidden

How is an element accessed in an ArrayList in Java?

Answer hidden

What method is used to remove all elements from an ArrayList in Java?

Answer hidden

What type of elements can be stored in an ArrayList in Java?

Answer hidden

How is the size of an ArrayList obtained in Java?

Answer hidden

What is the purpose of the clear() method in a HashSet in Java?

Answer hidden

What is the equivalent wrapper class for int in Java?

Answer hidden

Which method is used to add items to a HashSet in Java?

Answer hidden

What does the contains() method do in a HashSet in Java?

Answer hidden

What is the type of items that can be stored in a HashSet in Java?

Answer hidden

What is the key advantage of Object-Oriented Programming (OOP) over procedural programming?

Answer hidden

What is the purpose of polymorphism in Object-Oriented Programming?

Answer hidden

What is the relationship between a class and an object in Object-Oriented Programming?

Answer hidden

What is the primary focus of procedural programming?

Answer hidden

What does the term 'DRY' stand for in the context of Object-Oriented Programming?

Answer hidden

Make Your Own Quizzes and Flashcards

Convert your notes into interactive study material.

Get started for free

More Quizzes Like This

CSP in Adobe Commerce
5 questions
2B OOP CSP 103 Test
50 questions

2B OOP CSP 103 Test

TrustingPeridot avatar
TrustingPeridot
CSP 618 Exam 2 Study Guide Outline Quiz
15 questions
Use Quizgecko on...
Browser
Browser