Questões da Prova CESGRANRIO - 2012 - Petrobras - Analista de Sistemas Júnior - Engenharia de Software-2012
Foram encontradas 69 questões
Resolva questões gratuitamente!
Junte-se a mais de 4 milhões de concurseiros!
Ano: 2012
Banca:
CESGRANRIO
Órgão:
Petrobras
Prova:
CESGRANRIO - 2012 - Petrobras - Analista de Sistemas Júnior - Engenharia de Software-2012 |
Q249353
Programação
Suponha que as classes Circulo, Desenho e Figura ocupem arquivos separados.
Em qual código Java elas serão compiladas sem erros?
Em qual código Java elas serão compiladas sem erros?
Ano: 2012
Banca:
CESGRANRIO
Órgão:
Petrobras
Prova:
CESGRANRIO - 2012 - Petrobras - Analista de Sistemas Júnior - Engenharia de Software-2012 |
Q249352
Programação
Sejam as seguintes classes Java:
public class CA {
int val=0;
public void op1(int x)
{
val+=x;
}
public void op2(int x,int y)
{
val-=x+y;
}
int getVal()
{
return val;
}
}
public class CB extends CA{
public void op1(int x)
{
val-=x;
}
public void op2(int x,int y)
{
try
{
val+=x/y;
}
catch(Exception e)
{
val=10;
}
finally
{
val++;
}
}
}
public class Main {
public static void main(String[] args) {
CA obj=new CB();
obj.op1(10);
obj.op2(5,8);
System.out.printf(“%d\n”,obj.getVal());
}
}
O que será exibido no console quando for executado o método main ( ) ?
public class CA {
int val=0;
public void op1(int x)
{
val+=x;
}
public void op2(int x,int y)
{
val-=x+y;
}
int getVal()
{
return val;
}
}
public class CB extends CA{
public void op1(int x)
{
val-=x;
}
public void op2(int x,int y)
{
try
{
val+=x/y;
}
catch(Exception e)
{
val=10;
}
finally
{
val++;
}
}
}
public class Main {
public static void main(String[] args) {
CA obj=new CB();
obj.op1(10);
obj.op2(5,8);
System.out.printf(“%d\n”,obj.getVal());
}
}
O que será exibido no console quando for executado o método main ( ) ?
Ano: 2012
Banca:
CESGRANRIO
Órgão:
Petrobras
Provas:
CESGRANRIO - 2012 - Petrobras - Engenheiro Agrônomo Júnior-2012
|
CESGRANRIO - 2012 - Petrobras - Analista de Sistemas Júnior - Engenharia de Software-2012 |
CESGRANRIO - 2012 - Petrobras - Nível Superior - Todos os Cargos-2012 |
CESGRANRIO - 2012 - Petrobras - Analista de Sistemas Júnior - Processos de Negócios-2012 |
CESGRANRIO - 2012 - Petrobras - Engenheiro de Produção Júnior-2012 |
CESGRANRIO - 2012 - Petrobras - Engenheiro de Petróleo Júnior-2012 |
CESGRANRIO - 2012 - Petrobras - Engenheiro de Equipamento Júnior - Eletrônica-2012 |
CESGRANRIO - 2012 - Petrobras - Engenheiro de Equipamento Júnior - Mecânica-2012 |
CESGRANRIO - 2012 - Petrobras - Engenheiro de Equipamento Júnior - Elétrica-2012 |
CESGRANRIO - 2012 - Petrobras - Engenheiro Civil Júnior-2012 |
CESGRANRIO - 2012 - Petrobras - Engenheiro de Processamento Júnior-2012 |
CESGRANRIO - 2012 - Petrobras - Engenheiro de Equipamento Júnior - Inspeção-2012 |
CESGRANRIO - 2012 - Petrobras - Profissional de Comunicação Social Júnior - Relações Públicas |
CESGRANRIO - 2012 - Petrobras - Médico do Trabalho Júnior-2012 |
CESGRANRIO - 2012 - Petrobras - Advogado Júnior-2012 |
CESGRANRIO - 2012 - Petrobras - Psicólogo Júnior-2012 |
CESGRANRIO - 2012 - Petrobras - Geólogo Júnior-2012 |
CESGRANRIO - 2012 - Petrobras - Geofísico Júnior - Física-2012 |
Q244268
Inglês
Concerning Texts I and II, it is possible to affirm that
Ano: 2012
Banca:
CESGRANRIO
Órgão:
Petrobras
Provas:
CESGRANRIO - 2012 - Petrobras - Engenheiro Agrônomo Júnior-2012
|
CESGRANRIO - 2012 - Petrobras - Analista de Sistemas Júnior - Engenharia de Software-2012 |
CESGRANRIO - 2012 - Petrobras - Nível Superior - Todos os Cargos-2012 |
CESGRANRIO - 2012 - Petrobras - Analista de Sistemas Júnior - Processos de Negócios-2012 |
CESGRANRIO - 2012 - Petrobras - Engenheiro de Produção Júnior-2012 |
CESGRANRIO - 2012 - Petrobras - Engenheiro de Petróleo Júnior-2012 |
CESGRANRIO - 2012 - Petrobras - Engenheiro de Equipamento Júnior - Eletrônica-2012 |
CESGRANRIO - 2012 - Petrobras - Engenheiro de Equipamento Júnior - Mecânica-2012 |
CESGRANRIO - 2012 - Petrobras - Engenheiro de Equipamento Júnior - Elétrica-2012 |
CESGRANRIO - 2012 - Petrobras - Engenheiro Civil Júnior-2012 |
CESGRANRIO - 2012 - Petrobras - Engenheiro de Processamento Júnior-2012 |
CESGRANRIO - 2012 - Petrobras - Engenheiro de Equipamento Júnior - Inspeção-2012 |
CESGRANRIO - 2012 - Petrobras - Profissional de Comunicação Social Júnior - Relações Públicas |
CESGRANRIO - 2012 - Petrobras - Médico do Trabalho Júnior-2012 |
CESGRANRIO - 2012 - Petrobras - Advogado Júnior-2012 |
CESGRANRIO - 2012 - Petrobras - Psicólogo Júnior-2012 |
CESGRANRIO - 2012 - Petrobras - Geólogo Júnior-2012 |
CESGRANRIO - 2012 - Petrobras - Geofísico Júnior - Física-2012 |
Q244267
Inglês
The fragment that closes Text II, “be aware that you will need to roll up your sleeves and work hard for the first couple years, and you will be rewarded in the end.” (lines 23-25), implies that one must
Ano: 2012
Banca:
CESGRANRIO
Órgão:
Petrobras
Provas:
CESGRANRIO - 2012 - Petrobras - Engenheiro Agrônomo Júnior-2012
|
CESGRANRIO - 2012 - Petrobras - Analista de Sistemas Júnior - Engenharia de Software-2012 |
CESGRANRIO - 2012 - Petrobras - Nível Superior - Todos os Cargos-2012 |
CESGRANRIO - 2012 - Petrobras - Analista de Sistemas Júnior - Processos de Negócios-2012 |
CESGRANRIO - 2012 - Petrobras - Engenheiro de Produção Júnior-2012 |
CESGRANRIO - 2012 - Petrobras - Engenheiro de Petróleo Júnior-2012 |
CESGRANRIO - 2012 - Petrobras - Engenheiro de Equipamento Júnior - Eletrônica-2012 |
CESGRANRIO - 2012 - Petrobras - Engenheiro de Equipamento Júnior - Mecânica-2012 |
CESGRANRIO - 2012 - Petrobras - Engenheiro de Equipamento Júnior - Elétrica-2012 |
CESGRANRIO - 2012 - Petrobras - Engenheiro Civil Júnior-2012 |
CESGRANRIO - 2012 - Petrobras - Engenheiro de Processamento Júnior-2012 |
CESGRANRIO - 2012 - Petrobras - Engenheiro de Equipamento Júnior - Inspeção-2012 |
CESGRANRIO - 2012 - Petrobras - Profissional de Comunicação Social Júnior - Relações Públicas |
CESGRANRIO - 2012 - Petrobras - Médico do Trabalho Júnior-2012 |
CESGRANRIO - 2012 - Petrobras - Advogado Júnior-2012 |
CESGRANRIO - 2012 - Petrobras - Psicólogo Júnior-2012 |
CESGRANRIO - 2012 - Petrobras - Geólogo Júnior-2012 |
CESGRANRIO - 2012 - Petrobras - Geofísico Júnior - Física-2012 |
Q244266
Inglês
The main purpose of Text II is to