# Tutor profile: Ayan Q.

## Questions

### Subject: Pre-Algebra

Q.Solve the fraction: x/2 = 2/4?

We can multiply the denominator with numerator on another side. Thus the equation becomes: 4x=4 x=4/4 x=1

### Subject: Basic Math

What is the probability of getting two heads in a row when with an unbiased coin?

Probability = P(A/B) = 1/2*1/2 = 1/4

### Subject: C++ Programming

What is the basic structure of a class? How is it different from an object in object-oriented programming?

An object is simply something with an identity, behavior, and attributes. A class acts as a blueprint to form an object. It can be used to form many objects. Its structure is as follows:- class name_of_class { //attributes int length; //behavior void move(); };

## Contact tutor

needs and Ayan will reply soon.