Q431. How does Rails follow MVC and convention over configuration?
Rails is an MVC framework: a request hits the router, maps to a controller action, the controller works with models, and renders a view. Models use ActiveRecord for the d...
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 (2,728 available).
Rails is an MVC framework: a request hits the router, maps to a controller action, the controller works with models, and renders a view. Models use ActiveRecord for the d...
Swift uses `throws` functions and `try` for recoverable errors. Errors conform to the `Error` protocol, usually as enums. ```swift enum NetworkError: Error { case badStat...
A higher-order function takes a function as a parameter or returns one. Functions are first-class values with types like `(Int) -> Int`. ```kotlin fun List.myFilter(predi...
`IDisposable` provides deterministic release of unmanaged resources through `Dispose()`. The `using` statement or declaration guarantees `Dispose` runs even if an excepti...
Copying large objects is expensive. Move semantics transfer ownership of a resource from a temporary (an rvalue) instead of copying, leaving the source in a valid but uns...
`Option` models presence with `Some` and `None`, replacing null. `Result` models success or failure with `Ok` and `Err`, and is how Rust does recoverable errors. ```rust ...
A method receiver can be a value (`func (u User) Name() string`) or a pointer (`func (u *User) SetName(n string)`). - A value receiver operates on a copy, so it cannot mu...
MySQL doesn't have a native `BOOLEAN` type. It uses `TINYINT(1)` where `0` = false, `1` = true, and any non-zero value is treated as true in conditions. ```sql CREATE TAB...
Python is a programming language with objects, modules, threads, exceptions and automatic memory management. The benefits of pythons are that it is simple and easy, porta...
- include: includes a file; on failure emits a warning and execution continues. - require: includes a file; on failure emits a fatal error and stops. - include_once / req...
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.