REVATURE INTERVIEW QUESTIONS AND ANSWERS
LATEST UPDATED 2024/2025 A COMPLETE EXAM
SOLUTION WITH CORRECT 100% CONFIRMED ANSWERS
GRADED A+ FOR SUCCESS
What are selectors? List some - CORRECT ANSWERS Patterns used to select the element you
want to change. .class, #id, :visited.
What is a wireframe? - CORRECT ANSWERS A visual guide that represents the skeletal
framework of a website. Wireframes are created for the purpose of arranging elements to best
accomplish a particular purpose.
What are HTML form methods? - CORRECT ANSWERS Specifies which http protocol should be
used when submitting form data. The options are Get and Post.
What is the box model? - CORRECT ANSWERS A box that wraps around every HTML element. It
consists of: margins, borders, padding, and the actual content.
How can you open a link in a new tab/browser window? - CORRECT ANSWERS <a href="url"
target="_blank">
What is the correct HTML for making a drop-down list? - CORRECT ANSWERS the <select>
element
Which input type defines a slider control? - CORRECT ANSWERS <input type="range">
Which HTML element is used to display a scalar measurement within a range? - CORRECT
ANSWERS The <meter> element
What is the syntax for referring to an external style sheet? - CORRECT ANSWERS <link
rel="stylesheet" type="text/css" href="mystyle.css">
,REVATURE INTERVIEW QUESTIONS AND ANSWERS
LATEST UPDATED 2024/2025 A COMPLETE EXAM
SOLUTION WITH CORRECT 100% CONFIRMED ANSWERS
GRADED A+ FOR SUCCESS
Which CSS property is used to change the text color of an element? - CORRECT ANSWERS color
How do you make each word in a text start with a capital letter? - CORRECT ANSWERS text-
transform: capitalize;
What is the javascript syntax to change an element of an HTML page? - CORRECT ANSWERS
document.getElementById("demo").innerHTML = "Hello World!";
When using the padding property; are you allowed to use negative values? - CORRECT
ANSWERS No
How do you select all p elements inside a div element? - CORRECT ANSWERS div p;
What is the syntax for creating a javascript array? - CORRECT ANSWERS var colors = ["red",
"green", "blue"];
What is a list, set, and map? When should you use each? - CORRECT ANSWERS List interface is
a ordered collection that allows duplicate and null values. We can get elements by index.
When there is a need to access elements frequently using the index, or when you want the
elements stored to maintain the insertion order then use list.
A Set is an unordered collection that won't allow duplicate elements. It allows null elements,
but we can't get elements by key or index .
, REVATURE INTERVIEW QUESTIONS AND ANSWERS
LATEST UPDATED 2024/2025 A COMPLETE EXAM
SOLUTION WITH CORRECT 100% CONFIRMED ANSWERS
GRADED A+ FOR SUCCESS
When the collection should be of unique elements and no duplicates are tolerated, then go
with "Set"
.
Map interface is a unordered collection that allows duplicate elements but not duplicate keys.
It allows null elements but not null keys.
When the data stored should be in the form of key and value then use map.
Why doesn't java support multiple inheritance? - CORRECT ANSWERS It supports it, just
through interfaces. It doesn't support multiple inheritance in order to avoid the complexity and
conflicts that result. For example, if more than one superclass has the same base class then the
subclass will receive 2 copies of the same attributes and methods, leading to ambiguity.
Is Javascript case sensitive? - CORRECT ANSWERS Yes
Why are strings immutable? - CORRECT ANSWERS When a string is created and if the string
already exists in the pool, the reference of the existing string will be returned, instead of
creating a new object and returning its reference. If a string is mutable, changing the string with
one reference will lead to the wrong value for the other references.
It would also lead to security issues, since strings are often used in the parameters for database
connections, opening a file, network connections, etc. If strings were mutable those values
could be changed and it would be a security risk.
It would also make hashmaps much less efficient, since they would have to check the hashcode
every time it was used.
LATEST UPDATED 2024/2025 A COMPLETE EXAM
SOLUTION WITH CORRECT 100% CONFIRMED ANSWERS
GRADED A+ FOR SUCCESS
What are selectors? List some - CORRECT ANSWERS Patterns used to select the element you
want to change. .class, #id, :visited.
What is a wireframe? - CORRECT ANSWERS A visual guide that represents the skeletal
framework of a website. Wireframes are created for the purpose of arranging elements to best
accomplish a particular purpose.
What are HTML form methods? - CORRECT ANSWERS Specifies which http protocol should be
used when submitting form data. The options are Get and Post.
What is the box model? - CORRECT ANSWERS A box that wraps around every HTML element. It
consists of: margins, borders, padding, and the actual content.
How can you open a link in a new tab/browser window? - CORRECT ANSWERS <a href="url"
target="_blank">
What is the correct HTML for making a drop-down list? - CORRECT ANSWERS the <select>
element
Which input type defines a slider control? - CORRECT ANSWERS <input type="range">
Which HTML element is used to display a scalar measurement within a range? - CORRECT
ANSWERS The <meter> element
What is the syntax for referring to an external style sheet? - CORRECT ANSWERS <link
rel="stylesheet" type="text/css" href="mystyle.css">
,REVATURE INTERVIEW QUESTIONS AND ANSWERS
LATEST UPDATED 2024/2025 A COMPLETE EXAM
SOLUTION WITH CORRECT 100% CONFIRMED ANSWERS
GRADED A+ FOR SUCCESS
Which CSS property is used to change the text color of an element? - CORRECT ANSWERS color
How do you make each word in a text start with a capital letter? - CORRECT ANSWERS text-
transform: capitalize;
What is the javascript syntax to change an element of an HTML page? - CORRECT ANSWERS
document.getElementById("demo").innerHTML = "Hello World!";
When using the padding property; are you allowed to use negative values? - CORRECT
ANSWERS No
How do you select all p elements inside a div element? - CORRECT ANSWERS div p;
What is the syntax for creating a javascript array? - CORRECT ANSWERS var colors = ["red",
"green", "blue"];
What is a list, set, and map? When should you use each? - CORRECT ANSWERS List interface is
a ordered collection that allows duplicate and null values. We can get elements by index.
When there is a need to access elements frequently using the index, or when you want the
elements stored to maintain the insertion order then use list.
A Set is an unordered collection that won't allow duplicate elements. It allows null elements,
but we can't get elements by key or index .
, REVATURE INTERVIEW QUESTIONS AND ANSWERS
LATEST UPDATED 2024/2025 A COMPLETE EXAM
SOLUTION WITH CORRECT 100% CONFIRMED ANSWERS
GRADED A+ FOR SUCCESS
When the collection should be of unique elements and no duplicates are tolerated, then go
with "Set"
.
Map interface is a unordered collection that allows duplicate elements but not duplicate keys.
It allows null elements but not null keys.
When the data stored should be in the form of key and value then use map.
Why doesn't java support multiple inheritance? - CORRECT ANSWERS It supports it, just
through interfaces. It doesn't support multiple inheritance in order to avoid the complexity and
conflicts that result. For example, if more than one superclass has the same base class then the
subclass will receive 2 copies of the same attributes and methods, leading to ambiguity.
Is Javascript case sensitive? - CORRECT ANSWERS Yes
Why are strings immutable? - CORRECT ANSWERS When a string is created and if the string
already exists in the pool, the reference of the existing string will be returned, instead of
creating a new object and returning its reference. If a string is mutable, changing the string with
one reference will lead to the wrong value for the other references.
It would also lead to security issues, since strings are often used in the parameters for database
connections, opening a file, network connections, etc. If strings were mutable those values
could be changed and it would be a security risk.
It would also make hashmaps much less efficient, since they would have to check the hashcode
every time it was used.