Your country

Tools that support it use your country for local currency, number formats, units and paper size. Your choice is saved only in this browser.

Type a name or a two-letter code. Use the up and down arrow keys to move through the countries, Enter to choose one and Escape to close.

Tech Interview Preparation  Module 9 – Your role and your situation

Career switches, gaps, layoffs and roles abroad

Explain a career switch, a gap or a layoff in a few honest sentences, and check a role abroad for sponsorship, a registered agent, its contract and its pay.

  • Intermediate
  • 25 minutes
  • Examples run with Python 3.14.8 and Pyodide 314.0.7
  • By MySmartCoPilot
Free core, Pro depth: 10 of 25 minutes free
Free: Gaps and layoffs: two honest sentences, then what you are ready for · Career switches lead with evidence · Roles abroad: four checks before the first round · Visa and legal facts change, so read the official page on the day. With a pass: 2 in-depth parts and 3 interview answers, about 15 minutes.

What you will learn

  • Explain a career switch, a gap or a layoff honestly in 60 words or fewer
  • Check a role abroad for visa sponsorship, a registered recruiting agent and a work visa
  • Compare pay across currencies at the exchange rate and by purchasing power
  • Recognise when a visa or legal fact needs an official page read on the day

Before you start

Your resume shows 14 months between two jobs, and the recruiter’s first question is about them. Two honest sentences and a third about what you are ready for answer it in under 60 words, while a minute of explanation tends to raise more questions than it settles. Career switches, gaps and layoffs all take that shape, and roles abroad add checks of their own before the first round.

This lesson builds those short explanations, sets out the checks for a role in another country, and shows why a visa or legal fact has to come from an official page read on the day you decide.

Gaps and layoffs: two honest sentences, then what you are ready for

What an interviewer needs to hear about gaps and layoffs is short: that you can explain one plainly and are ready to work. Say what happened in one true sentence without blame, what you did since with one piece of evidence, and what you are ready for now. You owe no detail about health or family: “I took two years out to care for a parent” is complete. Step through an answer about a layoff:

Interactive · message by message An answer about a layoff, in three sentences Step through the answer. Each sentence does one job, and the follow-up gets one more true detail, not a longer story.
An answer about a layoff, in three sentences, step 6 of 6. Messages so far: Recruiter to You: why did you leave?; You to Recruiter: what happened; You to Recruiter: what you did since; You to Recruiter: what you want next; Recruiter to You: how were people chosen?; You to Recruiter: one detail.Recruiterreading your resumeYouafter a layoffwhy did you leave?what happenedwhat you did sincewhat you want nexthow were people chosen?one detail

The drawing shows the whole scene; its 6 steps are listed below.

Every step as text
  1. The question. The recruiter sees that your last job ended months ago and asks why you left.
  2. What happened. One true sentence, without blame. "My role was one of 120 cut when the company closed its mobile team."
  3. What you did. One sentence of evidence from the time since. "Since then I have finished the offline-sync feature I started there as an open-source library."
  4. What you are ready for. The last sentence looks forward and points at this role. "I am now looking for a team that builds Android apps for people on slow networks."
  5. A follow-up. The recruiter asks how the people to be cut were chosen. You do not need to know or guess.
  6. One more true detail. Answer with what you know, briefly, and return to the role. "The whole team went, so it was not about individuals. The library is on my resume if you would like to see it."

The program checks two answers against three rules: at most 60 words, a last sentence that looks forward, and no words of blame. Press Edit and check your own:

Two answers about a layoff, checked against three rules Python · layoff/layoff_check.py
"""Two answers to "why did you leave?" after a layoff, checked against three rules of a short, honest explanation."""

import re

LIMIT = 60  # words
FORWARD = ("ready", "looking for", "next", "now", "want to", "keen to", "plan to")
BLAME = ("unfair", "fault", "blame", "toxic", "terrible", "useless", "incompetent", "hate")

ANSWERS = {
    "Weak": (
        "Honestly it was totally unfair. My manager never liked me and the company was badly run, "
        "so when they cut costs I was the easy target, even though the real fault was the leadership's. "
        "I have been applying everywhere since then and it has been a terrible few months."
    ),
    "Strong": (
        "My role was one of 120 cut when the company closed its mobile team. "
        "Since then I have finished the offline-sync feature I started there as an open-source library. "
        "I am now looking for a team that builds Android apps for people on slow networks."
    ),
}


def problems(text: str) -> list[str]:
    """What breaks the three rules: the word limit, a forward-looking last sentence, no blame."""
    found = []
    words = len(text.split())
    if words > LIMIT:
        found.append(f"over {LIMIT} words ({words})")
    last = re.split(r"(?<=[.!?])\s+", text.strip())[-1].lower()
    if not any(term in last for term in FORWARD):
        found.append("the last sentence does not look forward")
    found += [f"blame word: {w}" for w in BLAME if re.search(rf"\b{w}\b", text.lower())]
    return found


for name, text in ANSWERS.items():
    print(f"{name}, {len(text.split())} words")
    for line in problems(text) or ["passes all three rules"]:
        print(f"  {line}")

Output

Weak, 49 words
  the last sentence does not look forward
  blame word: unfair
  blame word: fault
  blame word: terrible
Strong, 45 words
  passes all three rules

Recorded with Python 3.14.8 on macOS 26 arm64. To run it yourself: mise exec python@3.14.8 -- python3 layoff_check.py

The weak answer fits the length and still fails: it never looks forward, and its blame words, unfair, fault and terrible, make the listener wonder about you rather than the company. The strong one gives a number, a piece of work and a direction in 45 words.

Key idea

Explain a gap or a layoff in three sentences: what happened, what you did since, and what you are ready for now.

Checkpoint

Check: Explaining a gap or a layoff

  1. Question 1 of 2 Which three things does a short explanation of a gap say, in order?

    Choose one answer.

    Show the answer: Question 1 of 2

    Answer: What happened, what you did since, and what you are ready for now

    Three sentences, under 60 words: what happened, what you did since, what you are ready for now.

  2. Question 2 of 2 An answer about a layoff says the company was badly run and the decision unfair. What does that cost?

    Choose one answer.

    Show the answer: Question 2 of 2

    Answer: The listener starts to wonder about you rather than about the company

    Say what happened in one neutral sentence, as the strong answer does: "My role was one of 120 cut when the company closed its mobile team."

Career switches lead with evidence

Career switches are judged on evidence, as anyone new to a role is. Google’s hiring page tells recent graduates and people with limited work experience to include school-related projects or coursework that show relevant skills, and the advice serves a switcher as well. Lead with what you have built, then with what your first field gives you:

Evidence For a mechanical engineer moving into software
A project people use A sensor dashboard used by 40 engineers
Code from the old job Python scripts that cut test analysis from two days to two hours
Knowledge of the domain What a test rig produces, and what engineers need from it

Name the switch as a decision, not an escape: what drew you, and the evidence that it was the right move.

Checkpoint

Check: Evidence for a career switch

  1. One question A mechanical engineer moving into software is asked why the employer should take a chance on them. What does a strong answer lead with?

    Choose one answer.

    Show the answer: One question

    Answer: Evidence from projects, such as a dashboard 40 engineers use

    Lead with what you have built, then with what your first field gives you that other candidates lack.

Roles abroad: four checks before the first round

Roles abroad add questions that can end a process early, which is cheaper than ending it after the last round. Ask whether the employer visa sponsorship: An employer's application to a government for permission to employ a foreign worker, which the worker cannot make alone. In the United States, for example, the employer files the H-1B petition.: in the United States, for example, the employer files the petition for an H-1B worker, not the worker. Ask whether you would be an employee, a contractor or employed through a third party, an employer of record: A third party that is a worker's legal employer and runs payroll, tax and benefits while the worker works for another company, often in another country.: the US Internal Revenue Service says an employer generally withholds income tax, Social Security and Medicare from an employee’s wages and nothing from a contractor’s pay. Step through the checks:

Interactive · stage by stage Four checks on a role abroad, before the first round Step through the checks. Each one can end the process early, which is cheaper than ending it after the last round.
Four checks on a role abroad, before the first round, step 6 of 6. Showing Who sponsors the visa?, Is the agent registered?, Which visa type?, Employee or contractor?, Go on to the rounds, Stop here. In focus: Go on to the rounds.a tourist visaWho sponsors the visa?the employer files itIs the agent registered?listed on eMigrateWhich visa type?a work visa, not touristEmployee or contractor?tax, benefits, protectionGo on to the roundsanswers kept in writingStop herebefore you pay or travel

The drawing shows the whole scene; its 6 steps are listed below.

Every step as text
  1. Sponsorship first. Ask on the first call whether the employer sponsors work visas for the role. In the United States, for example, the employer files the H-1B petition, not the worker, so an employer that does not sponsor ends the process.
  2. A registered agent. For a job abroad recruited from India, use a recruiting agent registered with the Ministry of External Affairs, and check it on the list of active agents on the eMigrate portal.
  3. The visa in the offer. A genuine offer lets you travel on an employment or work visa. The ministry's advisory says a tourist visa is for tourism only.
  4. A tourist visa offer. An offer that asks you to travel on a tourist visa is a warning sign. Stop before you pay anything or travel.
  5. Your status. Ask whether you would be an employee, a contractor or employed through a third party. The tax withheld, the benefits and the protections differ with each.
  6. Then the rounds. With sponsorship, the agent, the visa and your status confirmed in writing, the process is worth your time.

Jobs abroad recruited from India

India’s Ministry of External Affairs asks job seekers to use only registered recruiting agent: In India, an agency registered with the Ministry of External Affairs to recruit workers for jobs abroad. The list of active agents is published on the eMigrate portal., and to check an agent on the list of active agents on the eMigrate portal. Under the Emigration Act, 1983, an agent may charge at most 30,000 rupees plus GST, with a receipt, and a genuine offer lets you travel on an employment or work visa, never a tourist one.

To compare the pay, convert it at the day’s exchange rate, and also by purchasing power parity (PPP): A rate between two currencies at which the same basket of goods and services costs the same in both countries. It compares what pay buys, where the exchange rate compares what it converts to., which asks what the money buys where you would live. Prices differ between countries, so a salary that converts to a large sum can still buy far less where it is spent.

Checkpoint

Check: Checks on a role abroad

  1. Question 1 of 2 For a worker on an H-1B visa in the United States, who files the petition?

    Choose one answer.

    Show the answer: Question 1 of 2

    Answer: The employer, or an agent acting for it

    An employer that does not sponsor cannot hire you on this visa, so ask about sponsorship on the first call.

  2. Question 2 of 2 An agent offers you a job abroad and asks you to travel on a tourist visa, with a work visa "to follow". What does the Ministry of External Affairs advisory say?

    Choose one answer.

    Show the answer: Question 2 of 2

    Answer: A genuine offer lets you travel on an employment or work visa; a tourist visa is for tourism only

    Stop before you pay or travel. Check the agent on the eMigrate portal's list of active agents and insist on a work visa.

Rules for working abroad change faster than any lesson can, and a rule that applied when you applied may not apply when the petition is filed. The US government’s page on H-1B specialty occupations shows one rule moving several times in a short time:

Timeline · 5 events in order How one visa rule changed several times in a short time Walk through the changes in order. Each one changed what an employer had to pay to file a new petition.
  1. Proclamation

    A new payment for certain petitions

    A presidential proclamation required an additional payment of $100,000 with certain new H-1B petitions, as a condition of eligibility.

  2. Guidance

    The agency sets out how it applies

    The government's agencies issued guidance on how the payment requirement would be carried out.

  3. Court order

    The guidance is vacated court

    A US district court issued an order that vacated the agency guidance implementing the payment requirement.

  4. Appeal

    A request to suspend the order is refused

    The order was stayed while the government asked an appeals court to suspend it pending appeal, and the appeals court refused. The USCIS page says that if the order is later lifted, the Department of Homeland Security still plans to collect the payment.

  5. Your case

    Read the page on the day check

    Which of these applies to you depends on the day you read the page and on your case. Read the government's page then, and ask the employer, who files the petition.

The timeline has 5 events, from Proclamation to Your case.

Which version applies to you depends on the day you read the page, so treat every visa or legal fact as dated: read the government’s page on the day you decide, ask the employer that files the petition, and take advice from a qualified adviser where the stakes are high. This lesson is general information, not immigration or legal advice.

Checkpoint

Check: Visa and legal facts from the source

  1. One question A forum post says a visa fee rule changed recently. What do you rely on before you decide?

    Choose one answer.

    Show the answer: One question

    Answer: The government's own page, read on the day, and the employer that files the petition

    Treat every visa or legal fact as dated: read the official page on the day, ask the employer, and take qualified advice where the stakes are high.

Three explanations, scored: a layoff, a two-year gap and a career switch Pro: opens with a Pro, Premium or Ultimate pass

The checker above catches the mechanical failures; this part adds the judgement it cannot make. It scores a weak and a strong version of a gap and of a switch, answers the follow-ups each invites, and plans the first weeks back after a break.

In this part:

  • Four answers through a stricter checker, and what it still misses
  • The follow-ups each one invites, and short replies
  • A gap you would rather not explain in detail
  • Coming back after a break: the first four weeks

1 runnable example (Python) · about 4 minutes

Opening this part with your pass…

This part opens with any MySmartCoPilot pass.

  • Pro pass · 1 week₹79$2.99
  • 30 days₹179$5.99
  • 1 year₹1,699$45

One payment; a pass never renews. The price shown is the total you pay: no fees or charges are added at checkout.

It also opens every other in-depth part in Learn and every Pro tool. Sales are final, except where the law gives you a right to withdraw, for example in the EU and the UK (refund policy).

A salary in euros against an Indian offer, with the caveats beside the numbers Pro: opens with a Pro, Premium or Ultimate pass

A salary abroad can look twice as large and buy half as much. This part compares a salary of 60,000 euros with an Indian offer of 30,00,000 rupees at the exchange rate and by purchasing power, then sets out what changes when you would be a contractor or employed through a third party.

In this part:

  • Two conversions of one salary, worked with numbers
  • Employee, contractor or employed through a third party
  • What to settle before the final round of a role abroad
  • What to keep from the two parts

1 runnable example (Python) · about 6 minutes

Opening this part with your pass…Pro part. It opens with the same pass as the part above.

Practise: check your own explanation

Write the checker the first example runs, then run the sample tests:

Exercise · Easy · Python

Check an explanation of a gap, a layoff or a switch

Write check_explanation(text), which returns the problems of a short explanation of a gap, a layoff or a career switch, as a list of strings in the order below, or an empty list when it passes. The starter gives you LIMIT, FORWARD and BLAME.

  1. "over 60 words (N)" when the text has more than LIMIT words, where N is the count. Count words with text.split().
  2. "the last sentence does not look forward" when the last sentence contains none of the phrases in FORWARD, compared in lower case. Sentences end with ., ! or ? followed by a space, so split after those.
  3. "blame word: <word>" for each word of BLAME, in the order of the list, that appears in the text as a whole word, in any case: unfairly does not count as unfair.

For example, "My role was one of 120 cut when the company closed its mobile team. I am now looking for an Android role." passes: 22 words, a last sentence with "now" and "looking for", and no blame word.

Starter code · explanation.py

"""Check a short explanation of a gap, a layoff or a career switch."""

import re

LIMIT = 60
FORWARD = ("ready", "looking for", "next", "now", "want to", "keen to", "plan to")
BLAME = ("unfair", "fault", "blame", "toxic", "terrible", "useless", "incompetent", "hate")


def check_explanation(text):
    """The explanation's problems, in order, or [] when it passes.

    >>> check_explanation("My role was cut when the team closed. I am now looking for an Android role.")
    []
    """
    # Write your solution here.
    return []
The sample tests · test_explanation.py
from explanation import check_explanation

STRONG = ("My role was one of 120 cut when the company closed its mobile team. Since then I have finished the "
          "offline-sync feature I started there as an open-source library. I am now looking for a team that builds "
          "Android apps for people on slow networks.")


def test_the_strong_layoff_answer_passes():
    """45 words, a forward-looking last sentence, no blame"""
    assert check_explanation(STRONG) == []


def test_too_long():
    """more than 60 words is reported with the count"""
    text = "I did a lot of things in that time. " * 8 + "I am ready now."
    assert check_explanation(text) == ["over 60 words (76)"]


def test_last_sentence_must_look_forward():
    """a forward word earlier in the text does not count"""
    text = "I am ready to explain. I was laid off when the team closed."
    assert check_explanation(text) == ["the last sentence does not look forward"]


def test_blame_words_in_list_order():
    """each blame word is reported once, in the order of the list"""
    text = "It was unfair and terrible, and the fault was theirs. Now I want to move on."
    assert check_explanation(text) == ["blame word: unfair", "blame word: fault", "blame word: terrible"]


def test_whole_words_only():
    """unfairly is not the blame word unfair"""
    text = "The cuts fell unfairly on contractors, me among them. I am ready for a permanent role."
    assert check_explanation(text) == []


def test_case_does_not_matter():
    """a blame word in capitals still counts"""
    text = "TOXIC is the only word for it. Next, I want a calmer team."
    assert check_explanation(text) == ["blame word: toxic"]


def test_question_and_exclamation_end_sentences():
    """the last sentence follows a question mark or an exclamation mark too"""
    text = "Why did I leave? The project ended! I am keen to join a product team."
    assert check_explanation(text) == []


def test_all_problems_together():
    """the rules are reported in their order"""
    text = "I hate how it went, and it was useless. " * 7 + "That is all."
    assert check_explanation(text) == ["over 60 words (66)", "the last sentence does not look forward",
                                       "blame word: useless", "blame word: hate"]
A hint

re.split(r"(?<=[.!?])\s+", text.strip()) splits after each sentence end and keeps the punctuation; take the last piece. For whole words, re.search(rf"\b{word}\b", text.lower()) matches unfair but not unfairly.

The sample tests run on this device, in your browser (Pyodide): nothing is sent to mysmartcopilot.com. The first run downloads Python (about 13.5 MB), which is kept for the next runs. A check in your browser is feedback for you, not proof that the code is right for every input.

Then check yourself, weakest idea first:

Practice that adapts to you

Practise this lesson

8 questions about 7 ideas of this lesson. Each answer is explained at once, and what you get right is kept in this browser.

  1. Question 1 of 8 Your gap was for a health matter. How much detail do you owe an interviewer?

    Choose one answer.

    Show the answer: Question 1 of 8

    Answer: None beyond the kind of reason; then give what you did since and what you are ready for

    Name the kind of reason, give the evidence of the time since, and say what you are ready for.

  2. Question 2 of 8 Your explanation of a gap has 74 words. How many must go to meet the rule of the lesson's checker?

    Type a number.

    Show the answer: Question 2 of 8

    Answer: 14 words

    The rule allows at most 60 words, so 74 − 60 = 14 must go. Cut the background first and keep the evidence and the direction.

  3. Question 3 of 8 What does Google's hiring page tell recent graduates and people with limited work experience to include in a resume?

    Choose one answer.

    Show the answer: Question 3 of 8

    Answer: School-related projects or coursework that show relevant skills and knowledge

    For a switch, the same advice holds: lead with projects people use and code from your earlier work.

  4. Question 4 of 8 Which way of naming a career switch is strongest?

    Choose one answer.

    Show the answer: Question 4 of 8

    Answer: As a decision, with what drew you and the evidence that it was right

    "The part of the job I loved was the scripts; now I want that to be the whole job" names a decision and points to the evidence.

  5. Question 5 of 8 A remote role abroad offers you a contract through a third party. What do you ask first?

    Choose one answer.

    Show the answer: Question 5 of 8

    Answer: Whether you would be the third party's employee or a contractor, and what that means for tax, benefits and protection

    Ask whether you would be an employee, a contractor or employed through a third party, in writing, before you compare.

  6. Question 6 of 8 An agent recruiting for a job abroad asks for a service charge of 80,000 rupees. What does the Ministry of External Affairs advisory say?

    Choose one answer.

    Show the answer: Question 6 of 8

    Answer: Under the Emigration Act, 1983, an agent may charge at most 30,000 rupees plus GST, with a receipt

    Check the agent on the eMigrate portal's list of active agents, and refuse a charge above the cap.

  7. Question 7 of 8 Why does the lesson treat every visa or legal fact as dated?

    Choose one answer.

    Show the answer: Question 7 of 8

    Answer: Rules change quickly; one H-1B payment rule changed several times in a short time

    Read the government's own page on the day you decide, and ask the employer that files the petition.

  8. Question 8 of 8 Your offer depends on an H-1B petition, and a friend says the extra payment rule no longer applies. What do you do?

    Choose one answer.

    Show the answer: Question 8 of 8

    Answer: Read the USCIS page on the day, and ask the employer, which files the petition, what applies to yours

    For any visa fact that decides your plans, the official page on the day and the employer that files are the two sources to use.

Interview questions

Recruiters and hiring managers ask about gaps, layoffs and switches early, and about visas on the first call:

  1. Fresher to senior · Warm-up

    Tell me about the gap in your resume.

    Answer in three sentences and under a minute: what happened, what you did since, and what you are ready for. "I took a year out when my contract ended, to help run my family's shop. While there I built a small web app for its billing, which cut the month-end close from three days to one. I am ready now to return to product engineering full-time." You owe no detail about health or family; naming the kind of reason is enough. Avoid blame, avoid a long story, and keep the same three sentences in every round and form, so that no two versions disagree.

  2. Mid to senior

    You were laid off in a restructuring three months ago. Why did it happen, and why should we hire you now?

    Model answer, Pro. Model answers open with any pass; prices are in the notice on this page. First step and follow-ups

  3. Mid to senior

    You spent five years as a mechanical engineer. Why would you succeed as a software engineer here, against candidates with computer science degrees?

    Model answer, Pro. First step and follow-ups

  4. Fresher to senior

    The role is in another country, and you would need a work visa. When and how do you raise it, and what do you check before the final round?

    Model answer, Pro. First step and follow-ups

Key takeaways

  • Explain gaps and layoffs in three sentences: what happened, what you did since and what you are ready for.
  • Career switches lead with evidence: a project people use, code from the old job and knowledge of the domain.
  • Check roles abroad early: who sponsors the visa, whether the agent is registered, which visa the offer uses, and your employment status.
  • Read visa and legal facts on the government’s own page on the day you decide.

Terms in this lesson

employer of record
A third party that is a worker's legal employer and runs payroll, tax and benefits while the worker works for another company, often in another country.
purchasing power parity (PPP)
A rate between two currencies at which the same basket of goods and services costs the same in both countries. It compares what pay buys, where the exchange rate compares what it converts to.
registered recruiting agent
In India, an agency registered with the Ministry of External Affairs to recruit workers for jobs abroad. The list of active agents is published on the eMigrate portal.
visa sponsorship
An employer's application to a government for permission to employ a foreign worker, which the worker cannot make alone. In the United States, for example, the employer files the H-1B petition.

References

Related tools

Report a problem with this lesson

Quick answers and tool search

Type to search tools or to get a quick answer, for example 18% of 2500. Use the up and down arrow keys to move through the results, Enter to choose, and Escape to close.