Professional Documents
Culture Documents
class ChampsTest {
int x = 1555;
System.out.println(ct.x);
}
}
* (3 Pontos)
class ChampsTest {
int y = 5;
int x = y + 9;
class ChampsTest {
protected int x, y;
}
class Main {
public static void main(String args[]) {
ChampsTest ct = new ChampsTest();
System.out.println(ct.x + " " + ct.y);
}
}
* (3 Pontos)
ChampsTest(int i) { x = i; }
import java.util.*;
class I
{
public static void main (String[] args)
{
Object o = new ArrayList().iterator();
System.out.print((o instanceof List) + ", ");
System.out.print((o instanceof Iterator) + ", ");
System.out.print(o instanceof ListIterator);
}
}
* (10 Pontos)
12. Which is the next value in the sequence: 2Z3, 4Y5, 6X7, ...?* (2 Pontos)
Indica apenas a sequência no formato 0A0. Exemplo: 0A0
13. If in each number all the digits are arranged in descending order, which among
the following corresponds to the smallest number?
384 475 563 728 849 631 * (2 Pontos)
14. If in each of the words, the first and second letters are interchanged and then
all the words are arranged in alphabetical order from left to right, then which
word would be in the middle?
RAM SIT NET PET CUT
* (2 Pontos)
15. If a butterfly lives for 5 days and each day it flies 4 meters, how many meters it
will be traveled in 2 weeks? * (3 Pontos)
Indicate only the number of meteres. Example: 25
16. If in a car race you leave the 2nd contestant behind, what is your position after
the passing? * (3 Pontos)
Indicate only the number of the place. Example: 3º
17. It takes 5 minutes for 5 robots to make 5 pulleys.
How long does it take for 100 robots to make 100 pulleys?
* (5 Pontos)
Indicate only the number of minutes. Example: 10