Prévia do material em texto
Painel Meus cursos 32010001844-T01-2025-2 Módulo 1 [A1] Avaliação do Módulo 1 - Fundamentos de Orientação a Objetos IInniicciiaaddoo eemm quinta, 4 set 2025, 16:11 EEssttaaddoo Finalizada CCoonncclluuííddaa eemm quinta, 4 set 2025, 18:44 TTeemmppoo eemmpprreeggaaddoo 2 horas 33 minutos AAvvaalliiaarr 88,,0000 de um máximo de 10,00(8800%) https://ava.ufms.br/my/ https://ava.ufms.br/my/ https://ava.ufms.br/my/ https://ava.ufms.br/course/view.php?id=76847 https://ava.ufms.br/course/view.php?id=76847 https://ava.ufms.br/course/view.php?id=76847 https://ava.ufms.br/course/view.php?id=76847#section-2 https://ava.ufms.br/course/view.php?id=76847#section-2 https://ava.ufms.br/course/view.php?id=76847#section-2 https://ava.ufms.br/mod/quiz/view.php?id=1068181 https://ava.ufms.br/mod/quiz/view.php?id=1068181 javascript:void(0); javascript:void(0); javascript:void(0); https://ava.ufms.br/user/index.php?id=76847 https://ava.ufms.br/user/index.php?id=76847 https://ava.ufms.br/user/index.php?id=76847 https://ava.ufms.br/theme/moove/certificates.php?id=76847 https://ava.ufms.br/theme/moove/certificates.php?id=76847 https://ava.ufms.br/theme/moove/certificates.php?id=76847 https://ava.ufms.br/admin/tool/lp/coursecompetencies.php?courseid=76847 https://ava.ufms.br/admin/tool/lp/coursecompetencies.php?courseid=76847 https://ava.ufms.br/admin/tool/lp/coursecompetencies.php?courseid=76847 https://ava.ufms.br/grade/report/index.php?id=76847 https://ava.ufms.br/grade/report/index.php?id=76847 https://ava.ufms.br/grade/report/index.php?id=76847 https://ava.ufms.br/my/ https://ava.ufms.br/my/ https://ava.ufms.br/my/ https://ava.ufms.br/calendar/view.php?view=month&course=76847 https://ava.ufms.br/calendar/view.php?view=month&course=76847 https://ava.ufms.br/calendar/view.php?view=month&course=76847 javascript:void(0); javascript:void(0); javascript:void(0); https://ava.ufms.br/user/files.php https://ava.ufms.br/user/files.php https://ava.ufms.br/user/files.php CCoommeennttáárriiooss javascript:void(0); javascript:void(0); javascript:void(0); https://ava.ufms.br/user/index.php?id=76847 https://ava.ufms.br/user/index.php?id=76847 https://ava.ufms.br/user/index.php?id=76847 https://ava.ufms.br/theme/moove/certificates.php?id=76847 https://ava.ufms.br/theme/moove/certificates.php?id=76847 https://ava.ufms.br/theme/moove/certificates.php?id=76847 https://ava.ufms.br/admin/tool/lp/coursecompetencies.php?courseid=76847 https://ava.ufms.br/admin/tool/lp/coursecompetencies.php?courseid=76847 https://ava.ufms.br/admin/tool/lp/coursecompetencies.php?courseid=76847 https://ava.ufms.br/grade/report/index.php?id=76847 https://ava.ufms.br/grade/report/index.php?id=76847 https://ava.ufms.br/grade/report/index.php?id=76847 https://ava.ufms.br/my/ https://ava.ufms.br/my/ https://ava.ufms.br/my/ https://ava.ufms.br/calendar/view.php?view=month&course=76847 https://ava.ufms.br/calendar/view.php?view=month&course=76847 https://ava.ufms.br/calendar/view.php?view=month&course=76847 javascript:void(0); javascript:void(0); javascript:void(0); https://ava.ufms.br/user/files.php https://ava.ufms.br/user/files.php https://ava.ufms.br/user/files.php Questão 11 Incorreto Atingiu 0,00 de 1,00 Crie uma classe Java com um método main que leia do console seis números inteiros usando a classe Scanner e imprima o maior número inteiro lido inicialmente. PPoorr eexxeemmpplloo:: EEnnttrraaddaa RReessuullttaaddoo 1 2 3 4 2 3 4 598 2 66 78945 0 1 78945 RReessppoossttaa:: (regime de penalidade: 0%) import java.util.Scanner; class FuncoesBasicasJava{ public static void main(String[] args){ int i, num; int maior = -999999; Scanner scan = new Scanner(System.in); for(i=0; i maior) maior = num } System.out.println(maior) } } 1 ▼ 2 ▼ 3 ▼ 4 5 6 7 ▼ 8 9 10 11 12 13 14 javascript:void(0); javascript:void(0); javascript:void(0); https://ava.ufms.br/user/index.php?id=76847 https://ava.ufms.br/user/index.php?id=76847 https://ava.ufms.br/user/index.php?id=76847 https://ava.ufms.br/theme/moove/certificates.php?id=76847 https://ava.ufms.br/theme/moove/certificates.php?id=76847 https://ava.ufms.br/theme/moove/certificates.php?id=76847 https://ava.ufms.br/admin/tool/lp/coursecompetencies.php?courseid=76847 https://ava.ufms.br/admin/tool/lp/coursecompetencies.php?courseid=76847 https://ava.ufms.br/admin/tool/lp/coursecompetencies.php?courseid=76847 https://ava.ufms.br/grade/report/index.php?id=76847 https://ava.ufms.br/grade/report/index.php?id=76847 https://ava.ufms.br/grade/report/index.php?id=76847 https://ava.ufms.br/my/ https://ava.ufms.br/my/ https://ava.ufms.br/my/ https://ava.ufms.br/calendar/view.php?view=month&course=76847 https://ava.ufms.br/calendar/view.php?view=month&course=76847 https://ava.ufms.br/calendar/view.php?view=month&course=76847 javascript:void(0); javascript:void(0); javascript:void(0); https://ava.ufms.br/user/files.php https://ava.ufms.br/user/files.php https://ava.ufms.br/user/files.php Erro(s) de sintaxe FuncoesBasicasJava.java:10: error: ';' expected maior = num ^ FuncoesBasicasJava.java:12: error: ';' expected System.out.println(maior) ^ 2 errors IInnccoorrrreettoo Notas para este envio: 0,00/1,00. javascript:void(0); javascript:void(0); javascript:void(0); https://ava.ufms.br/user/index.php?id=76847 https://ava.ufms.br/user/index.php?id=76847 https://ava.ufms.br/user/index.php?id=76847 https://ava.ufms.br/theme/moove/certificates.php?id=76847 https://ava.ufms.br/theme/moove/certificates.php?id=76847 https://ava.ufms.br/theme/moove/certificates.php?id=76847 https://ava.ufms.br/admin/tool/lp/coursecompetencies.php?courseid=76847 https://ava.ufms.br/admin/tool/lp/coursecompetencies.php?courseid=76847 https://ava.ufms.br/admin/tool/lp/coursecompetencies.php?courseid=76847 https://ava.ufms.br/grade/report/index.php?id=76847 https://ava.ufms.br/grade/report/index.php?id=76847 https://ava.ufms.br/grade/report/index.php?id=76847 https://ava.ufms.br/my/ https://ava.ufms.br/my/ https://ava.ufms.br/my/ https://ava.ufms.br/calendar/view.php?view=month&course=76847 https://ava.ufms.br/calendar/view.php?view=month&course=76847 https://ava.ufms.br/calendar/view.php?view=month&course=76847 javascript:void(0); javascript:void(0); javascript:void(0); https://ava.ufms.br/user/files.php https://ava.ufms.br/user/files.php https://ava.ufms.br/user/files.php Questão 22 Correto Atingiu 1,00 de 1,00 Questão 33 Correto Atingiu 1,00 de 1,00 Qual o resultado após tentar compilar e executar o código abaixo dentro de um método main? String a = "String"; int b = 3; int c = 7; System.out.println(a + b + c + a); a. String10String b. Lança uma exceção c. String37String d. Não compila Sobre operadores, indique verdadeiro ou falso. O símbolo ‘+’ pode ser considerado operador de concatenação de Strings e operador de soma. Escolha uma opção: Verdadeiro Falso javascript:void(0); javascript:void(0); javascript:void(0); https://ava.ufms.br/user/index.php?id=76847 https://ava.ufms.br/user/index.php?id=76847 https://ava.ufms.br/user/index.php?id=76847 https://ava.ufms.br/theme/moove/certificates.php?id=76847 https://ava.ufms.br/theme/moove/certificates.php?id=76847 https://ava.ufms.br/theme/moove/certificates.php?id=76847 https://ava.ufms.br/admin/tool/lp/coursecompetencies.php?courseid=76847 https://ava.ufms.br/admin/tool/lp/coursecompetencies.php?courseid=76847 https://ava.ufms.br/admin/tool/lp/coursecompetencies.php?courseid=76847 https://ava.ufms.br/grade/report/index.php?id=76847 https://ava.ufms.br/grade/report/index.php?id=76847 https://ava.ufms.br/grade/report/index.php?id=76847 https://ava.ufms.br/my/ https://ava.ufms.br/my/ https://ava.ufms.br/my/ https://ava.ufms.br/calendar/view.php?view=month&course=76847 https://ava.ufms.br/calendar/view.php?view=month&course=76847https://ava.ufms.br/calendar/view.php?view=month&course=76847 javascript:void(0); javascript:void(0); javascript:void(0); https://ava.ufms.br/user/files.php https://ava.ufms.br/user/files.php https://ava.ufms.br/user/files.php Questão 44 Correto Atingiu 1,00 de 1,00 A máquina virtual Java é responsável por executar um código em bytecode, que foi anteriormente compilado pelo compilador Java. Escolha uma opção: Verdadeiro Falso javascript:void(0); javascript:void(0); javascript:void(0); https://ava.ufms.br/user/index.php?id=76847 https://ava.ufms.br/user/index.php?id=76847 https://ava.ufms.br/user/index.php?id=76847 https://ava.ufms.br/theme/moove/certificates.php?id=76847 https://ava.ufms.br/theme/moove/certificates.php?id=76847 https://ava.ufms.br/theme/moove/certificates.php?id=76847 https://ava.ufms.br/admin/tool/lp/coursecompetencies.php?courseid=76847 https://ava.ufms.br/admin/tool/lp/coursecompetencies.php?courseid=76847 https://ava.ufms.br/admin/tool/lp/coursecompetencies.php?courseid=76847 https://ava.ufms.br/grade/report/index.php?id=76847 https://ava.ufms.br/grade/report/index.php?id=76847 https://ava.ufms.br/grade/report/index.php?id=76847 https://ava.ufms.br/my/ https://ava.ufms.br/my/ https://ava.ufms.br/my/ https://ava.ufms.br/calendar/view.php?view=month&course=76847 https://ava.ufms.br/calendar/view.php?view=month&course=76847 https://ava.ufms.br/calendar/view.php?view=month&course=76847 javascript:void(0); javascript:void(0); javascript:void(0); https://ava.ufms.br/user/files.php https://ava.ufms.br/user/files.php https://ava.ufms.br/user/files.php Questão 55 Correto Atingiu 1,00 de 1,00 Escreva uma classe em Java contendo um método main, denominada HelloWorld, que escreve o nome da disciplina “PROGRAMAÇÃO ORIENTADA A OBJETOS” na saída padrão. PPoorr eexxeemmpplloo:: RReessuullttaaddoo PROGRAMAÇÃO ORIENTADA A OBJETOS RReessppoossttaa:: (regime de penalidade: 0%) public class HelloWorld { public static void main(String[] args) { System.out.println("PROGRAMAÇÃO ORIENTADA A OBJETOS" } } 1 ▼ 2 ▼ 3 4 5 6 javascript:void(0); javascript:void(0); javascript:void(0); https://ava.ufms.br/user/index.php?id=76847 https://ava.ufms.br/user/index.php?id=76847 https://ava.ufms.br/user/index.php?id=76847 https://ava.ufms.br/theme/moove/certificates.php?id=76847 https://ava.ufms.br/theme/moove/certificates.php?id=76847 https://ava.ufms.br/theme/moove/certificates.php?id=76847 https://ava.ufms.br/admin/tool/lp/coursecompetencies.php?courseid=76847 https://ava.ufms.br/admin/tool/lp/coursecompetencies.php?courseid=76847 https://ava.ufms.br/admin/tool/lp/coursecompetencies.php?courseid=76847 https://ava.ufms.br/grade/report/index.php?id=76847 https://ava.ufms.br/grade/report/index.php?id=76847 https://ava.ufms.br/grade/report/index.php?id=76847 https://ava.ufms.br/my/ https://ava.ufms.br/my/ https://ava.ufms.br/my/ https://ava.ufms.br/calendar/view.php?view=month&course=76847 https://ava.ufms.br/calendar/view.php?view=month&course=76847 https://ava.ufms.br/calendar/view.php?view=month&course=76847 javascript:void(0); javascript:void(0); javascript:void(0); https://ava.ufms.br/user/files.php https://ava.ufms.br/user/files.php https://ava.ufms.br/user/files.php Questão 66 Correto Atingiu 1,00 de 1,00 Questão 77 Correto Atingiu 1,00 de 1,00 EEssppeerraaddoo OObbtteevvee PROGRAMAÇÃO ORIENTADA A OBJETOS PROGRAMAÇÃO ORIENTADA A OBJETOS Passou em todos os teste! CCoorrrreettoo Notas para este envio: 1,00/1,00. Java é uma linguagem interpretada, compilada ou híbrida? a. Não é uma linguagem de programação b. Interpretada c. Híbrida d. Compilada Qual é o tipo de laço mais indicado quando queremos ler uma quantidade específica de itens, manipulando item por item? a. while b. for c. switch d. do…while javascript:void(0); javascript:void(0); javascript:void(0); https://ava.ufms.br/user/index.php?id=76847 https://ava.ufms.br/user/index.php?id=76847 https://ava.ufms.br/user/index.php?id=76847 https://ava.ufms.br/theme/moove/certificates.php?id=76847 https://ava.ufms.br/theme/moove/certificates.php?id=76847 https://ava.ufms.br/theme/moove/certificates.php?id=76847 https://ava.ufms.br/admin/tool/lp/coursecompetencies.php?courseid=76847 https://ava.ufms.br/admin/tool/lp/coursecompetencies.php?courseid=76847 https://ava.ufms.br/admin/tool/lp/coursecompetencies.php?courseid=76847 https://ava.ufms.br/grade/report/index.php?id=76847 https://ava.ufms.br/grade/report/index.php?id=76847 https://ava.ufms.br/grade/report/index.php?id=76847 https://ava.ufms.br/my/ https://ava.ufms.br/my/ https://ava.ufms.br/my/ https://ava.ufms.br/calendar/view.php?view=month&course=76847 https://ava.ufms.br/calendar/view.php?view=month&course=76847 https://ava.ufms.br/calendar/view.php?view=month&course=76847 javascript:void(0); javascript:void(0); javascript:void(0); https://ava.ufms.br/user/files.php https://ava.ufms.br/user/files.php https://ava.ufms.br/user/files.php Questão 88 Correto Atingiu 1,00 de 1,00 Qual foi a estratégia adotada pelos projetistas da linguagem Java para torná-la independente de plataforma? a. Java não é independente de plataforma b. Compilar o código para um código intermediário (bytecode) e depois a máquina virtual Java (JVM) interpreta o bytecode c. Interpretar o código com a interpretadora da máquina virtual Java (JVM) d. Java usa o mesmo compilador de C++. Ela faz isso para ter uma execução mais rápida. A interpretação usa o interpretador da linguagem Python pelo mesmo motivo javascript:void(0); javascript:void(0); javascript:void(0); https://ava.ufms.br/user/index.php?id=76847 https://ava.ufms.br/user/index.php?id=76847 https://ava.ufms.br/user/index.php?id=76847 https://ava.ufms.br/theme/moove/certificates.php?id=76847 https://ava.ufms.br/theme/moove/certificates.php?id=76847 https://ava.ufms.br/theme/moove/certificates.php?id=76847 https://ava.ufms.br/admin/tool/lp/coursecompetencies.php?courseid=76847 https://ava.ufms.br/admin/tool/lp/coursecompetencies.php?courseid=76847 https://ava.ufms.br/admin/tool/lp/coursecompetencies.php?courseid=76847 https://ava.ufms.br/grade/report/index.php?id=76847 https://ava.ufms.br/grade/report/index.php?id=76847 https://ava.ufms.br/grade/report/index.php?id=76847 https://ava.ufms.br/my/ https://ava.ufms.br/my/ https://ava.ufms.br/my/ https://ava.ufms.br/calendar/view.php?view=month&course=76847 https://ava.ufms.br/calendar/view.php?view=month&course=76847 https://ava.ufms.br/calendar/view.php?view=month&course=76847 javascript:void(0); javascript:void(0); javascript:void(0); https://ava.ufms.br/user/files.php https://ava.ufms.br/user/files.php https://ava.ufms.br/user/files.php Questão 99 Correto Atingiu 1,00 de 1,00 Questão 1100 Incorreto Atingiu 0,00 de 1,00 a. Criar um arquivo de programa Java com a extensão de arquivo .java b. O comando javac do JDK compila um código na linguagem Java c. O arquivo produzido pelo compilador termina com a extensão de arquivo .class d. O comando java do JDK executa um programa Java compilado e. Os bytecodes são executados pela Java Virtual Machine (JVM) Indicar a ordem correta dos passos apresentados a seguir: Qual é o comando responsável por imprimir uma string (porção de texto) no console/saída padrão? Use o comando para imprimir o texto "TESTE". Considere o comando que insere uma quebra de linha ao final da impressão. Resposta: System.out.printIn("TESTE"); javascript:void(0); javascript:void(0); javascript:void(0); https://ava.ufms.br/user/index.php?id=76847 https://ava.ufms.br/user/index.php?id=76847 https://ava.ufms.br/user/index.php?id=76847 https://ava.ufms.br/theme/moove/certificates.php?id=76847 https://ava.ufms.br/theme/moove/certificates.php?id=76847 https://ava.ufms.br/theme/moove/certificates.php?id=76847 https://ava.ufms.br/admin/tool/lp/coursecompetencies.php?courseid=76847 https://ava.ufms.br/admin/tool/lp/coursecompetencies.php?courseid=76847https://ava.ufms.br/admin/tool/lp/coursecompetencies.php?courseid=76847 https://ava.ufms.br/grade/report/index.php?id=76847 https://ava.ufms.br/grade/report/index.php?id=76847 https://ava.ufms.br/grade/report/index.php?id=76847 https://ava.ufms.br/my/ https://ava.ufms.br/my/ https://ava.ufms.br/my/ https://ava.ufms.br/calendar/view.php?view=month&course=76847 https://ava.ufms.br/calendar/view.php?view=month&course=76847 https://ava.ufms.br/calendar/view.php?view=month&course=76847 javascript:void(0); javascript:void(0); javascript:void(0); https://ava.ufms.br/user/files.php https://ava.ufms.br/user/files.php https://ava.ufms.br/user/files.php Atividade anterior ◄ [Checkout de Presença] Módulo 1 - Fundamentos de Orientação a Objetos Seguir para... Próxima atividade Videoaula Obrigatória - Módulo 2 - Unidade 1 - Vetores (Arrays) ► Precisa de ajuda com o AVA UFMS? https://agead.ufms.br suporte.agead@ufms.br https://ava.ufms.br/mod/assign/view.php?id=1068179&forceview=1 https://ava.ufms.br/mod/assign/view.php?id=1068179&forceview=1 https://ava.ufms.br/mod/assign/view.php?id=1068179&forceview=1 https://ava.ufms.br/mod/assign/view.php?id=1068179&forceview=1 https://ava.ufms.br/mod/assign/view.php?id=1068179&forceview=1 https://ava.ufms.br/mod/url/view.php?id=1068183&forceview=1 https://ava.ufms.br/mod/url/view.php?id=1068183&forceview=1 https://ava.ufms.br/mod/url/view.php?id=1068183&forceview=1 https://ava.ufms.br/mod/url/view.php?id=1068183&forceview=1 https://agead.ufms.br/ https://agead.ufms.br/ mailto:suporte.agead@ufms.br mailto:suporte.agead@ufms.br https://api.whatsapp.com/send?phone=556733457614 https://api.whatsapp.com/send?phone=556733457614 https://api.whatsapp.com/send?phone=556733457614 https://api.whatsapp.com/send?phone=556733457614 javascript:void(0); javascript:void(0); javascript:void(0); https://ava.ufms.br/user/index.php?id=76847 https://ava.ufms.br/user/index.php?id=76847 https://ava.ufms.br/user/index.php?id=76847 https://ava.ufms.br/theme/moove/certificates.php?id=76847 https://ava.ufms.br/theme/moove/certificates.php?id=76847 https://ava.ufms.br/theme/moove/certificates.php?id=76847 https://ava.ufms.br/admin/tool/lp/coursecompetencies.php?courseid=76847 https://ava.ufms.br/admin/tool/lp/coursecompetencies.php?courseid=76847 https://ava.ufms.br/admin/tool/lp/coursecompetencies.php?courseid=76847 https://ava.ufms.br/grade/report/index.php?id=76847 https://ava.ufms.br/grade/report/index.php?id=76847 https://ava.ufms.br/grade/report/index.php?id=76847 https://ava.ufms.br/my/ https://ava.ufms.br/my/ https://ava.ufms.br/my/ https://ava.ufms.br/calendar/view.php?view=month&course=76847 https://ava.ufms.br/calendar/view.php?view=month&course=76847 https://ava.ufms.br/calendar/view.php?view=month&course=76847 javascript:void(0); javascript:void(0); javascript:void(0); https://ava.ufms.br/user/files.php https://ava.ufms.br/user/files.php https://ava.ufms.br/user/files.php