Die meistgefragten Interviewfragen und Antworten sowie Online-Tests
Lernplattform fur Interviewvorbereitung, Online-Tests, Tutorials und Live-Ubungen

Baue deine Fahigkeiten mit fokussierten Lernpfaden, Probetests und interviewreifem Inhalt aus.

WithoutBook vereint themenbezogene Interviewfragen, Online-Ubungstests, Tutorials und Vergleichsleitfaden in einem responsiven Lernbereich.

Interview vorbereiten

Probeprufungen

Als Startseite festlegen

Diese Seite als Lesezeichen speichern

E-Mail-Adresse abonnieren
Startseite / Interview-Themen / Computer Science
WithoutBook LIVE Probeinterviews Computer Science Verwandte Interview-Themen: 9

Interview Questions and Answers

Entdecke die wichtigsten Computer Science Interviewfragen und Antworten fur Einsteiger und erfahrene Kandidaten zur Vorbereitung auf Bewerbungsgespraeche.

Insgesamt 50 Fragen Interview Questions and Answers

Das beste LIVE-Probeinterview, das du vor einem Interview ansehen solltest

Entdecke die wichtigsten Computer Science Interviewfragen und Antworten fur Einsteiger und erfahrene Kandidaten zur Vorbereitung auf Bewerbungsgespraeche.

Interview Questions and Answers

Suche eine Frage, um die Antwort zu sehen.

Fragen und Antworten fur Einsteiger / Berufseinsteiger

Frage 1

What is the difference between a stack and a queue?

A stack follows the Last In, First Out (LIFO) principle, while a queue follows the First In, First Out (FIFO) principle.

Example:

Stack: Undo functionality in software. Queue: Print job scheduling.
Zum Wiederholen speichern

Zum Wiederholen speichern

Speichere diesen Eintrag als Lesezeichen, markiere ihn als schwierig oder lege ihn in einem Wiederholungsset ab.

Meine Lernbibliothek offnen
Ist das hilfreich?
Kommentar hinzufugen Kommentare ansehen
Frage 2

What is the purpose of an index in a database?

An index in a database improves the speed of data retrieval operations on a database table by providing a quick lookup mechanism.

Example:

Creating an index on a 'username' column for faster search queries.
Zum Wiederholen speichern

Zum Wiederholen speichern

Speichere diesen Eintrag als Lesezeichen, markiere ihn als schwierig oder lege ihn in einem Wiederholungsset ab.

Meine Lernbibliothek offnen
Ist das hilfreich?
Kommentar hinzufugen Kommentare ansehen
Frage 3

What is the role of a constructor in object-oriented programming?

A constructor initializes an object's state and is called when an object is created. It typically assigns values to the object's attributes.

Example:

Java constructor: 'public MyClass(int value) { this.value = value; }'
Zum Wiederholen speichern

Zum Wiederholen speichern

Speichere diesen Eintrag als Lesezeichen, markiere ihn als schwierig oder lege ihn in einem Wiederholungsset ab.

Meine Lernbibliothek offnen
Ist das hilfreich?
Kommentar hinzufugen Kommentare ansehen
Frage 4

What is the purpose of the 'finally' block in exception handling?

The 'finally' block in exception handling always executes, whether an exception is thrown or not. It is used to release resources or perform cleanup tasks.

Example:

Closing a file or database connection in the 'finally' block.
Zum Wiederholen speichern

Zum Wiederholen speichern

Speichere diesen Eintrag als Lesezeichen, markiere ihn als schwierig oder lege ihn in einem Wiederholungsset ab.

Meine Lernbibliothek offnen
Ist das hilfreich?
Kommentar hinzufugen Kommentare ansehen
Frage 5

Explain the concept of a linked list.

A linked list is a linear data structure where elements are stored in nodes, and each node points to the next node in the sequence.

Example:

Singly linked list: Node1 -> Node2 -> Node3. Doubly linked list: Node1 <-> Node2 <-> Node3.
Zum Wiederholen speichern

Zum Wiederholen speichern

Speichere diesen Eintrag als Lesezeichen, markiere ihn als schwierig oder lege ihn in einem Wiederholungsset ab.

Meine Lernbibliothek offnen
Ist das hilfreich?
Kommentar hinzufugen Kommentare ansehen
Frage 6

What is a binary search algorithm, and how does it work?

Binary search is a divide-and-conquer algorithm used to efficiently locate a target value within a sorted array by repeatedly dividing the search interval in half.

Example:

Searching for a specific element in a sorted array by repeatedly halving the search range.
Zum Wiederholen speichern

Zum Wiederholen speichern

Speichere diesen Eintrag als Lesezeichen, markiere ihn als schwierig oder lege ihn in einem Wiederholungsset ab.

Meine Lernbibliothek offnen
Ist das hilfreich?
Kommentar hinzufugen Kommentare ansehen
Frage 7

What is the purpose of the 'this' keyword in object-oriented programming?

The 'this' keyword refers to the current instance of a class and is used to access instance variables and methods.

Example:

In Java: 'this.name = name;' in a constructor to differentiate between instance and local variables.
Zum Wiederholen speichern

Zum Wiederholen speichern

Speichere diesen Eintrag als Lesezeichen, markiere ihn als schwierig oder lege ihn in einem Wiederholungsset ab.

Meine Lernbibliothek offnen
Ist das hilfreich?
Kommentar hinzufugen Kommentare ansehen
Frage 8

What is the purpose of the 'git' version control system?

Git is a distributed version control system that tracks changes in source code during software development, enabling collaboration among multiple developers.

Example:

Using 'git commit' to save changes and 'git push' to update the remote repository.
Zum Wiederholen speichern

Zum Wiederholen speichern

Speichere diesen Eintrag als Lesezeichen, markiere ihn als schwierig oder lege ihn in einem Wiederholungsset ab.

Meine Lernbibliothek offnen
Ist das hilfreich?
Kommentar hinzufugen Kommentare ansehen
Frage 9

What is the purpose of an API (Application Programming Interface)?

An API defines a set of rules and protocols for building and interacting with software applications, allowing them to communicate with each other.

Example:

Using a weather API to retrieve current weather data in a web application.
Zum Wiederholen speichern

Zum Wiederholen speichern

Speichere diesen Eintrag als Lesezeichen, markiere ihn als schwierig oder lege ihn in einem Wiederholungsset ab.

Meine Lernbibliothek offnen
Ist das hilfreich?
Kommentar hinzufugen Kommentare ansehen
Frage 10

Explain the concept of a binary tree.

A binary tree is a hierarchical data structure composed of nodes, where each node has at most two children, referred to as the left child and the right child.

Example:

Binary search trees are a common application of binary trees for efficient searching.
Zum Wiederholen speichern

Zum Wiederholen speichern

Speichere diesen Eintrag als Lesezeichen, markiere ihn als schwierig oder lege ihn in einem Wiederholungsset ab.

Meine Lernbibliothek offnen
Ist das hilfreich?
Kommentar hinzufugen Kommentare ansehen
Frage 11

What is the purpose of the 'SELECT' statement in SQL?

The 'SELECT' statement retrieves data from one or more tables in a database and allows for filtering, sorting, and grouping of the results.

Example:

Fetching all columns from a 'users' table: 'SELECT * FROM users;'
Zum Wiederholen speichern

Zum Wiederholen speichern

Speichere diesen Eintrag als Lesezeichen, markiere ihn als schwierig oder lege ihn in einem Wiederholungsset ab.

Meine Lernbibliothek offnen
Ist das hilfreich?
Kommentar hinzufugen Kommentare ansehen
Frage 12

What is the purpose of the 'try', 'catch', and 'finally' blocks in exception handling?

'try' is used to enclose a block of code that might raise an exception. 'catch' is used to handle the exception, and 'finally' is used for code that must be executed regardless of whether an exception was thrown or not.

Example:

Ensuring resources are released in the 'finally' block, even if an exception occurs.
Zum Wiederholen speichern

Zum Wiederholen speichern

Speichere diesen Eintrag als Lesezeichen, markiere ihn als schwierig oder lege ihn in einem Wiederholungsset ab.

Meine Lernbibliothek offnen
Ist das hilfreich?
Kommentar hinzufugen Kommentare ansehen
Frage 13

Explain the concept of the DRY principle in software development.

DRY (Don't Repeat Yourself) is a software development principle that encourages the elimination of redundancy by using abstractions such as functions, classes, or modules.

Example:

Refactoring repeated code into a function for reusability.
Zum Wiederholen speichern

Zum Wiederholen speichern

Speichere diesen Eintrag als Lesezeichen, markiere ihn als schwierig oder lege ihn in einem Wiederholungsset ab.

Meine Lernbibliothek offnen
Ist das hilfreich?
Kommentar hinzufugen Kommentare ansehen
Frage 14

What is the difference between a static method and an instance method?

A static method belongs to the class and can be called without creating an instance, while an instance method operates on an instance of the class and requires an object to be created.

Example:

Static method: Math.abs() in Java. Instance method: String.length() in Java.
Zum Wiederholen speichern

Zum Wiederholen speichern

Speichere diesen Eintrag als Lesezeichen, markiere ihn als schwierig oder lege ihn in einem Wiederholungsset ab.

Meine Lernbibliothek offnen
Ist das hilfreich?
Kommentar hinzufugen Kommentare ansehen
Frage 15

What is the purpose of the 'git merge' command in version control?

'git merge' is used to integrate changes from one branch into another. It combines changes, resolves conflicts, and creates a new commit.

Example:

Merging feature branch changes into the main branch: 'git checkout main; git merge feature-branch;'
Zum Wiederholen speichern

Zum Wiederholen speichern

Speichere diesen Eintrag als Lesezeichen, markiere ihn als schwierig oder lege ihn in einem Wiederholungsset ab.

Meine Lernbibliothek offnen
Ist das hilfreich?
Kommentar hinzufugen Kommentare ansehen
Frage 16

Explain the concept of a firewall in computer networks.

A firewall is a network security device that monitors and controls incoming and outgoing network traffic based on predetermined security rules.

Example:

Blocking unauthorized access to a private network from external sources.
Zum Wiederholen speichern

Zum Wiederholen speichern

Speichere diesen Eintrag als Lesezeichen, markiere ihn als schwierig oder lege ihn in einem Wiederholungsset ab.

Meine Lernbibliothek offnen
Ist das hilfreich?
Kommentar hinzufugen Kommentare ansehen
Frage 17

What is the purpose of the 'BFS' (Breadth-First Search) algorithm?

BFS is a graph traversal algorithm that visits all the vertices of a graph in breadth-first order, exploring all neighbors at the current depth before moving on to the next level.

Example:

Finding the shortest path in an unweighted graph or exploring the relationships in a social network.
Zum Wiederholen speichern

Zum Wiederholen speichern

Speichere diesen Eintrag als Lesezeichen, markiere ihn als schwierig oder lege ihn in einem Wiederholungsset ab.

Meine Lernbibliothek offnen
Ist das hilfreich?
Kommentar hinzufugen Kommentare ansehen
Frage 18

What is the purpose of the 'DNS' (Domain Name System) in networking?

DNS translates human-readable domain names into IP addresses, facilitating the identification of resources on a network.

Example:

Accessing a website using its domain name (e.g., www.example.com) rather than its IP address.
Zum Wiederholen speichern

Zum Wiederholen speichern

Speichere diesen Eintrag als Lesezeichen, markiere ihn als schwierig oder lege ihn in einem Wiederholungsset ab.

Meine Lernbibliothek offnen
Ist das hilfreich?
Kommentar hinzufugen Kommentare ansehen

Fragen und Antworten fur mittleres Niveau / 1 bis 5 Jahre Erfahrung

Frage 19

Explain the concept of polymorphism in object-oriented programming.

Polymorphism allows objects of different types to be treated as objects of a common type. It includes method overloading and method overriding.

Example:

Method overloading: Same method name with different parameters. Method overriding: Subclass provides a specific implementation of a method defined in its superclass.
Zum Wiederholen speichern

Zum Wiederholen speichern

Speichere diesen Eintrag als Lesezeichen, markiere ihn als schwierig oder lege ihn in einem Wiederholungsset ab.

Meine Lernbibliothek offnen
Ist das hilfreich?
Kommentar hinzufugen Kommentare ansehen
Frage 20

Explain the term 'Big O' notation in algorithm analysis.

Big O notation is used to describe the upper bound on the growth rate of an algorithm's time complexity in the worst-case scenario.

Example:

O(n^2) for a nested loop algorithm.
Zum Wiederholen speichern

Zum Wiederholen speichern

Speichere diesen Eintrag als Lesezeichen, markiere ihn als schwierig oder lege ihn in einem Wiederholungsset ab.

Meine Lernbibliothek offnen
Ist das hilfreich?
Kommentar hinzufugen Kommentare ansehen
Frage 21

Explain the difference between process and thread.

A process is an independent program with its memory space, while a thread is a lightweight unit of a process sharing the same memory space.

Example:

Process: Multiple instances of a web browser. Thread: Handling multiple tasks in a music player concurrently.
Zum Wiederholen speichern

Zum Wiederholen speichern

Speichere diesen Eintrag als Lesezeichen, markiere ihn als schwierig oder lege ihn in einem Wiederholungsset ab.

Meine Lernbibliothek offnen
Ist das hilfreich?
Kommentar hinzufugen Kommentare ansehen
Frage 22

Explain the concept of virtual memory.

Virtual memory is a memory management technique that provides an 'idealized abstraction' of the storage resources that are actually available on a given machine.

Example:

Using disk space as an extension of RAM when physical memory is full.
Zum Wiederholen speichern

Zum Wiederholen speichern

Speichere diesen Eintrag als Lesezeichen, markiere ihn als schwierig oder lege ihn in einem Wiederholungsset ab.

Meine Lernbibliothek offnen
Ist das hilfreich?
Kommentar hinzufugen Kommentare ansehen
Frage 23

What is the difference between TCP and UDP?

TCP (Transmission Control Protocol) is a connection-oriented protocol that ensures reliable data delivery, while UDP (User Datagram Protocol) is a connectionless protocol with no guarantee of reliable data delivery.

Example:

TCP: File transfer. UDP: Real-time video streaming.
Zum Wiederholen speichern

Zum Wiederholen speichern

Speichere diesen Eintrag als Lesezeichen, markiere ihn als schwierig oder lege ihn in einem Wiederholungsset ab.

Meine Lernbibliothek offnen
Ist das hilfreich?
Kommentar hinzufugen Kommentare ansehen
Frage 24

What is the difference between a shallow copy and a deep copy?

A shallow copy creates a new object, but does not copy the nested objects, while a deep copy creates a new object and recursively copies all nested objects.

Example:

Shallow copy: Object.assign() in JavaScript. Deep copy: Using libraries like deepcopy in Python.
Zum Wiederholen speichern

Zum Wiederholen speichern

Speichere diesen Eintrag als Lesezeichen, markiere ihn als schwierig oder lege ihn in einem Wiederholungsset ab.

Meine Lernbibliothek offnen
Ist das hilfreich?
Kommentar hinzufugen Kommentare ansehen
Frage 25

Explain the concept of normalization in databases.

Normalization is the process of organizing data in a database to reduce redundancy and dependency, leading to better data integrity.

Example:

Breaking a table into smaller tables to avoid repeating data (1NF, 2NF, 3NF, etc.).
Zum Wiederholen speichern

Zum Wiederholen speichern

Speichere diesen Eintrag als Lesezeichen, markiere ihn als schwierig oder lege ihn in einem Wiederholungsset ab.

Meine Lernbibliothek offnen
Ist das hilfreich?
Kommentar hinzufugen Kommentare ansehen
Frage 26

Explain the concept of thread synchronization.

Thread synchronization is the coordination of threads to ensure proper execution and avoid conflicts when accessing shared resources.

Example:

Using locks or synchronization primitives to control access to shared data in a multithreaded environment.
Zum Wiederholen speichern

Zum Wiederholen speichern

Speichere diesen Eintrag als Lesezeichen, markiere ihn als schwierig oder lege ihn in einem Wiederholungsset ab.

Meine Lernbibliothek offnen
Ist das hilfreich?
Kommentar hinzufugen Kommentare ansehen
Frage 27

Explain the concept of a hash table.

A hash table is a data structure that uses a hash function to map keys to indices, allowing for efficient insertion, deletion, and retrieval of data.

Example:

Storing key-value pairs in a hash table for fast lookup times.
Zum Wiederholen speichern

Zum Wiederholen speichern

Speichere diesen Eintrag als Lesezeichen, markiere ihn als schwierig oder lege ihn in einem Wiederholungsset ab.

Meine Lernbibliothek offnen
Ist das hilfreich?
Kommentar hinzufugen Kommentare ansehen
Frage 28

Explain the concept of recursion in programming.

Recursion is a programming technique where a function calls itself in order to solve a smaller instance of the same problem.

Example:

Calculating the factorial of a number or traversing a directory structure recursively.
Zum Wiederholen speichern

Zum Wiederholen speichern

Speichere diesen Eintrag als Lesezeichen, markiere ihn als schwierig oder lege ihn in einem Wiederholungsset ab.

Meine Lernbibliothek offnen
Ist das hilfreich?
Kommentar hinzufugen Kommentare ansehen
Frage 29

Explain the concept of garbage collection in programming languages.

Garbage collection is the automatic process of reclaiming memory occupied by objects that are no longer in use, preventing memory leaks.

Example:

Java's automatic garbage collection using the JVM's garbage collector.
Zum Wiederholen speichern

Zum Wiederholen speichern

Speichere diesen Eintrag als Lesezeichen, markiere ihn als schwierig oder lege ihn in einem Wiederholungsset ab.

Meine Lernbibliothek offnen
Ist das hilfreich?
Kommentar hinzufugen Kommentare ansehen
Frage 30

What is the difference between synchronous and asynchronous programming?

Synchronous programming executes tasks one at a time and waits for each task to complete, while asynchronous programming allows tasks to overlap and continue without waiting for each other.

Example:

Synchronous: Blocking function calls. Asynchronous: Using callbacks or promises in JavaScript.
Zum Wiederholen speichern

Zum Wiederholen speichern

Speichere diesen Eintrag als Lesezeichen, markiere ihn als schwierig oder lege ihn in einem Wiederholungsset ab.

Meine Lernbibliothek offnen
Ist das hilfreich?
Kommentar hinzufugen Kommentare ansehen
Frage 31

Explain the concept of the MVC (Model-View-Controller) architectural pattern.

MVC separates an application into three interconnected components: the Model (data and business logic), the View (user interface), and the Controller (handles user input and updates the model).

Example:

Building web applications with frameworks like Django (Python) or Ruby on Rails (Ruby).
Zum Wiederholen speichern

Zum Wiederholen speichern

Speichere diesen Eintrag als Lesezeichen, markiere ihn als schwierig oder lege ihn in einem Wiederholungsset ab.

Meine Lernbibliothek offnen
Ist das hilfreich?
Kommentar hinzufugen Kommentare ansehen
Frage 32

What is the purpose of the 'ORM' (Object-Relational Mapping) in database development?

ORM is a programming technique that maps objects to database tables, allowing developers to interact with databases using object-oriented programming languages.

Example:

Using Hibernate in Java to map Java objects to database tables.
Zum Wiederholen speichern

Zum Wiederholen speichern

Speichere diesen Eintrag als Lesezeichen, markiere ihn als schwierig oder lege ihn in einem Wiederholungsset ab.

Meine Lernbibliothek offnen
Ist das hilfreich?
Kommentar hinzufugen Kommentare ansehen
Frage 33

Explain the concept of a neural network in machine learning.

A neural network is a computational model inspired by the structure and functioning of the human brain, used for tasks such as pattern recognition and decision-making.

Example:

Training a neural network to recognize handwritten digits in an image.
Zum Wiederholen speichern

Zum Wiederholen speichern

Speichere diesen Eintrag als Lesezeichen, markiere ihn als schwierig oder lege ihn in einem Wiederholungsset ab.

Meine Lernbibliothek offnen
Ist das hilfreich?
Kommentar hinzufugen Kommentare ansehen
Frage 34

What is the purpose of the 'volatile' keyword in programming?

'volatile' is used to indicate that a variable's value may be changed by multiple threads simultaneously, preventing compiler optimizations that assume the variable can only be changed by the current thread.

Example:

Declaring a variable as 'volatile' in Java for thread safety.
Zum Wiederholen speichern

Zum Wiederholen speichern

Speichere diesen Eintrag als Lesezeichen, markiere ihn als schwierig oder lege ihn in einem Wiederholungsset ab.

Meine Lernbibliothek offnen
Ist das hilfreich?
Kommentar hinzufugen Kommentare ansehen
Frage 35

Explain the concept of microservices in software architecture.

Microservices is an architectural style that structures an application as a collection of small, loosely coupled services, each independently deployable and scalable.

Example:

Building a large-scale web application with independent services for authentication, payment, and user management.
Zum Wiederholen speichern

Zum Wiederholen speichern

Speichere diesen Eintrag als Lesezeichen, markiere ihn als schwierig oder lege ihn in einem Wiederholungsset ab.

Meine Lernbibliothek offnen
Ist das hilfreich?
Kommentar hinzufugen Kommentare ansehen
Frage 36

What is the purpose of the 'Singleton' design pattern?

The Singleton design pattern ensures that a class has only one instance and provides a global point of access to that instance.

Example:

Creating a single instance for a database connection manager in a web application.
Zum Wiederholen speichern

Zum Wiederholen speichern

Speichere diesen Eintrag als Lesezeichen, markiere ihn als schwierig oder lege ihn in einem Wiederholungsset ab.

Meine Lernbibliothek offnen
Ist das hilfreich?
Kommentar hinzufugen Kommentare ansehen
Frage 37

Explain the concept of a cache and its importance in computing.

A cache is a hardware or software component that stores data temporarily to reduce access time and provide faster data retrieval.

Example:

Using a cache to store frequently accessed database query results for improved performance.
Zum Wiederholen speichern

Zum Wiederholen speichern

Speichere diesen Eintrag als Lesezeichen, markiere ihn als schwierig oder lege ihn in einem Wiederholungsset ab.

Meine Lernbibliothek offnen
Ist das hilfreich?
Kommentar hinzufugen Kommentare ansehen
Frage 38

Explain the concept of multithreading and its advantages.

Multithreading is the concurrent execution of two or more threads to perform multiple tasks simultaneously. It improves program responsiveness and overall system performance.

Example:

Running background tasks while the main thread handles user input in a graphical user interface.
Zum Wiederholen speichern

Zum Wiederholen speichern

Speichere diesen Eintrag als Lesezeichen, markiere ihn als schwierig oder lege ihn in einem Wiederholungsset ab.

Meine Lernbibliothek offnen
Ist das hilfreich?
Kommentar hinzufugen Kommentare ansehen
Frage 39

What is the purpose of the 'Dijkstra's algorithm' in computer science?

Dijkstra's algorithm is used to find the shortest path between two nodes in a graph, particularly in applications like network routing and GPS navigation.

Example:

Finding the shortest path between two cities on a road network.
Zum Wiederholen speichern

Zum Wiederholen speichern

Speichere diesen Eintrag als Lesezeichen, markiere ihn als schwierig oder lege ihn in einem Wiederholungsset ab.

Meine Lernbibliothek offnen
Ist das hilfreich?
Kommentar hinzufugen Kommentare ansehen
Frage 40

Explain the concept of a virtual machine in computing.

A virtual machine is a software emulation of a physical computer that runs an operating system and applications, allowing multiple virtual machines to run on a single physical machine.

Example:

Java Virtual Machine (JVM) enables Java programs to run on any device with a JVM installed.
Zum Wiederholen speichern

Zum Wiederholen speichern

Speichere diesen Eintrag als Lesezeichen, markiere ihn als schwierig oder lege ihn in einem Wiederholungsset ab.

Meine Lernbibliothek offnen
Ist das hilfreich?
Kommentar hinzufugen Kommentare ansehen
Frage 41

What is the purpose of the 'MapReduce' programming model in big data processing?

MapReduce is a programming model used for processing and generating large datasets in parallel across distributed computing clusters.

Example:

Processing and analyzing large log files to extract relevant information in Hadoop.
Zum Wiederholen speichern

Zum Wiederholen speichern

Speichere diesen Eintrag als Lesezeichen, markiere ihn als schwierig oder lege ihn in einem Wiederholungsset ab.

Meine Lernbibliothek offnen
Ist das hilfreich?
Kommentar hinzufugen Kommentare ansehen
Frage 42

Explain the concept of a binary heap in data structures.

A binary heap is a complete binary tree data structure that satisfies the heap property, where the value of each node is less than or equal to its children's values.

Example:

Implementing priority queues for tasks with varying levels of priority.
Zum Wiederholen speichern

Zum Wiederholen speichern

Speichere diesen Eintrag als Lesezeichen, markiere ihn als schwierig oder lege ihn in einem Wiederholungsset ab.

Meine Lernbibliothek offnen
Ist das hilfreich?
Kommentar hinzufugen Kommentare ansehen
Frage 43

What is the purpose of the 'Observer' design pattern?

The Observer design pattern defines a one-to-many dependency between objects, so that when one object changes state, all its dependents are notified and updated automatically.

Example:

Implementing event handling in graphical user interfaces.
Zum Wiederholen speichern

Zum Wiederholen speichern

Speichere diesen Eintrag als Lesezeichen, markiere ihn als schwierig oder lege ihn in einem Wiederholungsset ab.

Meine Lernbibliothek offnen
Ist das hilfreich?
Kommentar hinzufugen Kommentare ansehen
Frage 44

Explain the concept of the CAP theorem in distributed systems.

The CAP theorem states that in a distributed system, it is impossible to simultaneously provide all three guarantees: Consistency, Availability, and Partition tolerance.

Example:

Choosing between consistency and availability during network partitions in a distributed database system.
Zum Wiederholen speichern

Zum Wiederholen speichern

Speichere diesen Eintrag als Lesezeichen, markiere ihn als schwierig oder lege ihn in einem Wiederholungsset ab.

Meine Lernbibliothek offnen
Ist das hilfreich?
Kommentar hinzufugen Kommentare ansehen
Frage 45

What is the purpose of the 'OAuth' protocol in web development?

OAuth is an authentication and authorization protocol used for secure and delegated access, allowing a user to grant a third-party application limited access to their resources without exposing their credentials.

Example:

Allowing a mobile app to access a user's Google Drive without sharing the password.
Zum Wiederholen speichern

Zum Wiederholen speichern

Speichere diesen Eintrag als Lesezeichen, markiere ihn als schwierig oder lege ihn in einem Wiederholungsset ab.

Meine Lernbibliothek offnen
Ist das hilfreich?
Kommentar hinzufugen Kommentare ansehen
Frage 46

Explain the concept of the 'Decorator' design pattern.

The Decorator design pattern allows behavior to be added to an object, either statically or dynamically, without affecting the behavior of other objects from the same class.

Example:

Extending the functionality of a text editor with spell-checking or formatting capabilities.
Zum Wiederholen speichern

Zum Wiederholen speichern

Speichere diesen Eintrag als Lesezeichen, markiere ihn als schwierig oder lege ihn in einem Wiederholungsset ab.

Meine Lernbibliothek offnen
Ist das hilfreich?
Kommentar hinzufugen Kommentare ansehen
Frage 47

Explain the concept of the 'Command' design pattern.

The Command design pattern encapsulates a request as an object, allowing for parameterization of clients with different requests, queuing of requests, and logging of the requests.

Example:

Implementing undo functionality in a text editor using command objects.
Zum Wiederholen speichern

Zum Wiederholen speichern

Speichere diesen Eintrag als Lesezeichen, markiere ihn als schwierig oder lege ihn in einem Wiederholungsset ab.

Meine Lernbibliothek offnen
Ist das hilfreich?
Kommentar hinzufugen Kommentare ansehen
Frage 48

Explain the concept of the 'Singleton' design pattern.

The Singleton design pattern ensures that a class has only one instance and provides a global point of access to that instance.

Example:

Creating a single instance for a database connection manager in a web application.
Zum Wiederholen speichern

Zum Wiederholen speichern

Speichere diesen Eintrag als Lesezeichen, markiere ihn als schwierig oder lege ihn in einem Wiederholungsset ab.

Meine Lernbibliothek offnen
Ist das hilfreich?
Kommentar hinzufugen Kommentare ansehen
Frage 49

What is the purpose of the 'Observer' design pattern?

The Observer design pattern defines a one-to-many dependency between objects, so that when one object changes state, all its dependents are notified and updated automatically.

Example:

Implementing event handling in graphical user interfaces.
Zum Wiederholen speichern

Zum Wiederholen speichern

Speichere diesen Eintrag als Lesezeichen, markiere ihn als schwierig oder lege ihn in einem Wiederholungsset ab.

Meine Lernbibliothek offnen
Ist das hilfreich?
Kommentar hinzufugen Kommentare ansehen
Frage 50

Explain the concept of the 'Model-View-ViewModel' (MVVM) architectural pattern.

MVVM is an architectural pattern that separates the application into three components: Model (data and business logic), View (user interface), and ViewModel (mediator between the Model and View).

Example:

Building a cross-platform mobile app using frameworks like Xamarin.
Zum Wiederholen speichern

Zum Wiederholen speichern

Speichere diesen Eintrag als Lesezeichen, markiere ihn als schwierig oder lege ihn in einem Wiederholungsset ab.

Meine Lernbibliothek offnen
Ist das hilfreich?
Kommentar hinzufugen Kommentare ansehen

Am hilfreichsten laut Nutzern:

Copyright © 2026, WithoutBook.