Enable contrast version

Tutor profile: Shubham G.

Inactive
Shubham G.
Freelance Software Engineer
Tutor Satisfaction Guarantee

Questions

Subject: SQL Programming

TutorMe
Question:

What is the difference between CHAR and VARCHAR2 datatype in SQL?

Inactive
Shubham G.
Answer:

Both of these datatypes are used for characters but varchar2 is used for character strings of variable length whereas char is used for character strings of fixed length. For example, if we specify the type as char(5) then we will not be allowed to store string of any other length in this variable but if we specify the type of this variable as varchar2(5) then we will be allowed to store strings of variable length, we can store a string of length 2,3 or 4 in this variable.

Subject: Java Programming

TutorMe
Question:

What is “this” keyword in java?

Inactive
Shubham G.
Answer:

Within an instance method or a constructor, this is a reference to the current object — the object whose method or constructor is being called. You can refer to any member of the current object from within an instance method or a constructor by using this. Usage of this keyword 1. Used to refer current class instance variable. 2. To invoke current class constructor. 3. It can be passed as an argument in the method call. 4. It can be passed as argument in the constructor call. 5. Used to return the current class instance. 6. Used to invoke current class method (implicitly)

Subject: C++ Programming

TutorMe
Question:

What are the different ways to initialize a vector in C++?

Inactive
Shubham G.
Answer:

1. Initializing by one by one pushing values vector<int> vect; vect.push_back(10); vect.push_back(20); vect.push_back(30); 2. Specifying size and initializing all values int n = 3; // Create a vector of size n with all values as 10. vector<int> vect(n, 10); 3. Initializing like arrays vector<int> vect{ 10, 20, 30 } 4. Initializing from array int arr[] = { 10, 20, 30 }; int n = sizeof(arr) / sizeof(arr[0]); vector<int> vect(arr, arr + n); 5. Initializing from another vector vector<int> vect1{ 10, 20, 30 }; vector<int> vect2(vect1.begin(), vect1.end());

Contact tutor

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

Request lesson

Ready now? Request a lesson.
Start Lesson

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.