Subjects
PRICING
COURSES
SIGN IN
Start Free Trial
Nikolas D.
Professional Full Stack Developer in the Startup World
Tutor Satisfaction Guarantee
Ruby Programming
TutorMe
Question:

def math_question(param_a: 1, param_b: 5, param_c: ) param_c - param_a - param_b end How would you call this method with only one argument and get the result 4?

Nikolas D.
Answer:

math_question(param_c: 10) The method declaration uses keyword arguments which allow for declaring named optional arguments with default values (i.e. param_a: 1) or named required arguments (i.e. param_c: ). The only required argument is param_c leaving param_a set at 1 and param_b set at 5. 10 - 1 - 5 = 4

Javascript Programming
TutorMe
Question:

var batter; var pitcher = null; function baseball( ) { if ( batter == pitcher) { return 'First Base'; } else if ( batter === pitcher) { return 'Second Base'; } else { return 'Third Base'; } } What is the result of baseball( ) and why?

Nikolas D.
Answer:

First Base; In javascript == is a value comparison while === is a value AND type comparison. Variable batter is undefined and variable pitcher is null. batter == pitcher evaluates to true because both variables have the value of false. batter === pitcher evaluates to false because both variable have the value of false, but they are not the same type.

Java Programming
TutorMe
Question:

The most common line of code in Java is: public static void main(String[] args) Concisely describe the 5 components. - public - static - void - main - String[] args

Nikolas D.
Answer:

public: A method privacy modifier that makes the method callable by outside classes. static: A method modifier that makes the method a class method instead of an instance method. void: A method modifier that specifies that the method does not return a value. main: A reserved method name used by the Java Virtual Machine to start program execution. String[] args: An optional parameter array of Strings.

Send a message explaining your
needs and Nikolas will reply soon.
Contact Nikolas
Ready now? Request a lesson.
Start Session
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 Session" 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.