Petrobras frontend mock interview
Pick from 12 questions candidates reported at Petrobras or its interview guide picks, solve them against the clock, then answer the follow-ups.
Build your interview
Pick up to 6 questions, or add them at random. They share one clock and open in any order.
Petrobras's 12 questions are part of Pro. Choose Google, Meta, Amazon, Microsoft and Flipkart to pick from their free questions.
Your interview
0 of 6
0min on one clock
- 1Choose a free company to start
Petrobras mock interviews are part of Pro
With a free account you can take mock interviews for Google, Meta, Amazon, Microsoft and Flipkart.
The Petrobras loop
The rounds Petrobras runs for frontend roles, from its interview guide. The mock interview rehearses the coding and design rounds.
- 1Edital and inscriçãoPetrobras publishes an edital for a processo seletivo público, and you apply on the exam board's site for one ênfase. Without an open edital there is no way in: Petrobras says it keeps no CV database.
- 2Objective exam: conhecimentos básicos (P1)In the 2021 edital, 50 true-or-false items on Portuguese and reading texts in English. You needed at least 10 points here, with a wrong answer cancelling a right one.
- 3Objective exam: conhecimentos específicos (P2)70 true-or-false items on the ênfase's three blocos. For Engenharia de Software that meant software engineering, architecture, web, languages, data structures and algorithms, databases, cloud, security and IT governance. Minimum 21 points, and 36 overall.
- 4Avaliação multiprofissional and heteroidentificação (quota applicants)Only for candidates applying under the disability or Black-candidate quotas: a multiprofessional assessment or a heteroidentification panel, held in April 2022 for the 2021 exam.
- 5Comprovação de requisitosAn eliminatory document check run by Petrobras when you are called up: identity, CPF, electoral documents, and proof of the degree the ênfase requires.
- 6Exames médicos admissionaisAn eliminatory pre-employment medical: physical and mental health assessment, a general medical and dental exam, and specialist exams depending on the ênfase.
- The full Petrobras interview guide
Petrobras questions in this mock interview
Every one of them opens with Pro.
JavaScript round11
- Valid parentheses using a stack15 min
- Escape HTML and sanitize URLs to close XSS holes30 min
- Implement a binary-heap priority queue and merge k sorted lists35 min
- Protect a web app from CSRF with signed tokens, Origin checks and SameSite cookies40 min
- Estimate delivery times on a weighted road graph with Dijkstra and a binary heap60 min
- Implement a stable merge sort20 min
- Implement in-place quicksort with a random pivot20 min
- Build a binary search tree class with insert, search, delete and in-order traversal35 min
- Implement singleton, factory and strategy patterns idiomatically in JavaScript40 min
- Sort a linked list with merge sort, and find where two linked lists intersect40 min
- Implement jest.fn() mock functions: mockReturnValueOnce, mockResolvedValue, mock.results and mockReset40 min
How the mock interview works
- 1Step 1
Build your interview
Pick how many questions you want from each round, the level and a company. Google, Meta, Amazon, Microsoft and Flipkart are free with an account; every other company is in Pro.
- 2Step 2
Solve them against the clock
The room goes full screen: your questions down the left, the problem beside a real editor with tests, and one clock for the whole set. Open the questions in any order.
- 3Step 3
Answer the follow-ups
Then the interviewer asks follow-up questions. Answer each one out loud, open the model answer, and grade yourself as strictly as an interviewer would.
- 4Step 4
Read your debrief
Tests or design, follow-ups and time add up to a score out of 100 for each question, with the verdict a debrief would give. Every score is saved to your dashboard.