Roche Interview Questions

Roche Interview Guides

Click or hover over a slice to explore questions for that topic.
Machine Learning
(17)
Data Structures & Algorithms
(13)
SQL
(11)
Behavioral
(6)
Statistics
(4)

Roche Interview Questions

Practice for the Roche interview with these recently asked interview questions.

QuestionTopicDifficulty
SQL
Medium

A biomedical research lab is studying treatment effectiveness across different brain cancer categories. Each patient is associated with one cancer type and may undergo zero or more treatments. Write a query to perform an aggregated analysis across all cancer categories.

For each cancer type, compute:

  1. Total number of patients
  2. Percentage of patients who survived ≥ 12 months
    • Round to 2 decimal places
    • A “1-year survivor” is defined as survival_months >= 12
  3. Average number of treatments per patient
    • Round to 2 decimal places
    • Include patients with zero treatments

Sort the results in descending order by survival rate.

Example 1

Input :

Table patients

Column Type
patient_id INTEGER
cancer_type VARCHAR
survival_months INTEGER

Table treatments

Column Type
treatment_id INTEGER
patient_id INTEGER
treatment_name VARCHAR
treatment_date DATE

Output :

Column Type
cancer_type VARCHAR
total_patients INTEGER
pct_one_year_survivors DECIMAL
avg_treatments_per_patient DECIMAL

Example 2

Input:

patients table

patient_id cancer_type survival_months
1 Glioblastoma 10
2 Meningioma 24
3 Astrocytoma 15
4 Glioblastoma 14
5 Meningioma 7

treatments table

treatment_id patient_id treatment_name treatment_date
201 1 Radiation 2024-03-01
202 1 Chemotherapy 2024-06-01
203 2 Surgery 2024-02-01
204 4 Chemotherapy 2024-08-01

Output:

cancer_type total_patients pct_one_year_survivors avg_treatments_per_patient
Astrocytoma 1 100.00 0.00
Meningioma 2 50.00 0.50
Glioblastoma 2 50.00 1.00

Explanation:

Astrocytoma

  • Total patients: 1
  • Survivors: 11 → 100.00%
  • Treatments: 0 total → 0.00 per patient

Meningioma

  • Total patients: 2
  • Survivors: patient 2 (24 months) → 50.00%
  • Treatments: 1 total (patient 2) → 0.50 per patient

Glioblastoma

  • Total patients: 2
  • Survivors: patient 4 (14 months) → 50.00%
  • Treatments: 3 total (2 for patient 1, 1 for patient 4) → 1.00 per patient
Machine Learning
Medium
Behavioral
Easy
Loading pricing options

View all Roche questions

Challenge

Check your skills...
How prepared are you for working at Roche?

Roche Salaries by Position

Business Intelligence*
$200K
Business Intelligence
Median: $200K
Mean (Average): $200K
Data points: 1
$190K
Product Manager
Median: $190K
Mean (Average): $190K
Data points: 3
$119K
$232K
Software Engineer
Median: $170K
Mean (Average): $167K
Data points: 31
$88K
$175K
Data Scientist
Median: $144K
Mean (Average): $142K
Data points: 21
Data Analyst*
$139K
Data Analyst
Median: $139K
Mean (Average): $139K
Data points: 1

Most data science positions fall under different position titles depending on the actual role.

From the graph we can see that on average the Business Intelligence role pays the most with a $200,000 base salary while the Data Analyst role on average pays the least with a $139,000 base salary.

Discussion & Interview Experiences

?
There are no comments yet. Start the conversation by leaving a comment.