Bitkernel Software Engineer Interview Guide

Bitkernel software engineer online assessment: binary search and heap traces, TCP and HTTP, SQL and transactions, plus a vanilla JavaScript task.

Topics: Bitkernel, Software Engineer, interview guide, online assessment, binary search, computer science fundamentals, TCP, database transactions, JavaScript

Author: PracHub

Published: 11/24/2026

Bitkernel logo
Bitkernel · Software EngineerUpdated Nov 24, 2026 · Reviewed by PracHub

Bitkernel Software Engineer Interview Guide

Bitkernel software engineer online assessment: binary search and heap traces, TCP and HTTP, SQL and transactions, plus a vanilla JavaScript task.

Questions in our bank by interview round

  • Online Assessment18 questions

On this page0% read
01 · Overview

Interviewing at Bitkernel

Bitkernel's software engineer questions read like a computer science final exam: trace a binary search by hand, run the first pass of heap sort, name the TCP handshake states, classify a clash between two database transactions, then write a piece of browser JavaScript. Every question reported for this role sits in the online assessment, and nearly all of them are short fundamentals items with one right answer. If that assessment is on your calendar, the sections below go topic by topic through the methods that make each item type fast on scratch paper, with practice sets placed along the way; the Bitkernel software engineer question hub keeps every reported item in one place. Sorted by subject, the reported questions form five clusters. Binary search is the largest single topic, asked in several forms. Next come hand traces of other algorithms and code: a heap sort pass, a binary tree rebuilt from two traversals and then read as a forest, a recursive function whose calls you count, a C loop whose iterations you count, and an eight-bit two's-complement puzzle. Networking contributes the TCP three-way handshake, socket programming facts and HTTP status codes. Databases and storage contribute the logical processing order of a SQL query, primary key rules, an anomaly between two concurrent transactions and the choice of a file organization for random access. The rest is a mix: choosing the best way to ask an AI assistant for debugging help, a logic puzzle about cups where exactly one label is true, and the coding task, a popup and redirect written in plain JavaScript and rated hard.

Practice bank
18+ questions
Round types in our bank
1
Read time
17 min
02 · Difficulty

How hard is the Bitkernel Software Engineer interview?

From 18 labelled questions
  • Easy0%0 questions
  • Medium94%17 questions
  • Hard6%1 questions

Most questions land in the middle: hard enough to prepare for, rarely brutal.

Difficulty labels come from the questions in the PracHub bank, not from self-reports.

03 · Topic breakdown

What Bitkernel actually tests for

Share of 18 Software Engineer questions
  1. Software Engineering Fundamentals94% · 17
  2. Coding & Algorithms6% · 1
04 · Question bank

The questions most likely to come up

18+ in the Bitkernel bank · sorted by popularity
  1. Implement popup and redirect in JavaScriptYou are working in a browser environment and must use vanilla JavaScript only (no external libraries).Coding & AlgorithmsOnline AssessmentCodingHard
  2. Count binary search steps for specific keysYou have the sorted array:Software Engineering FundamentalsOnline AssessmentMedium
  3. Identify incorrect HTTP status code descriptionWhich of the following descriptions about HTTP status codes is incorrect?Software Engineering FundamentalsOnline AssessmentMedium
  4. Count calls in recursive function evaluationConsider the following recursive function in C-like pseudocode:Software Engineering FundamentalsOnline AssessmentMedium
  5. Convert binary tree traversals to forest countA binary tree has the following traversals:Software Engineering FundamentalsOnline AssessmentMedium
Practice 18+ Bitkernel questions

Bitkernel's software engineer questions read like a computer science final exam: trace a binary search by hand, run the first pass of heap sort, name the TCP handshake states, classify a clash between two database transactions, then write a piece of browser JavaScript. Every question reported for this role sits in the online assessment, and nearly all of them are short fundamentals items with one right answer. If that assessment is on your calendar, the sections below go topic by topic through the methods that make each item type fast on scratch paper, with practice sets placed along the way; the Bitkernel software engineer question hub keeps every reported item in one place.

Where the Bitkernel assessment spends its items

Sorted by subject, the reported questions form five clusters. Binary search is the largest single topic, asked in several forms. Next come hand traces of other algorithms and code: a heap sort pass, a binary tree rebuilt from two traversals and then read as a forest, a recursive function whose calls you count, a C loop whose iterations you count, and an eight-bit two's-complement puzzle. Networking contributes the TCP three-way handshake, socket programming facts and HTTP status codes. Databases and storage contribute the logical processing order of a SQL query, primary key rules, an anomaly between two concurrent transactions and the choice of a file organization for random access. The rest is a mix: choosing the best way to ask an AI assistant for debugging help, a logic puzzle about cups where exactly one label is true, and the coding task, a popup and redirect written in plain JavaScript and rated hard.

Many prompts give four lettered options. Several ask which statement is incorrect, which flips the usual reading: you are hunting for the one false claim among true ones. The handshake item goes further and asks you to be ready to say why each wrong option is wrong. Others want a number or a sequence back, such as a triple of comparison counts, a list of array indices or a count of trees.

Nothing in the reported set asks you to design a service or invent an algorithm. The work is precise recall plus textbook procedures executed without a slip, and both improve quickly once you write the method down instead of trusting the first option that looks familiar.

Binary search, one midpoint at a time

The binary search items share one array-and-pointer procedure and change what you report: how many comparisons a search makes for a few given keys, which sequence of compared values cannot happen, and which indices a search visits in an array stored from index 1. All of them are mechanical once you fix the conventions before you start, so write these at the top of your scratch paper:

  • Midpoint rule. mid = floor((low + high) / 2) is the common one. A ceiling version probes a different element whenever low + high is odd, so use exactly what the prompt states.
  • Bounds. Inclusive bounds (low = 0, high = n - 1, loop while low <= high) are the textbook default. Half-open bounds (high = n, loop while low < high) visit different elements.
  • Updates. low = mid + 1 when the target is larger, high = mid - 1 when it is smaller. Variants that set high = mid exist and change the whole trace.
  • What counts as a comparison. Most exam keys count one comparison per element examined. Code that tests == and then < spends two comparisons on every probe that misses. If none of the options matches your total, recount under the other convention before you recheck the arithmetic.

Index base matters less than it looks. Moving from 0-based to 1-based storage shifts every index by one but never changes which element is probed, because floor((low + 1 + high + 1) / 2) equals floor((low + high) / 2) + 1. Trace in whichever base you find easier and convert the reported indices at the end, which is where most slips on the 1-based variant happen.

The impossible-sequence variant needs no array at all. Each comparison cuts the range where the target can still be: after a probe at value v, a larger next probe means the target is above v from then on, and a smaller one means it is below. Keep a running open interval; a sequence is impossible the moment a probe falls outside it. When the prompt does give a concrete array, add a second check, since the probes must also land on the midpoints your rule produces. Know the worst case too: with inclusive bounds, a search over n keys examines at most floor(log2 n) + 1 elements, so a larger count means a slip in your table.

Heap sort and a tree rebuilt from two traversals

The heap and tree items work on tree shapes. The heap sort item gives a short integer array and asks for its order after the max-heap is built and the first extraction finishes. The tree item gives inorder and postorder listings and asks what you get when the binary tree is read as a forest through the left-child, right-sibling convention.

For heap sort, the build step decides everything. The standard build sifts down every internal node, starting at index floor(n / 2) - 1 in a 0-based array and walking back to the root. Inserting elements one at a time and sifting each up can produce a different heap from the same input, so unless the prompt says otherwise, use the bottom-up build that textbooks pair with heap sort. During a sift-down, swap with the larger child; swapping with the first child that beats the parent is the classic error. The first extraction then swaps the root with the last element, shrinks the heap by one and sifts the new root down. Write the full array after every swap, since the options are arrays and a tree sketch hides index mistakes.

For the traversals, the last name in a postorder listing is the root. Find it in the inorder listing: everything to its left is the left subtree, everything to its right the right subtree, and the sizes of those two parts tell you where to cut the rest of the postorder listing. Recurse until every part is a single node. Draw the tree as you go, then confirm it by regenerating both listings from your drawing.

Then convert. In the left-child, right-sibling convention, a node's left pointer means "first child" and its right pointer means "next sibling". Read that way, the binary root and the chain of nodes reached by following right pointers from it are siblings at the top level, so each of them roots one tree of the forest, and everything hanging off their left pointers lives inside those trees. Count only after the rebuilt tree has passed the regeneration check, because a reconstruction error flows straight into the count.

Counting calls, loop passes and eight-bit patterns

The remaining trace items are smaller, and their slips come from rushing a single step.

Recursive call counts come first. A prompt shows a recursive function in C-like pseudocode and asks how many calls one evaluation makes. Skip drawing the full call tree past a few levels. Define C(n) as the number of calls f(n) makes including itself, write the recurrence straight from the code, and fill a table upward from the base cases. Before trusting the recurrence, check three details in the code: a base case that returns at once still counts as a call, a short-circuit operator such as && or || can skip a call on some branches, and a function that calls itself twice with the same argument puts a 2 in front of the recursive term, so its call count doubles at every level and grows exponentially, while one that stores the result makes a single recursive call per level.

Loop counts in C reward a table. A prompt shows a for loop over two int variables and asks how many times something executes. Make one row per evaluation of the condition, a column for every variable and a column for whether the body runs; for a loop that ends through its condition, the condition is checked one more time than the body runs. Read the header slowly: a single = where == was meant, a comma operator (whose value is its last operand), or a variable changed in both the body and the header each change the count.

The eight-bit item asks for an extreme value under a constraint on how many bits are set. Use weights: an eight-bit two's-complement pattern is worth -128 times its top bit plus the ordinary weights 64, 32, 16, 8, 4, 2 and 1 for the rest. That turns any extreme-value question into a placement problem: decide the top bit first, then decide where the remaining ones move the value in the direction you need. As a check on a variant of your own, the largest value with exactly four ones keeps the top bit clear and fills the next four positions, 01111000, which is 120. Also memorize the range, -128 to 127, the negation rule (invert every bit, then add one) and the fact that 10000000 has no positive counterpart.

TCP states, socket facts and HTTP status codes

The networking items are recall questions phrased as "which statement is correct" or "which statement is incorrect", about handshake states, socket pairs and domains, and status codes. What to hold in memory:

  • The TCP connection state machine. Draw both sides from memory for opening and for closing: every state the client and server pass through, which segment triggers each transition, and which side waits in TIME_WAIT and for how long. Knowing which phase each state name and timer belongs to lets you discard options in seconds.
  • Socket basics. Know the socket types the Berkeley API defines and the transport each usually maps to, what a communication domain restricts, and the call order on each side: socket, bind, listen, accept on a TCP server, socket and connect on the client, and sendto with recvfrom for datagrams.
  • HTTP status codes. Know each class from 1xx to 5xx and the codes inside them that people confuse: the redirect family (301, 302, 303, 307, 308), 304 as a cache answer, 401 next to 403, and 500 next to 502, 503 and 504. For each, be able to say in one line what a client should do next.

To work an incorrect-statement item, judge every option on its own and write T or F beside it before choosing. Options with absolute words ("only", "must", "all") deserve a counterexample search first, though true statements use those words too. If you end up with two Fs, one of your calls is wrong; revisit the one you were least sure of before picking. Practice every networking item the way the handshake prompt asks, with a one-sentence refutation for each wrong option.

Transactions, primary keys, query order and file layout

The database and storage items are recall too, but each has a reasoning step that a memorized list will not cover.

Concurrency anomalies first. One item lays out reads and writes by two transactions on the same data item, in time order, and asks you to name what went wrong. Learn the classic anomalies (dirty read, non-repeatable read, phantom, lost update, write skew) as patterns over who read what and when, and know which isolation level first rules each one out. To classify a schedule, annotate every read with whether the value it saw was committed, and every write with the value it was computed from, then match. A quick original case: T1 overwrites A = 80 with A = 50 and has not committed; T2 reads A = 50 and writes B = A + 5; T1 rolls back. T2's read saw a value that never became committed, so this is a dirty read, and B now rests on a value that no longer exists.

Primary keys come next. The item asks which statement about them is false. Test each statement against the edge cases of the relational model: keys made of more than one column, NULLs, tables with no rows, and the difference between a primary key and a unique constraint.

For the logical order of a SQL query, keep the written order, the logical order the standard defines and the optimizer's physical plan apart. Derive the logical order from visibility, since a clause can only use names produced by clauses evaluated before it. That is why, in most engines, a select-list alias fails in WHERE but works in ORDER BY, and why an aggregate is rejected in WHERE but accepted in HAVING. If you can explain both facts, you can rebuild the order on the spot.

The storage item asks which physical file organization does not suit random access. For each organization in the options, count the block reads needed to reach the k-th record, or the record with a given key, assuming nothing is cached, and compare the counts as k grows.

The vanilla JavaScript popup and redirect task

The coding question asks for a popup and a redirect in the browser with plain JavaScript and no external libraries, and it is the only item rated hard. A popup and redirect needs little algorithmic work, so prepare by knowing what the browser will do to your code.

Settle what "popup" means first. It can mean a new window opened with window.open, or an in-page dialog built from DOM elements or the native dialog element. If the wording leaves room, state your reading in a comment and say how the other version would differ.

Facts that decide whether the code works:

  • Browsers block window.open unless it runs inside a user-initiated event such as a click handler. Called from a timer or on page load, it usually returns null, so check the return value and fall back.
  • Passing noopener in the window features makes window.open return null even when the window does open, so a null check alone cannot tell blocked from opened in that case.
  • location.assign(url) adds a history entry, location.replace(url) does not, and setting location.href behaves like assign. Choose by whether the back button should return to the page.
  • A timed redirect needs setTimeout and the handle it returns, so a cancel button can call clearTimeout. A visible countdown should run from one interval that is cleared on both completion and cancel.
  • An in-page dialog should attach listeners with addEventListener instead of inline handler strings, close on Escape and on a backdrop click, move focus into the dialog on open and back to the trigger on close, and remove any listener it added to document.

Write the solution as small named functions, one each to open the popup, run the countdown, redirect and cancel, and keep the shared state (the window reference and the timer handle) in a single object that all of them read.

Judgment items: an AI debugging request and a cups puzzle

The judgment items test reasoning more than recall. One asks which way of asking an AI assistant for debugging help works best. Treat it as a bug report for a teammate who has never seen your code, and judge each option by whether its reader could reproduce and diagnose the failure from what was sent.

The other puts a statement on each of four cups, says exactly one statement is true, and asks what must follow. Translate each statement into a precise claim about the cups' contents, then test the cases one at a time: assume statement i is the only true one, make the other three false, and check whether any arrangement of contents satisfies all four at once. Cases that force a contradiction drop out. Most of the work is writing each negation correctly: the negation of "every box is locked" is "at least one box is unlocked", and writing "no box is locked" instead is the usual slip.

Worked from scratch: thirteen sorted keys and three binary search questions

The following item is original, built to match the assessment's tracing style. Thirteen sorted keys are stored from index 0:

index: 0  1  2   3   4   5   6   7   8   9   10  11  12
key:   4  9  15  21  30  38  44  51  60  67  73  85  92

Binary search uses inclusive bounds, mid = floor((low + high) / 2), low = mid + 1 when the target is larger and high = mid - 1 when it is smaller. Answer three parts. (a) Which indices are probed, and how many comparisons are made, when searching for 60? (b) Which probes happen for 40, which is absent, and where does the search stop? (c) Could the probe sequences 44, 67, 51, 60 and 44, 15, 38, 51 occur, first for any sorted array and then for this one?

Start by writing the conventions down: inclusive bounds, floor midpoint, one comparison per element examined, plus a second total for code that tests equality first.

Part (a), target 60:

steplowhighmidkey at middecision
101264460 is larger, low = 7
271296760 is smaller, high = 8
37875160 is larger, low = 8
488860found

The probes are indices 6, 9, 7 and 8: four elements examined, so four comparisons under the one-per-probe convention. Code that tests == first and then < spends two comparisons on each of the three misses and one on the hit, seven in all. Four is also the worst case for thirteen keys, floor(log2 13) + 1, which confirms the trace did not wander.

Part (b), target 40:

steplowhighmidkey at middecision
101264440 is smaller, high = 5
20521540 is larger, low = 3
33543040 is larger, low = 5
45553840 is larger, low = 6

Now low = 6 exceeds high = 5, so the loop ends after four comparisons without a match. The final low, 6, is the insertion point: 40 belongs between 38 and 44. Stored from index 1 instead, every index above would be one higher and the keys examined would be identical.

Part (c). Run the interval test on each sequence. For 44, 67, 51, 60: after 44 the next probe is larger, so the target is above 44; after 67 the next is smaller, so the target lies between 44 and 67; after 51 the next is larger, so it lies between 51 and 67; 60 is inside. That sequence is possible in principle, and the table in part (a) shows this array produces it exactly.

For 44, 15, 38, 51: after 44 the next probe is smaller, so the target is below 44; after 15 the next is larger, so it lies between 15 and 44; after 38 the next probe, 51, is larger again, so the target would have to lie between 38 and 44, and 51 is outside that range. No sorted array can produce this sequence, and you can stop there.

The concrete array exposes one more trap. The shorter sequence 44, 15, 38 passes the interval test, yet this array cannot produce it: after going left of 44 and right of 15 the bounds are 3 and 5, and the floor midpoint lands on index 4, key 30. When a prompt names an array, run both checks; when it only says the keys are sorted, the interval test is the whole job.

Three weeks from recall sheets to timed traces

Week one is recall. Write one-page sheets for the TCP state machine (opening and closing), the socket call sequences, the HTTP status classes, the transaction anomalies with a sample schedule for each, and the SQL logical order derived from alias visibility. Then work the Bitkernel TCP, socket and HTTP questions and the Bitkernel database and file storage questions with the sheets closed, marking T or F beside every option, including the ones you do not pick. Each misjudged option goes back onto a sheet.

Week two is tracing. Drill the binary search conventions on arrays you invent, including even lengths, absent keys and storage from index 1, until a full trace takes under two minutes, then work the Bitkernel binary search tracing questions. After that come the Bitkernel heap, tree, recursion and bit-level traces, with your own drills alongside: heaps built bottom-up from random arrays and checked by a few lines of code, trees rebuilt from traversal pairs, recurrence tables for small functions you write.

Week three covers the browser task and mixed timing. Build a popup and redirect of your own in an empty HTML page and try to break it: call window.open from a timer, cancel the redirect mid-countdown, press Escape twice. Work the Bitkernel JavaScript, debugging and logic questions. In the last days, take mixed fundamentals items under a timer at one to two minutes each, and log every miss by cause. With only one week, give two days to recall, three to tracing and two to the browser task and mixed timing.

Where points slip on a four-option fundamentals test

  • Drifting conventions mid-trace: starting with a floor midpoint and later rounding, or switching from inclusive to half-open bounds a few steps in. Write the conventions down before the first probe.
  • Answering the opposite question. Several items want the incorrect statement; circle that word in the prompt before reading the options.
  • Reporting the wrong base: tracing from index 0 and forgetting to add one when the array is stated from index 1.
  • Building the heap another way, or sifting down toward the first larger child instead of the largest one. Both give a plausible array that is wrong.
  • Leaving out calls. Recursive call counts include the top-level call and every base-case call.
  • Half-remembered state machines. Recognizing state names is easier than placing them; if you cannot draw the sequence for both sides from memory, you are guessing.
  • Trusting window.open: assuming a popup opened without checking for null, or calling it outside a user gesture.
  • Overspending on one item. A trace that is not converging after three minutes usually has a convention error near the top; restart from the conventions and move on if it still does not settle.
16 · FAQ

Frequently asked questions

Many reported items give four lettered options, for example the networking, primary key and file organization items. Several trace items ask for a result instead: a count of comparisons, a list of indices, an array order or a count of trees. The one coding item reported so far is a vanilla JavaScript popup and redirect task. Prepare for both formats: quick recall with a written true or false call on every option, and enough browser JavaScript to build a small feature without a library.

Fix the conventions before you trace: the midpoint rule, usually the floor of low plus high over two, inclusive or half-open bounds, and what counts as one comparison. Most exam keys count one comparison per element examined, while code that tests equality and then less-than spends two on every miss. Trace with a table of low, high, mid and the key at mid, and check that the number of elements you probed never exceeds the floor of log base two of n, plus one.

The reported prompt asks for vanilla JavaScript in the browser with no external libraries, so practice against the DOM directly: creating elements, attaching listeners, opening windows, assigning or replacing the page location, and setting and clearing timers. Remember that browsers block a scripted window outside a user action such as a click, and that the call can come back empty. Build the feature once in a blank HTML page before the assessment so popup blocking and history behavior hold no surprises.

Take the last node of the postorder listing as the root and find it in the inorder listing. Nodes to its left form the left subtree and nodes to its right form the right subtree; their sizes tell you where to cut the postorder listing. Repeat until every part is one node, then regenerate both listings from your drawing to confirm it. Under the left-child, right-sibling convention, the root and the nodes reached by following right pointers from it become the roots of the forest's trees.

Reported items cover the logical processing order of a SQL query, which you can rebuild from which names each clause is allowed to see; statements about primary keys, best tested against composite keys and NULLs; anomalies between two concurrent transactions; and which physical file organization suits access to a record by position or key. For the anomalies, practice classifying a schedule by marking whether each read saw committed data and which value each write was computed from.

Translate each statement into a precise claim, then test the cases one at a time: assume statement one is the only true one, make the others false, and check whether some arrangement satisfies everything, then repeat for each statement. Cases that force a contradiction are eliminated. Most errors come from careless negation, so write each negation out in full before you check it. With four statements the casework fits on half a page and leaves nothing to guess.

Plan for recall at the level of an undergraduate networking course: the TCP state machine on both sides when a connection opens and closes, which segments drive each transition, and what the time-wait state is for; socket types, communication domains and the server and client call sequences; and the HTTP status classes plus the codes people mix up, such as the redirect family, 401 against 403, and the gateway errors. One reported item asks you to explain why each wrong option is wrong, so practice at that depth.

BitkernelSoftware Engineerinterview guideonline assessmentbinary searchcomputer science fundamentalsTCPdatabase transactionsJavaScript