
Auditorne7
Authored by Ana Radović
Computers
University
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Pozivom koje metode kreiramo tok?
dataStream()
stream()
flow()
dataFlow()
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Što će se ispisati?
Svi studeni koji imaju 40 ili više bodova
Svi studenti koji imaju 40 ili manje bodova
Svi studenti
Neće se kompajlirati
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
List<Student> students = StudentData.load();
Stream<Student> st = students.stream();
st.forEach(t -> System.out.println(t)); //OK
st.forEach(t -> System.out.println(t)); //?
Što će se ispisati umjesto "?"
svi studenti
IllegalStateException
neće se kompajlirati
IOException
4.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Može li se ponovno koristiti iskorišteni(konzumirani) tok?
DA
NE
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
students.stream().filter(s -> s.getPoints() >= 40)
.sorted(Student.BY_LAST_NAME)
.forEach(t -> System.out.println(t));
Što ispisuje kod?
studente sortirane po prezimenima s više od 40 bodova
studente s preko 40 bodova bez redoslijeda
sve studente
sve studente sortirane po prezimenima
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Kojom metodom se preslikava (transformira) jedan tok u drugi?
map()
set()
list()
copyOf()
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Kojom metodom tok vraćamo u kolekciju?
transform()
copyTo()
collect()
translateTo()
Access all questions and much more by creating a free account
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
Already have an account?