Enable contrast version

# Tutor profile: Stephanie N.

Stephanie N.
Experienced Math and Comp Sci Tutor; Senior Software Developer

## Questions

### Subject:SQL Programming

TutorMe
Question:

What is the difference between DELETE and TRUNCATE in SQL Server?

Stephanie N.

- DELETE keeps the table's auto-increment value while TRUNCATE does not. For example, if the last row in a table has ID 20 and we delete that row, then the next inserted item will have an ID of 21. However, if we truncate the table, then the IDs start over at 1. - You can delete specific rows but truncate removes all of the rows in the table. - TRUNCATE is faster than DELETE

### Subject:Java Programming

TutorMe
Question:

How do we recursively find the factorial of an integer? Write a Java function to do this.

Stephanie N.

Below is a recursive Java function to find the factorial of a number: public static int factorial(int n) { if (n == 0) { return 1; // base case } return n * factorial(n-1); // recursive case }

### Subject:Algebra

TutorMe
Question:

If the first number in an arithmetic sequence is 1 and the fifth number in the sequence is 21, what is the tenth number in the sequence?

Stephanie N.

The formula to find the nth number in an arithmetic sequence is: an = a1 + d(n-1) If a1 = 1 and a5 = 21, we can solve for d: 21 = 1 + d(5-1) 21 = 1 + 5d - d 21 = 1 + 4d 20 = 4d d = 5 So the common difference equals 5. We can use a1 = 1 and d = 5 to solve for a10: a10 = 1 + 5(10-1) a10 = 1 + 50 - 5 a10 = 46 Therefore, the answer is 46.

## FAQs

What is a lesson?
A lesson is virtual lesson space on our platform where you and a tutor can communicate. You'll have the option to communicate using video/audio as well as text chat. You can also upload documents, edit papers in real time and use our cutting-edge virtual whiteboard.
How do I begin a lesson?
If the tutor is currently online, you can click the "Start Lesson" button above. If they are offline, you can always send them a message to schedule a lesson.
Who are TutorMe tutors?
Many of our tutors are current college students or recent graduates of top-tier universities like MIT, Harvard and USC. TutorMe has thousands of top-quality tutors available to work with you.
BEST IN CLASS SINCE 2015
TutorMe homepage