apple logo
Apple· Full Stack Software Engineer

Apple Interview - Full Stack Software Engineer

Posted
16 Jul 2026
152 reads

Summary

I interviewed for a Full Stack Software Engineer position at Apple. The interview consisted of a React JS coding round and a Java coding round.

How it went

React JS Coding Round

  1. What are the optimized ways used for the loading of the website like Amazon.com or Flipkart.com if opened in incognito mode?

  2. Is JavaScript Multithreaded or Single Threaded? what is event loop? is the working of JS top to down or vice versa?

  3. In JS if we fetch huge data e.g. 10M record through an API and render in UI inside a table, what will break on the UI and how can we resovle it?

  4. Output for

for (var i = 0; i < 10; i++) {
    setTimeout(() => {
      console.log(i)
    }, 0)
}
  1. Difference between var and let keyword in JS.

  2. What are closures and give an example?

  3. What is Temporal Dead Zone in JS?

  4. Implement +- button basically span collapse

import React, { useState } from 'react'
import './App.css'
// Root +/-
//   Child 1 +/-
//     Child 1.1
//     Child 1.2
//   Child 2
const data = {
  "id": 1,
  "name": "Root",
  "children": [
    {
      "id": 2,
      "name": "Child 1",
      "children": [
        {
          "id": 3,
          "name": "Child 1.1"
        },
        {
          "id": 4,
          "name": "Child 1.2"
        }
      ]
    },
    {
      "id": 5,
      "name": "Child 2"
    }
  ]
};

function App() {
  return (
    <div className="app">
    </div>
  );
}

export default App
  1. Difference between setTimeout and setInterval?

  2. What is defer in HTML? Can it be used with img tag also?

Java Coding Round

  1. You are given an undirected graph with n nodes labeled from 0 to n - 1, and a list of edges where edges[i] = [u, v] denotes an undirected edge between node u and node v. Determine whether the graph can be colored using exactly 2 colors such that no two adjacent nodes share the same color. Return true if such a coloring is possible, otherwise return false.

Questions asked (11)

  1. 01

    Optimized website loading strategies

    Other

    What are the optimized ways used for the loading of the website like Amazon.com or Flipkart.com if opened in incognito mode?

  2. 02

    JavaScript threading and event loop

    Other

    Is JavaScript Multithreaded or Single Threaded? What is the event loop? Is the working of JS top‑to‑down or vice‑versa?

  3. 03

    Handling large data rendering in UI

    Other

    In JavaScript, if we fetch a huge data set (e.g., 10 million records) through an API and render it in a UI table, what will break on the UI and how can we resolve it?

  4. 04

    Output of setTimeout loop with var

    Other

    What is the output of the following code?

    for (var i = 0; i < 10; i++) {
        setTimeout(() => {
          console.log(i)
        }, 0)
    }
    
  5. 05

    Difference between var and let

    Other

    Explain the difference between the var and let keywords in JavaScript.

  6. 06

    Closures in JavaScript

    Other

    What are closures in JavaScript? Provide an example.

  7. 07

    Temporal Dead Zone in JavaScript

    Other

    What is the Temporal Dead Zone (TDZ) in JavaScript?

  8. 08

    Implement collapsible tree with +/- button in React

    Other

    Implement a component that renders a tree structure (provided JSON data) with expandable/collapsible nodes using +/- buttons.

    import React, { useState } from 'react'
    import './App.css'
    // Sample data structure provided in the interview
    const data = {
      "id": 1,
      "name": "Root",
      "children": [
        {
          "id": 2,
          "name": "Child 1",
          "children": [
            { "id": 3, "name": "Child 1.1" },
            { "id": 4, "name": "Child 1.2" }
          ]
        },
        { "id": 5, "name": "Child 2" }
      ]
    };
    
    function App() {
      return (
        <div className="app">
          {/* Render the tree here */}
        </div>
      );
    }
    
    export default App;
    
  9. 09

    Difference between setTimeout and setInterval

    Other

    Explain the difference between setTimeout and setInterval in JavaScript.

  10. 10

    HTML defer attribute usage

    Other

    What is the defer attribute in HTML? Can it be used with the img tag as well?

  11. 11

    Check if undirected graph is bipartite (2‑colorable)

    Data Structures & Algorithms · Medium

    You are given an undirected graph with n nodes labeled from 0 to n - 1, and a list of edges where edges[i] = [u, v] denotes an undirected edge between node u and node v. Determine whether the graph can be colored using exactly 2 colors such that no two adjacent nodes share the same color. Return true if such a coloring is possible, otherwise return false.

Know someone preparing? Send it to them:WhatsAppLinkedInX

Interviewed at Apple recently?

Write up your rounds while you still remember the questions. It helps the next person more than you would think.

Share your experience
Discussion 0

Questions for the author, or how your own interview compared.

Join the discussion

Sign in with Google to comment or ask the author a question.

No comments yet

Be the first to share your thoughts and start the discussion!