--- Analysis HAS DIAGRAM: NO DIAGRAM TYPE: None SUBDOMAIN: Machine Learning & Data Science...
MathWorks technical mcq question, verified with a worked answer. Free to practise - no sign-up.
class Derived: public Base
{
public:
void show()
{
cout << "Show Function in Derived class called";
}
};
int main()
{
Base obj;
Base *b;
Derived d;
b = &d;
b->show();
}
Pick ONE OR MORE options
- Prints "Show Function in Derived class called"
- Error on line "b = &d;"
- Error on line "Base obj;"
- Error on line "Derived d;"
Clear Selection
Analysis
HAS_DIAGRAM: NO
DIAGRAM_TYPE: None
SUBDOMAIN: Machine Learning & Data Science
QUESTION_TEXT:
6. (Math Question) Rolling a dice
If a dice is rolled 10 times, what is the probability that 2 will appear 4 times?
Pick ONE option
Show answer & explanation
Answer: A. A) C(10,4)(1/6)⁴(5/6)⁶
Standard evaluation according to engineering and computational science principles.
Step-by-step Derivation:
Step 1: Analyze problem specification.
Step 2: Derive theoretical solution.
Step 3: Select corresponding answer option.