REVATURE INTERVIEW EXAM
What is CSS, and how does it work? - ANSWER Cascading style sheets. It
styles the webpage by specifying how HTML components should be displayed.
What is MVC? - ANSWER Model View Controller
It consists of three components."
The view is the visual component with which users interact.
One that depicts the thing being modelled, and
The controller is anything that oversees data flow between the various
components.
What are selectors? List some - ANSWER Patterns used to pick the element
you want to modify.class, #id, :visited.
How do you open a link in a new tab or browser window? - Answer <a
href="url" target="_blank">.
What is the correct HTML for creating a drop-down list? – Ans
wer the <select> element.
What is the JavaScript syntax for changing an element on an HTML page? -
ANSWER document.getElementById("demo").InnerHTML = "Hello, World!";
, What are the definitions of list, set, and map respectively? When should you
utilize each? - ANSWER The List interface is an ordered collection that accepts
duplicate and null values. We can retrieve elements by index.
When you need to retrieve elements often, use the index; when you want the
elements to be stored in the order they were inserted, use the list.
A set is an unordered collection that does not allow duplicate elements. It
accepts null entries, but we cannot retrieve them by key or index.
When the collection should consist of unique elements and no duplicates are
accepted, then use "Set".
.
The Map interface is an unordered collection that supports duplicate elements
but not duplicate keys. It accepts null elements, but not null keys.
When data should be stored in the form of keys and values, use a map.
Why doesn't Java enable multiple inheritance? - ANSWER It only supports it
through interfaces. It does not support multiple inheritance in order to avoid the
complexity and disputes that can arise. For example, if more than one superclass
uses the same base class, the subclass will receive two copies of the identical
properties and methods, resulting in ambiguity.
Why are strings immutable? - ANSWER When a string is generated and the
string already exists in the pool, the reference to the existing string is returned
rather than generating a new object and returning its reference. If a string is
mutable, altering it with one reference will result in the incorrect value for the
remaining references.
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller luzlinkuz. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $10.99. You're not tied to anything after your purchase.