
Real Interview Questions for the Software Engineer at Globant
NewPractice MCQs
Answers count toward the Software Engineer and overall leaderboards; your latest answer to each question is the one that counts.
MCQ-1A candidate writes this in-place reversal for a Globant Software Engineer interview: `function reverse(arr) { for (let i = 0; i < arr.length; i++) { const j = arr.length - 1 - i; [arr[i], arr[j]] = [arr[j], arr[i]]; } }`. It runs on `const xs = [1, 2, 3, 4, 5, 6];` and the caller prints `xs` afterwards. What does `xs` hold?
Answer to see the discussion.
MCQ-2A Node 20 file run as `node app.js` has no I/O and executes these lines top to bottom: `setImmediate(() => console.log('A'));` `Promise.resolve().then(() => console.log('B'));` `process.nextTick(() => console.log('C'));` `console.log('D');`. Which lines print, and in what order?
Answer to see the discussion.
MCQ-3A Node 20 API runs as one process. The /export handler does 300 ms of synchronous CPU work before it replies, and the /health handler is a plain async function that returns immediately. An /export request arrives at t=0 and a /health request arrives at t=50 ms. When does the /health response leave the process?
Answer to see the discussion.
MCQ-4A Java 17 payments team has `ConnectorBase`, which must give every connector a per-instance `Clock` and a shared `logRetry()` method. Two connectors must extend `vendor.HttpClientBase`, a library class the team cannot change. Which declaration gives every connector the retry behaviour without a second superclass?
Answer to see the discussion.
MCQ-5A Python 3.12 module defines `class Counter` with the class attribute `total = 0`, an `__init__` that sets `self.count = 0`, and a method `hit` that runs `self.count += 1` and `Counter.total += 1`. After `a = Counter()`, `b = Counter()`, `a.hit()`, `a.hit()`, `b.hit()`, what does `print(a.count, b.count, Counter.total)` show?
Answer to see the discussion.
MCQ-6The `OrderProcessor` class in a Java 17 billing service has `calculateTax`, `generatePdfInvoice` and `saveToPostgres` methods. Last quarter a tax-rule change, a PDF layout change and a schema migration each forced edits to this one class and its unit tests. Which principle does this design break, and what split follows from it?
Answer to see the discussion.
MCQ-7A six-engineer team runs one Java 17 service containing search, checkout and reporting, deployed as 10 identical 1 GB instances. At weekend peak, search CPU reaches 90% while checkout sits near 15%, and the 10 copies cost $4,200 a month. Which change lets search scale on its own?
Answer to see the discussion.
MCQ-8A Globant team runs an ASP.NET Core 8 API on Azure App Service. A singleton `PriceCache` takes an EF Core `DbContext`, registered as scoped, in its constructor. Under load, one customer's request returns prices from another customer's cart, and no exception is thrown. The team must keep one shared `PriceCache` instance for the whole process. Which change stops the leak?
Answer to see the discussion.
MCQ-9After a Friday deploy, checkout returns HTTP 500 for about 0.4% of orders, all of them with more than 50 line items. Staging passes its test orders, and the logs show `RangeError: Maximum call stack size exceeded` from `flattenLines`. The Friday migration cannot be reversed, and customers who retry the same cart fail again. What is the first step that isolates the cause before anyone changes production?
Answer to see the discussion.
MCQ-10A client's nightly reconciliation job cost $300 a night before a schema migration. The migration dropped an index, so the run went from 2 hours to 9 and now costs $1,400 a night. The fix needs two days of engineering and will ship after that. The client's CFO asks for one nightly figure to budget the regression until then. What do you quote?
Answer to see the discussion.
MCQ-11Your teammate proposes caching price lookups for 10 minutes to cut database load on the checkout service. You suspect promo price changes inside that window would charge customers the old price, but your only evidence is one support ticket. The lead wants a recommendation with data behind it at Thursday's review. What should you do first?
Answer to see the discussion.
MCQ-12A Java 17 service keeps `base` as a mutable ArrayList holding 10, 20 and 30, and `view` wraps it with `Collections.unmodifiableList(base)`. It then runs `base.add(40)` and `List<Integer> doubled = base.stream().map(x -> x * 2).toList();`. What does `view` report, and what happens when `doubled.add(50)` runs?
Answer to see the discussion.
MCQ-13A candidate's `myAll` polyfill is tested with three inputs: `p1` resolves to 'a' after 30 ms, `p2` rejects with `Error('x')` after 10 ms, and `p3` rejects with `Error('y')` after 5 ms. The polyfill calls `.then(resolve, reject)` on each input in array order and returns a new Promise. What does the returned promise settle with?
Answer to see the discussion.
MCQ-14A solver stores a 4000-row by 3000-column grid of doubles as one `Float64Array` in row-major order, with cell (r, c) at `r * cols + c` and both indices zero-based. It needs cell (2500, 1200), which sits in the 2501st row and 1201st column. What element offset does the code read?
Answer to see the discussion.
MCQ-15A 60-engineer, eight-team monorepo on a self-hosted Git server has a payments/ directory owned by one team. Last quarter a contractor's deploy token pushed a commit changing payments/fees.py straight to main without review, and CI flagged it only after the push landed. Which control blocks that push for every client, including tokens and `git push --no-verify`?
Answer to see the discussion.
Curated: · Written: · Reviewed: