Search Header Logo

Java Como Programar - Deitel - Cap 1 e 2

Authored by Galdir Reges

Professional Development, Computers

University

Used 5+ times

Java Como Programar - Deitel - Cap 1 e 2
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

18 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual extensão de um arquivo fonte Java?

.class

.java

.jar

.html

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A empresa responsável pelo Java é a

Oracle

OpenJDK

Sun MicroSistems

JCP (Java Community Programmers)

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Assinale a opção que contem apenas comandos de decisão do Java:

for e while

if e switch

for e switch

if e for

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Ao se executar o trecho de código abaixo, escrito na linguagem Java, será obtido o seguinte resultado:

public class Classe {

public static void main(String[] args) {

int i = 9;

int x = 10;

System.out.println("Soma: " + i + x);

} }

Erro em tempo de execução.

Soma: 19

O código não compila.

Soma: 910

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Em Java, um bloco de código é:

Tudo que está entre ( )

Tudo que está entre [  ]

Tudo que está entre { }

Tudo que está entre |  |

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

O comando switch em linguagem Java é uma estrutura:

de repetição

de animação

sequencial

de decisão

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Analise o código Java e marque a alternativa que representa o valor impresso:

public class Teste{

public static void main(String[] args){

int i=2,j=8;

int n = j%i;

System.out.println(n);} }

4

2

3

0

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?