Q71. What is the difference between val and var?
`val` declares a read-only reference that cannot be reassigned after initialisation. `var` declares a mutable reference that can be reassigned. ```kotlin val name = "Ada"...
Technical Question Bank · Peer-Reviewed
Search and filter frequently asked interview questions across technical, programming, and behavioral domains. Tailor your interview preparation by difficulty for freshers or experienced developers (1,236 available).
`val` declares a read-only reference that cannot be reassigned after initialisation. `var` declares a mutable reference that can be reassigned. ```kotlin val name = "Ada"...
`string` is immutable: every operation such as concatenation or `Replace` allocates a new string. `StringBuilder` is a mutable buffer backed by a resizable array, so appe...
The stack is a LIFO region managed automatically: allocation is a pointer bump, extremely fast, and memory is reclaimed when the scope ends. The heap is a large pool mana...
`String` is an owned, growable, heap-allocated UTF-8 string (essentially a `Vec`) that you can mutate and extend. `&str` is a borrowed string slice: a pointer plus a leng...
`new(T)` allocates zeroed memory for a value of type T and returns a pointer `*T`. It works for any type and is rarely used. `make` only works for slices, maps and channe...
Binary search finds a target in a sorted array by halving the search range each step, giving O(log n). ```python def binary_search(nums, target): lo, hi = 0, len(nums) - ...
**SQL** stands for **Structured Query Language**. Originally developed at IBM by Donald D. Chamberlin and Raymond F. Boyce in the early 1970s, it was initially named **SE...
React offers a powerful set of features that have made it one of the most popular JavaScript libraries for building user interfaces: **Core Features:** - **Component-Base...
Formative assessment happens during learning and is used to adjust teaching. It is low stakes and frequent: questioning, mini whiteboards, exit tickets, quick quizzes and...
Working capital is current assets minus current liabilities. It measures the short term liquidity available to run day to day operations. Current assets include cash, rec...
HireXTech uses essential storage to remember your study preferences and third-party advertising cookies via Google AdSense in compliance with GDPR. You can choose to enable essential cookies only or accept all cookies. Read our Privacy Policy.