
preparación Java - clase 6
Quiz
•
Computers
•
Professional Development
•
Medium
Jose Matos
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Sobre las interfaces funcionales predefinidas, es incorrecto afirmar que:
Son de uso interno y general
Están disponibles desde java 8
Permiten su implementación mediante expresiones lambda
Se encuentran en el paquete java.util.funcionaInterfaces
2.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Respecto a la interface Predicate<T> es incorrecto afirmar que:
Es una interface predefinida
Se usa para construir criterios de evaluación
Retorna un objeto genérico de tipo T
Contiene métodos por default que permiten concatenar predicados
3.
MULTIPLE SELECT QUESTION
45 sec • 5 pts
Cuales son los métodos por default definidos en la clase Predicate<T>
and
negate
or
esEqual
test
4.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Los métodos default definidos en la interface Predicate<T> permiten
Construir criterios de evaluación a partir de criterios simples
Ser utilizados como utilitario según nuestras necesidades
No se recomienda su uso
5.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Al ejecutar una expresión lambda, esta no debería:
Modificar el entorno en la que se encuentra
Instanciar variables locales
Acceder al valor de variables final
Tener mucha complejidad
6.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
¿Cuál será el valor de la variable esIgual?
boolean esIgual = Predicate.isEqual("mundo").test("hola");
false
true
El código no compila
null
7.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
¿Cuál será la implementacion equivalente para la variable criterio ?
Predicate<Alumno> edadMayorA = alumno -> alumno.getEdad() > 25;
Predicate<Alumno> notaMayorA = alumno -> alumno.getNota() > 15;
Predicate<Alumno> criterio= edadMayorA.and(notaMayorA).negate();
!(alumno.getEdad() > 25 && alumno.getNota() > 15)
alumno.getEdad() > 25 && alumno.getNota() > 15
!alumno.getEdad() > 25 && !alumno.getNota() > 15
alumno.getEdad() > 25 || alumno.getNota() > 15
El código no compila
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
10 questions
Teste - Word
Quiz
•
Professional Development
14 questions
SÉPTIMO
Quiz
•
1st Grade - Professio...
15 questions
Quiz sobre Tendências e Inovações em Computação Móvel
Quiz
•
Professional Development
15 questions
Cryptographie et Blockchain - CS2I
Quiz
•
University - Professi...
10 questions
Connaissances générales informatiques
Quiz
•
Professional Development
13 questions
Database SQL Part 1 V1
Quiz
•
Professional Development
10 questions
Què en saps de GSuite?
Quiz
•
University - Professi...
10 questions
Hàm
Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
4 questions
Activity set 10/24
Lesson
•
6th - 8th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
How to Email your Teacher
Quiz
•
Professional Development
15 questions
Order of Operations
Quiz
•
5th Grade
30 questions
October: Math Fluency: Multiply and Divide
Quiz
•
7th Grade
Discover more resources for Computers
10 questions
How to Email your Teacher
Quiz
•
Professional Development
11 questions
NFL Football logos
Quiz
•
KG - Professional Dev...
16 questions
Spooky Season Quiz
Quiz
•
Professional Development
10 questions
Halloween Trivia
Quiz
•
Professional Development
20 questions
Context Clues: Multiple Meaning Words
Quiz
•
Professional Development
18 questions
Do or Does
Quiz
•
Professional Development
31 questions
Servsafe Food Manager Practice Test 2021- Part 1
Quiz
•
9th Grade - Professio...
