GWT

 40 Minutes
 20 Questions


This test is designed to assess a candidate's knowledge of the Google Web Toolkit (GWT) technology. It will cover topics related to user interface design and language fundamentals. The test will include questions on topics such as creating user interfaces with GWT, understanding the basics of the GWT language, and using GWT components to create interactive web applications. The test is intended to evaluate a candidate's ability to use GWT effectively in order to create effective web applications.


Example Question:

Coding
What will be the result of running the application, and pressing the "Add Pair" button three times?
private Label greeting = new Label("Welcome to GWT");
private Grid pairs = new Grid(4,4);
private int currentRow = 0;
private Button addPairs = new Button("Add Pair");
public void onModuleLoad() {
Pair first = new Pair("Green","Box");
Pair second = new Pair("Yellow","Stack");
pairs.setText(0, 0, first.getName());
pairs.setText(0, 1, first.getValue());
pairs.setText(1, 0, second.getName());
pairs.setText(1, 1, second.getValue());
currentRow = 2;
addPairs.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
addPair();
}
});
RootPanel.get().add(pairs);
RootPanel.get().add(addPairs);
}
public void addPair(){
Pair pair = new Pair("New Color","New Item");
pairs.setText(currentRow, 0, pair.getName());
pairs.setText(currentRow, 1, pair.getValue());
currentRow++;
}