Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 4 out of 33 pages
Exam (elaborations)

Revature Interview Questions with correct answer5

Document preview thumbnail
Preview 4 out of 33 pages

Revature Interview Questions with correct answer5

Content preview

Revature Interview Questions with correct answers
What is the difference between method overload and method overriding?
Correct Answer-Overloading occurs when two or more methods in one
class have the same method name but different parameters


Overriding means having two methods with the same method name and
parameters


Polymorphism applies to overriding, not to overloading


Overriding is a run-time concept while overloading is a compile-time
concept.


What are the four pillars of OOP? Correct Answer-Inheritance
Polymorphism
Encapsulation
Abstraction


What is a do-while loop? Correct Answer-It is similar to the while loop
except for the fact that the do statement executes at least once, then it
will execute the while expression until it is false


What is a loop? List them. Correct Answer-A loop statement allows us
to execute a statement or group of statements multiple times

,The three kinds of loops are:
For Loop
While Loop
Do While Loop


What is a conditional statement? Correct Answer-An expression that
only execute if the given condition is true


What does WHERE do in SQL? Correct Answer-The WHERE clause is
used to filter records.


The WHERE clause is used to extract only those records that fulfill a
specified condition.


How do you classify a variable in Javascript? Correct Answer-You
declare a JS variable with the var keyword: var carName and after the
declaration, the variable has no value (technically it has a value of
undefined)


What is the purpose of CSS? Correct Answer-Formatting/styling
webpages


What is HTML and provide a list of tags Correct Answer-Hyper Markup
Language

,Some tags include: p, a, ul, ol, head, body, header, footer, strong, u, em.


What is the difference between a queue and a stack? Correct Answer-A
stack is an ordered list of element where all insertions and deletions are
made at the same end, whereas a queue is exactly the opposite of a stack
which is open at both the ends meaning one end is used to insert data
while the other to remove data. A stack is known as LIFO and queue is
known as a FIFO rule.


What is the difference between an array and an array list? Correct
Answer-Arrays have a fixed length and can store both objects and
primitives, while Arraylists can only store objects and have a variable
length.


What is the difference between a set and a map? Correct Answer-List
allows duplicate elements. Any number of duplicate elements can be
inserted into the list without affecting the same existing values and their
indexes.


Set does not allow duplicates. Set and all of the classes which
implements Set interface should have unique elements.


Map stored the element as key & value pair. Map does not allow
duplicate keys while it allows duplicate values.

, What is inheritance? Explain and give an example Correct Answer-
Inheritance in Java is a mechanism in which one object acquires all the
properties and behaviors of a parent object.


What is the difference between an abstract class and an interface?
Correct Answer-An abstract-class allows you to create functionality that
subclasses can implement or override


An interface only allows you to define functionality, not implement it.


What is a string? Explain and give an example. Correct Answer-A string
is a data type, such as an integer and floating point unit, but it is used to
represent text rather than numbers.


For example, the word "hamburger" and the phrase "I ate 3 hamburgers"
are both strings. Even "12345" could be considered a string.


What is polymorphism? Explain and give an example. Correct Answer-
Polymorphism is the ability of an object to take on many forms. The
most common use of polymorphism in OOP occurs when a parent class
reference is used to refer to a child class object.


What is abstraction? Explain and give an example. Correct Answer-
Abstraction is a process of hiding the implementation details and
showing only functionality to the user. It lets you focus on what the
object does instead of how it does it.

Document information

Uploaded on
October 8, 2024
Number of pages
33
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$15.49

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
cracker
3.8
(400)
Sold
2158
Followers
1346
Items
50067
Last sold
5 days ago




Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions