Enable contrast version

# Tutor profile: Lauren T.

Inactive
Lauren T.
Stanford graduate, Tutor for 8 years, College prep & STEM
Tutor Satisfaction Guarantee

## Questions

### Subject:Visual Basic Programming

TutorMe
Question:

What is the difference in variable scope of Dim, Private, Public in modules and subroutines?

Inactive
Lauren T.

As one example: Module A Dim str_2A As String Sub testSub_1A() Dim str_1A As String str_1A = "oneA" End Sub Sub testSub_2A() str_2A = "twoA" End Sub Sub toPrint() Call testSub_1A Call testSub_2A Debug.Print str_1A ' [returns nothing] Debug.Print str_2A ' [returns "twoA"] End Sub _______________________________________________________________________ Module B Sub testSub_1A() Dim str_1A As String str_1A = "oneA" End Sub Sub testSub_2A() Dim str_2A As String str_2A = "twoA" End Sub Sub toPrint() Call testSub_1A Call testSub_2A Debug.Print str_1A ' [returns nothing] Debug.Print str_2A ' [returns nothing] End Sub Module A defines the string variable str_2A in the module scope, not the subroutine scope. Therefore, the value is maintained through all subs in that module. So the toPrint() sub still retains the definition set in another sub, testSub_2A, within the same module.

### Subject:SAT

TutorMe
Question:

In the SAT Reading section, the passage you read tells you the following things: Pluto is no longer considered a planet, the Earth is flat, and metamorphic rock is found on four continents. The question related to that passage asks you to select all that are TRUE according to the passage. (A) Snails have the ability to shed their shells. (B) The Earth is flat. (C) Pluto is a planet. (D) Sedimentary rock is found on more continents than metamorphic rock. (E) None of the above

Inactive
Lauren T.

Of course you know the Earth is not flat, but for the purpose of the SAT Reading section, you MUST take in to account the information that is provided in the passage. Nothing is mentioned about snails, so skip this. Pluto is not a planet, they tell us this, so make sure to read the answer choice carefully. There is no mention of other type of rocks, skip! So the correct answer is B.

### Subject:ACT

TutorMe
Question:

In the ACT Science section, the passage you read tells you the following things: Pluto is no longer considered a planet, the Earth is flat, and metamorphic rock is found on four continents. The question related to that passage asks you to select all that are TRUE according to the passage. (A) Snails have the ability to shed their shells. (B) The Earth is flat. (C) Pluto is a planet. (D) Sedimentary rock is found on more continents than metamorphic rock. (E) None of the above

Inactive
Lauren T.

Of course you know the Earth is not flat, but for the purpose of the ACT Science section, you MUST take in to account the information that is provided in the passage. Nothing is mentioned about snails, so skip this. Pluto is not a planet, they tell us this, so make sure to read the answer choice carefully. There is no mention of other type of rocks, skip! So the correct answer is B.

## Contact tutor

Send a message explaining your
needs and Lauren will reply soon.
ContactÂ Lauren