Problem Statement
What is the expected value of a fair six-sided die roll?
Explanation
E[X] = (1+2+3+4+5+6)/6 = 21/6 = 3.5.
Code Solution
SolutionRead Only
E[X]=Σx·(1/6)=3.5
Get the Preplance app for a seamless learning experience. Practice offline, get daily streaks, and stay ahead with real-time interview updates.
Get it on
Google Play
4.9/5 Rating on Store
Aptitude & Reasoning · Interview Question
Detailed answer, explanation and code for this interview question. Ideal for Aptitude & Reasoning interview preparation, coding rounds and viva questions.
What is the expected value of a fair six-sided die roll?
E[X]=Σx·(1/6)=3.5
Master Aptitude & Reasoning with our complete collection of questions, tutorials and guides.