HTML/CSS |
|
100% |
JavaScript |
|
100% |
jQuery |
|
100% |
TypeScript |
|
100% |
Java |
|
81% |
Angular |
|
50% |
Java Spring |
|
50% |
Order |
Question / Answer
|
Score | Time | Difficulty | Type | Max points | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 |
Q:
Add necessary HTML attrib...
A: <!DOCTYPE html> <html> <h... |
4min 16sec
(expected 7min) |
Easy | CODE | 3 points | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
HTML/CSS
HTML/CSS
HTML is the standard markup language for creating web pages. It's an essential skill for anyone creating web pages of any complexity.
HTML Attributes
HTML attributes provide extra information about HTML elements. They are used to add functionality and define behaviors of HTML documents.
Premium
Premium questions are our unique, hand-crafted questions. We offer a refund if you find any of them answered online.
DESCRIPTION
Add necessary HTML attributes so that paragraph editor has the following properties:
ANSWER
EVALUATION
Run OK and all test cases pass, great!
Last answer
Template
Last answer
Official solution
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
2 |
Q:
Write CSS so that the hea...
A: <!DOCTYPE html> <html> <h... |
3min 3sec
(expected 7min) |
Hard | CODE | 6 points | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
HTML/CSS
HTML/CSS
HTML is the standard markup language for creating web pages. It's an essential skill for anyone creating web pages of any complexity.
CSS Advanced
Cascading Style Sheets are the styling language of the web. Knowledge about advanced CSS features is required for seasoned front-end developers.
Premium
Premium questions are our unique, hand-crafted questions. We offer a refund if you find any of them answered online.
DESCRIPTION
Write CSS so that the header element is 80% of the width of its parent, and the section should be 80% of the width of its parent plus 10 pixels.
ANSWER
EVALUATION
Run OK and all test cases pass, great!
Last answer
Template
Last answer
Official solution
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
3 |
Q:
Function/class PositiveNu...
A: function PositiveNumbers(... |
2min 58sec
(expected 3min) |
Easy | MCA | 3 points | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
JavaScript
JavaScript
JavaScript is the programming language of HTML and the web. It's an essential skill for any programmer working with websites and web technologies.
Closures
Closures are an important concept in any programming language in which functions are first-class citizens.
Premium
Premium questions are our unique, hand-crafted questions. We offer a refund if you find any of them answered online.
DESCRIPTION
Function/class PositiveNumbers generates a sequence of positive integers: 1, 2, 3, ... Which forms ensure that the variable current cannot be modified outside the function/class PositiveNumbers? ANSWERCorrect answer | Candidate's selection function PositiveNumbers() { current = 0; } PositiveNumbers.prototype.next = function() { return ++current; } function PositiveNumbers() { this.current = 0; } PositiveNumbers.prototype.next = function() { return ++this.current; } function PositiveNumbers() { this.current = 0; this.next = function() { return ++this.current; } } function PositiveNumbers() { var current = 0; this.next = function() { return ++current; } } var PositiveNumbers = function() { var current = 0; this.next = function() { return ++current; } }; Last answer
Template
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
4 |
Q:
Complete the copyElement ...
A: function copyElement(sour... |
6min 44sec
(expected 7min) |
Easy | CODE | 3 points | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
jQuery
jQuery
jQuery is a fast, small, popular, and feature-rich JavaScript library. It provides functions that make it easier for developers to traverse HTML documents, create animation, support different browsers, handle events, and use Ajax.
JavaScript
JavaScript is the programming language of HTML and the web. It's an essential skill for any programmer working with websites and web technologies.
Selectors
Selectors are a programming pattern that can be used to select an element from a container. They are primarily used in technologies such as CSS and jQuery to apply styles to groups of elements.
Premium
Premium questions are our unique, hand-crafted questions. We offer a refund if you find any of them answered online.
DESCRIPTION
Complete the copyElement function so that, when passed a source and target selector, a deep copy of the source objects is prepended to the target object. For example, after copyElement('.A','.B') is executed, the following divs:
would become:
ANSWER
EVALUATION
Run OK and all test cases pass, great!
Last answer
Template
Last answer
Official solution
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
5 |
Q:
Write a function that tak...
A: function updateATag(origi... |
6min 43sec
(expected 10min) |
Easy | CODE | 3 points | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
jQuery
jQuery
jQuery is a fast, small, popular, and feature-rich JavaScript library. It provides functions that make it easier for developers to traverse HTML documents, create animation, support different browsers, handle events, and use Ajax.
DOM Manipulation
Dynamically accessing and updating user interface elements is an important part of most modern web applications.
JavaScript
JavaScript is the programming language of HTML and the web. It's an essential skill for any programmer working with websites and web technologies.
New
This is a new addition to our question library.
Premium
Premium questions are our unique, hand-crafted questions. We offer a refund if you find any of them answered online.
DESCRIPTION
Write a function that takes as input an original link and a new link and changes the href attributes for all <a> tags that target the original link to the new link. For example, updateATag('https://www.google.com/', 'https://www.w3schools.com/') should change all href attributes targeting https://www.google.com/, so that they now target https://www.w3schools.com/.
ANSWER
EVALUATION
Run OK and all test cases pass, great!
Last answer
Template
Last answer
Official solution
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
6 |
Q:
Consider the following co...
A: person.height is "192cm".... |
1min 41sec
(expected 2min) |
Easy | MCA | 3 points | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TypeScript
TypeScript
The TypeScript programming language is a strict superset of JavaScript. It adds optional static typing and class-based object-oriented programming to the language
OOP
Object-oriented programming is a paradigm based on encapsulating logic and data into objects, which may then contain fields and procedures. Many of the most widely used programming languages are based on OOP, making it a very important concept in modern programming.
Spread
Spread syntax allows an iterable to be expanded in places where zero or more arguments or elements are expected. As a core language feature of many programming languages, it's important for all developers to be familiar with.
Premium
Premium questions are our unique, hand-crafted questions. We offer a refund if you find any of them answered online.
DESCRIPTION
Consider the following code:
Select the statements that are correct. ANSWERCorrect answer | Candidate's selection
Last answer
Template
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
7 |
Q:
The following code define...
A: The compiler would flag (... |
3min
(expected 3min) |
Hard | MCA | 6 points | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TypeScript
TypeScript
The TypeScript programming language is a strict superset of JavaScript. It adds optional static typing and class-based object-oriented programming to the language
OOP
Object-oriented programming is a paradigm based on encapsulating logic and data into objects, which may then contain fields and procedures. Many of the most widely used programming languages are based on OOP, making it a very important concept in modern programming.
Premium
Premium questions are our unique, hand-crafted questions. We offer a refund if you find any of them answered online.
DESCRIPTION
The following code defines interfaces for a Stream and a File, as well as several functions that can be used to interact with them.
Which statements about the behavior of the above code are correct? ANSWERCorrect answer | Candidate's selection
Last answer
Template
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
8 |
Q:
Which of the following st...
A: A structural directive pr... |
1min 37sec
(expected 2min) |
Hard | MCA | 6 points | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Angular
Angular
Angular is a widely used, complete, JavaScript-based open-source, front-end web application framework. As it is the front end of the MEAN stack it's important for front end engineers to have experience with or knowledge of Angular.
Structural Directive
A structural directive changes the model it is a part of by adding and removing components. A crucial tool for programmers building applications using frameworks.
Premium
Premium questions are our unique, hand-crafted questions. We offer a refund if you find any of them answered online.
DESCRIPTION
Which of the following statements are true of structural directives? ANSWERCorrect answer | Candidate's selection A structural directive prefixed with an asterisk expands to a more verbose template definition using its microsyntax. A structural directive may contain its own variables that can be captured and used in a template expression. A structural directive is used to control attributes of a specific element. A structural directive must be used in it's concise asterisk form, rather than its template form. A structural directive is declared using the @Directive class decorator. Last answer
Template
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
9 |
Q:
The following component i...
A: <counter [count]="localNu... |
2min
(expected 2min) |
Hard | MCA | 6 points | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Angular
Angular
Angular is a widely used, complete, JavaScript-based open-source, front-end web application framework. As it is the front end of the MEAN stack it's important for front end engineers to have experience with or knowledge of Angular.
Expressions
Expressions are the bedrock of a language. They are used to translate a value or definition from one form to another.
Premium
Premium questions are our unique, hand-crafted questions. We offer a refund if you find any of them answered online.
DESCRIPTION
The following component implements a counter. It consists of a button to increment the count and a label displaying the current value. It can be used within another components template.
Which of the following tags correctly include this component within the template and bind its value to the local variable 'localNumber'? ANSWERCorrect answer | Candidate's selection
Last answer
Template
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
10 |
Q:
Modify the Utilities clas...
A: public interface Utilitie... |
3min
(expected 3min) |
Easy | CODE | 3 points | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Java
Java
The Java programming language is a simple, modern, general-purpose, object-oriented programming language. Having a basic familiarity with the programming language used on the job is a prerequisite for quickly getting up to speed.
OOP
Object-oriented programming is a paradigm based on encapsulating logic and data into objects, which may then contain fields and procedures. Many of the most widely used programming languages are based on OOP, making it a very important concept in modern programming.
Premium
Premium questions are our unique, hand-crafted questions. We offer a refund if you find any of them answered online.
DESCRIPTION
Modify the Utilities class so that:
ANSWER
EVALUATION
Compilation OK with warnings , but 1 out of 2 test cases fail:
Last answer
Template
Last answer
Official solution
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
11 |
Q:
A train has wagonCount wa...
A: import java.util.Hashtabl... |
2min 55sec
(expected 20min) |
Hard | CODE | 6 points | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Java
Java
The Java programming language is a simple, modern, general-purpose, object-oriented programming language. Having a basic familiarity with the programming language used on the job is a prerequisite for quickly getting up to speed.
Bug Fixing
Everyone makes mistakes. A good programmer should be able to find and fix a bug in their or someone else's code.
Memory Management
Memory management allows programs to request memory dynamically from the operating system, and free it for reuse when no longer needed. Many modern programming languages automate this process; however, it should still be an important consideration when implementing an application.
Premium
Premium questions are our unique, hand-crafted questions. We offer a refund if you find any of them answered online.
DESCRIPTION
A train has wagonCount wagons indexed as 0, 1, ..., wagonCount - 1. Each wagon must be filled in the constructor of the Train using the fillWagon function, which accepts the wagon's index and returns the wagon's cargo. The code below works, but the server has enough memory only for a small train. Refactor the code so that the server has enough memory even for a large train.
ANSWER
EVALUATION
Compilation OK with warnings and all test cases pass, great!
Last answer
Template
Last answer
Official solution
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
12 |
Q:
Consider the following cl...
A: import org.springframewor... |
10min
(expected 10min) |
Easy | CODE | 3 points | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Java Spring
Java Spring
The Spring Framework is an application framework that can be used to build both java applications and web applications. As one of the most widely used frameworks it's important for most Java developers to have a working knowledge of.
Configuration
Configuration is a crucial component of most systems and frameworks. It allows a developer to tune performance and control access to features.
New
This is a new addition to our question library.
Premium
Premium questions are our unique, hand-crafted questions. We offer a refund if you find any of them answered online.
DESCRIPTION
Consider the following classes in com.testdome.service package:
Use BookSearch class with Spring annotations, so that BookRepository, BookSearchService, and RecommendationService are registered as Spring beans. RecommendationService should reuse the BookRepository instance that is registered as Spring bean.
ANSWER
EVALUATION
Compilation OK with warnings , but 2 out of 4 test cases fail:
Last answer
Template
Last answer
Official solution
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
13 |
Q:
Implement the function co...
A: import java.io.*; import ... |
15min
(expected 15min) |
Easy | CODE | 4 points | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Java
Java
The Java programming language is a simple, modern, general-purpose, object-oriented programming language. Having a basic familiarity with the programming language used on the job is a prerequisite for quickly getting up to speed.
Stream
A stream is a sequence of data elements made available over time. It is particularly useful for tasks that may benefit from being asynchronous, including tasks such as I/O processing or reading from a file, and as such is important for developers to understand.
Strings
The string data structure is used to represent text. It is one of the most commonly used data structures. Therefore, every programmer should be skilled at string manipulation.
Premium
Premium questions are our unique, hand-crafted questions. We offer a refund if you find any of them answered online.
DESCRIPTION
Implement the function count, which returns the number of lines from the InputStream that contains text matching the provided String. For example, when the String needle is "there" and the InputStream haystack contains: Hello, there! How are you today? Yes, you over there. The count function should return 2 ("Hello, there!" and "Yes, you over there.").
ANSWER
EVALUATION
Compilation OK with warnings , but 1 out of 4 test cases fail:
Last answer
Template
Last answer
Official solution
|