All fields

“Objects” in Information Technology

68 questions across 17 technologies.

Information Technology

68 questions in 17 technologies

#QuestionTechnologyTopicLevel
1Are string objects mutable or immutable in C#? C# Programming › Strings in C#C# ProgrammingStrings in C#Beginner
2What do you mean by String objects are immutable? C# Programming › Strings in C#C# ProgrammingStrings in C#Beginner
3How do you use spread to shallow-copy and merge objects? JavaScript › Destructuring, Spread & RestJavaScriptDestructuring, Spread & RestIntermediate
4Why should you pass objects by const reference? C++ › Const CorrectnessC++Const CorrectnessBeginner
5Why can you only store strings in localStorage, and how do you store objects? JavaScript › Browser Storage & Web APIsJavaScriptBrowser Storage & Web APIsBeginner
6How do you overload the '+' operator to support adding two custom objects together? C# › Indexers & Operator OverloadingC#Indexers & Operator OverloadingBeginner
7What does it mean that functions are 'first-class objects' in Python? Python › Functions & ScopePythonFunctions & ScopeBeginner
8How does __repr__ help with debugging when printing a list of custom objects? Python › Magic Methods & Operator OverloadingPythonMagic Methods & Operator OverloadingBeginner
9How does Python primarily manage memory for objects? Python › Memory Management & Garbage CollectionPythonMemory Management & Garbage CollectionBeginner
10How do you declare and initialize an array of objects (reference types) versus an array of primitives, and what is the key difference in their default values? Java › Arrays & Multidimensional ArraysJavaArrays & Multidimensional ArraysBeginner
11What is the difference between the == operator and the .equals() method when comparing two custom objects, if the class hasn't overridden equals()? Java › Java Fundamentals: Syntax, Data Types & OperatorsJavaJava Fundamentals: Syntax, Data Types & OperatorsBeginner
12What is the util module's inspect() function used for, and how does it relate to how console.log() displays objects? Node.js › Core Node.js ModulesNode.jsCore Node.js ModulesBeginner
13How do closures unintentionally keep large objects alive longer than expected? JavaScript › Memory Management & Garbage CollectionJavaScriptMemory Management & Garbage CollectionIntermediate
14How does the gc module let you inspect and debug memory leaks caused by uncollectable objects? Python › Memory Management & Garbage CollectionPythonMemory Management & Garbage CollectionIntermediate
15What is the Large Object Heap (LOH), and why do objects larger than 85,000 bytes behave differently in the garbage collector? .NET › Diagnostics & Performance.NETDiagnostics & PerformanceIntermediate
16What is the ExecutorService framework, and why is it generally preferred over manually creating and managing individual Thread objects? Java › Concurrency & ThreadsJavaConcurrency & ThreadsIntermediate
17How would you implement the Composite pattern to treat individual objects and groups of objects uniformly, such as a file system with files and directories? Java › Design Patterns in JavaJavaDesign Patterns in JavaIntermediate
18How does Objects.equals() and Objects.hash() from java.util.Objects simplify writing correct equals() and hashCode() implementations, particularly regarding null-safety? Java › equals(), hashCode() & toString() ContractsJavaequals(), hashCode() & toString() ContractsIntermediate
19How does the generational hypothesis (most objects die young) inform the JVM's generational heap structure (young generation, old generation), and how does a minor GC differ from a major/full GC? Java › Garbage CollectionJavaGarbage CollectionIntermediate
20What is the difference between the == operator and the .equals() method when comparing String objects, and why does String's string pool (interning) behavior sometimes make == appear to 'work' for strings? Java › Java Fundamentals: Syntax, Data Types & OperatorsJavaJava Fundamentals: Syntax, Data Types & OperatorsIntermediate
21How do you grant and revoke specific permissions, such as SELECT or EXECUTE, on individual database objects rather than through broader roles? SQL Server › SQL Server Security & PermissionsSQL ServerSQL Server Security & PermissionsIntermediate
22How do S3 lifecycle policies automatically transition objects between storage classes or delete them entirely based on defined rules? AWS › S3 & StorageAWSS3 & StorageIntermediate
23How do S3 bucket policies and access control lists work together to control who can access objects stored in a bucket? AWS › S3 & StorageAWSS3 & StorageIntermediate
24How does the Factory pattern help decouple object creation logic from the code that actually uses those objects? PHP › Design Patterns in PHPPHPDesign Patterns in PHPIntermediate
25How does the Observer pattern let objects react automatically to events occurring in another object, and where is this pattern commonly used in PHP applications? PHP › Design Patterns in PHPPHPDesign Patterns in PHPIntermediate
26How does Doctrine's entity manager and Data Mapper approach differ from Eloquent's Active Record approach in terms of how objects are persisted? PHP › Eloquent ORM & Doctrine ORMPHPEloquent ORM & Doctrine ORMIntermediate
27How can PHP objects implementing the JsonSerializable interface customize exactly how they are converted into JSON when passed to json_encode? PHP › JSON Handling in PHPPHPJSON Handling in PHPIntermediate
28How does Doctrine ORM integrate with Symfony to let you work with database records as PHP objects, and what role do entities play in this? PHP › Symfony Framework EssentialsPHPSymfony Framework EssentialsIntermediate
29What are readonly properties in PHP, and how do they help you create objects whose internal state cannot be accidentally changed after they are first constructed? PHP › Type Declarations & Strict TypesPHPType Declarations & Strict TypesIntermediate
30What are mock objects in PHPUnit, and why are they useful when testing a piece of code that depends on an external service, such as sending an email or calling a third party API? PHP › Unit Testing with PHPUnitPHPUnit Testing with PHPUnitIntermediate
31How do you properly handle deserializing a genuinely nested JSON structure, such as an order object that itself contains an embedded nested list of individual line item objects, into a properly correctly structured set of nested Dart model classes? Flutter › JSON Serialization & DeserializationFlutterJSON Serialization & DeserializationIntermediate
32What is the difference between the App, Window, and Page objects? .NET MAUI › Fundamentals & Architecture.NET MAUIFundamentals & ArchitectureAdvanced
33What is the difference between the App, Window, and Page objects? .NET MAUI › Fundamentals & Architecture.NET MAUIFundamentals & ArchitectureAdvanced
34How does const propagate with member objects and pointers (const propagation)? C++ › Const CorrectnessC++Const CorrectnessAdvanced
35How do you destructure nested objects and arrays in one statement? JavaScript › Destructuring, Spread & RestJavaScriptDestructuring, Spread & RestAdvanced
36Why does JSON.stringify() throw a TypeError on objects with circular references, and how do you handle it? JavaScript › JSON & Data SerializationJavaScriptJSON & Data SerializationAdvanced
37How would you group an array of objects by a property using Map, and how does the newer Object.groupBy() compare? JavaScript › Map, Set, WeakMap & WeakSetJavaScriptMap, Set, WeakMap & WeakSetAdvanced
38How does mark-and-sweep garbage collection actually determine which objects are reachable? JavaScript › Memory Management & Garbage CollectionJavaScriptMemory Management & Garbage CollectionAdvanced
39How would you implement a 'DeepReadonly<T>' utility type, and why doesn't the built-in 'Readonly<T>' recurse into nested objects? TypeScript › Readonly, const Assertions & ImmutabilityTypeScriptReadonly, const Assertions & ImmutabilityAdvanced
40How would you implement a generic, reusable object pool using generic constraints to ensure poolable objects can be properly reset? C# › GenericsC#GenericsAdvanced
41How does LINQ to Objects differ fundamentally from LINQ to Entities (Entity Framework), particularly regarding how the query is actually executed? C# › LINQC#LINQAdvanced
42What is the Large Object Heap (LOH), and why do objects allocated there behave differently from regular small objects? C# › Memory & Garbage CollectionC#Memory & Garbage CollectionAdvanced
43How do WeakReference<T> objects work, and in what scenario would you use one instead of a normal strong reference? C# › Memory & Garbage CollectionC#Memory & Garbage CollectionAdvanced
44How would you profile memory allocations specifically (not just CPU time) to find which objects are consuming the most memory in a running process? Python › Debugging & ProfilingPythonDebugging & ProfilingAdvanced
45How does the iterator protocol interact with the with-statement for resource-managing iterables like file objects? Python › Iterators & the Iterator ProtocolPythonIterators & the Iterator ProtocolAdvanced
46What is memory fragmentation in the context of Python's object allocator, and how does pymalloc address it for small objects? Python › Memory Management & Garbage CollectionPythonMemory Management & Garbage CollectionAdvanced
47How do circular references between objects with __del__ methods behave differently in Python 3.4+ compared to earlier versions? Python › Memory Management & Garbage CollectionPythonMemory Management & Garbage CollectionAdvanced
48How do you handle cache serialization for complex objects when using IDistributedCache, given it only natively supports byte[]? .NET › Caching (In-Memory, Distributed & Redis).NETCaching (In-Memory, Distributed & Redis)Advanced
49How does the configuration binder handle nested objects, arrays, and complex types when binding a JSON section to a C# class? .NET › Configuration & Options.NETConfiguration & OptionsAdvanced
50How does the configuration binder handle nested objects and arrays when binding a JSON section to a strongly-typed C# class? ASP.NET Core › Configuration & Options PatternASP.NET CoreConfiguration & Options PatternAdvanced
51How does the JVM lay out array objects in memory, including the array header overhead, and how does this affect memory efficiency for very large arrays of primitives versus boxed wrapper types? Java › Arrays & Multidimensional ArraysJavaArrays & Multidimensional ArraysAdvanced
52How does the JVM's tri-color marking algorithm (used by concurrent garbage collectors like G1) work to identify reachable objects while application threads continue running concurrently, and what problem does a write barrier solve in this context? Java › Garbage CollectionJavaGarbage CollectionAdvanced
53What is escape analysis, and how does it enable the JIT compiler to perform stack allocation or scalar replacement for objects that don't actually need heap allocation, reducing GC pressure? Java › Garbage CollectionJavaGarbage CollectionAdvanced
54What is Domain-Driven Design (DDD), and how do its concepts of entities, value objects, and aggregates apply to a Node.js codebase? Node.js › Architecture & Design PatternsNode.jsArchitecture & Design PatternsAdvanced
55How would you design a strategy to significantly reduce memory usage for an application storing millions of small, similarly structured objects in Redis? Redis › Redis Memory OptimizationRedisRedis Memory OptimizationAdvanced
56How can __clone be used to customize what happens when an object is duplicated using PHP's clone keyword, particularly for handling deep copies of nested objects? PHP › Magic MethodsPHPMagic MethodsAdvanced
57What is the process object in Node.js, and what are some of the most commonly used properties and methods on it? Node.js › Global Objects & the process ObjectNode.jsGlobal Objects & the process ObjectBeginner
58What is the difference between __dirname/__filename in CommonJS and their equivalents in ES Modules? Node.js › Global Objects & the process ObjectNode.jsGlobal Objects & the process ObjectIntermediate
59What is process.memoryUsage(), and how would you use it to monitor a Node.js application's memory consumption? Node.js › Global Objects & the process ObjectNode.jsGlobal Objects & the process ObjectIntermediate
60What is the global Buffer class, and how does it relate to the process object's broader role in giving access to system-level capabilities? Node.js › Global Objects & the process ObjectNode.jsGlobal Objects & the process ObjectIntermediate
61How do you correctly handle OS signals like SIGTERM and SIGINT in a Node.js application to implement graceful shutdown? Node.js › Global Objects & the process ObjectNode.jsGlobal Objects & the process ObjectAdvanced
62How do you destructure properties out of an object? JavaScript › Destructuring, Spread & RestJavaScriptDestructuring, Spread & RestBeginner
63How does a Map differ from a plain object for storing key-value pairs? JavaScript › Map, Set, WeakMap & WeakSetJavaScriptMap, Set, WeakMap & WeakSetBeginner
64What is the difference between string keyword and System.String class? C# Programming › Strings in C#C# ProgrammingStrings in C#Beginner
65What are class fields, and how do they differ from constructor-assigned properties? JavaScript › Classes & Class SyntaxJavaScriptClasses & Class SyntaxIntermediate
66What is the difference between System.Text.StringBuilder and System.String? C# Programming › Strings in C#C# ProgrammingStrings in C#Intermediate
67How do getters and setters work inside a class? JavaScript › Classes & Class SyntaxJavaScriptClasses & Class SyntaxAdvanced
68How do computed property names interact with object destructuring? JavaScript › Destructuring, Spread & RestJavaScriptDestructuring, Spread & RestAdvanced