Gmail - Interview!!
Gmail - Interview!!
1 message
" Before introducing myself I just want to say that my English is not very strong right now, but I'm working on it. Please.. excuse me if I
make many mistakes or use a little hindi."
Introduction
" • Hi, I'm Ritika Sandalwar. Currently pursuing an online diploma in Computer Applications from STP Computer Education.
• Earlier I completed my first year of B.C.C.A at Dhanwate National College with 8.8 cgpa, but had to drop out due to financial and
documentation issues.
• I've also done certification courses like in Java fundamentals and attended a online bootcamp on HTML and CSS.
• Additionally, I'm little familiar with tools like figma and Git/GitHub.
• Although I had some more courses but they were like primarily for the sake of obtaining certificates rather than gaining in-depth
knowledge."
Git/GitHub
Q. Git repository?
- A folder where all changes are saved.
: Like if we had a folder named project and we made some changes in it like adding some files or deleting so the .git folder in that
project folder will pick it up all the changes that were made will be in git repository.
Java
Q. What is class?
- A class is a blueprint or template for creating objects. It defines the structure and behavior of the objects by specifying their
properties and functions.
Q. What is an object?
- An instance of a class.
Q. Garbage Collection?
- It's an automatic process of removing objects with no reference variable.
Inheritance : Reusing code by deriving one class from another. Letting the child class reuse the features of parent class.
Polymorphism : Using one method in multiple ways, like having the same function name but doing different things.
Palindrome
- It's a string that reads the same forward and backward, such as "radar" or "level" etc.
I don't know how to write it in java but I had seen the algorithm of it somewhere it goes like this :
Algorithm:
Read the input string.
Reverse the string.
Compare the original string with the reversed string:
If they are the same, it is a palindrome.
Otherwise, it is not a palindrome.
Fibonacci
- The Fibonacci series starts with 0 and 1. Each number in the series is the sum of the previous two numbers.
In the program:
- We start with `first = 0` and `second = 1`.
- We use a loop to calculate the next number as `first + second`.
- Then, we update `first` and `second` for the next calculation.
• The program repeats this process for the number of terms specified by the user and prints the series.