op2 Flashcards

(76 cards)

1
Q

Java provides support for functional programming expressions.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Java supports multiple inheritance.

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Java does not support pointer arithmetic on its references.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Variables declared as static can only be assigned a value once.

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Java supports use of varargs.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

A serialized object representation in Java contains the object data and metadata (e.g., threads) and its class file.

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Upon creation of a Thread object, its run() method is immediately started.

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

After the run() method of a Thread object is complete, the Thread object is automatically deleted by the garbage collector.

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

A new Thread object must be used each time a runnable code is to be started.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

The execution order of Java threads may be hard to predict.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

The execution order of Java threads is deterministic.

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Java objects by default comprise a single read lock, which can be upgraded to a write lock.

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Java objects by default comprise a single read lock, which is used for locking synchronized code.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

If a thread T wants to access synchronized code of an object which is already locked by another thread U, the thread T is put to sleep and put into a waiting queue.

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Runnable is an interface to implement a run() method and used for Java threads.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

After the run() method of a thread object is complete, the thread object continues to exist.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

The run() method of a thread object can be invoked more than once.

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

The Java runtime environment resumes blocked threads in order of their waiting time.

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

JavaFX bindings define constraints for the layout of UI elements.

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

Stage objects in JavaFX are windows which can host UI elements.

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

JavaFX supports the observer design pattern.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

Access to JavaFX elements like labels of buttons can be done by any thread of a Java program.

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

The Java ServerSocket class is used to create TCP sockets.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

The Java ServerSocket class is used to create UDP or TCP sockets.

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Serialized objects can be transmitted over a TCP connection.
True
26
Spatial uncoupling is a property which some indirect services provide.
True
27
A tuple space provides persistent storage of data until the data gets explicitly removed.
True
28
UDP message passing may imply space uncoupling.
False
29
Java RMI stands for Java Rapid Model Interaction.
False
30
Java RMI requires that all access to remote methods uses call-by-value for passing parameters.
False
31
Naming.lookup() returns a copy of a remote object from an RMI registry.
False
32
AJAX stands for Advanced Java Application Extensions.
False
33
Servlets are Java objects which can be executed in a web server to handle user requests.
True
34
Servlets do not need synchronization to handle concurrent client accesses as they are synchronized by default.
False
35
Java Server Faces support the creation of dynamic webpages.
True
36
The HTTP command cannot be used to transmit data from a client to a web server.
False
37
A serialized object representation in Java contains the object data and its class file.
False
38
Message queue systems may implement different queue models.
True
39
In transient asynchronous communication, the sender continues its operation after sending a message without waiting for an answer by the receiver.
True
40
Persistent indirect communication requires buffering of messages.
True
41
Email servers provide time uncoupling.
True
42
JGroups implements an RPC (remote procedure calling) mechanism.
True
43
In JGroups, one defines channels to handle message groups.
True
44
Message queue systems provide unreliable point-to-point communication.
False
45
The Java class library provides the DatagramPacket object to represent UDP packets.
True
46
Java RMI stands for Java Remote Method Invocation.
True
47
ExecutorServices are used to allocate runnables or callables to threads.
True
48
Calling the get() method on a Future object can result in a blocking situation.
True
49
A system that stays responsive under verying workload is called elastic
True
50
Loose coupling and isolation should be avoided as it makes date exchange unnecessarily hard to implement
False
51
Asynchronus message passing establishes a boundary between components
True
52
In case of errors, the system is allowed to slow down and not respond in a timely manner
False
53
The Java Compiler ensures that thread switches will not occure between operations contained in a single line of source code
False
54
CompletableFutures offer the same error-handling capatibilities as Futures
False
55
Mailing lists provide space and time uncoupling
True
56
In ideal group communication, messages are recieved simultaniously by all reciepents
True
57
HTTP connections allow servers to initiate communication to a client
False
58
IP Multicast provides time uncoupling
False
59
Tuple space support reading and removing of entries by client
True
60
Tuple Spaces store data only for a fixed amount of time, after which it is automatically deleted in order to implement disapearing messages
False
61
Message queue systems decouple space and time
True
62
WAN stands for Wide Area Network and is a competing standard to WLAN
False
63
Nowdays the choice of a specific Network Topology doesnt need to be considered anymore when designing networks, as the topology makes little to no difference
False
64
Broadcasting needs collision detection mechanisms
True
65
With the advent...Iso..high/definition content
False
66
Java Optionals can help to write more readable code
True
67
Java Optionals is an alternative to using Null Pointers
True
68
Java Optionals cannot throw a NUllPOinterException when calling Optional of T
False
69
Java Optionals can be processed as elements of a stream
True
70
Objects should be used to bundle long parameter lists
True
71
Choose method names using conventions
True
72
Prefer longer parameter lists
False
73
Avoid sequences of same typed parameters
True
74
Java bindings can couple properties of UI elements bidirectionally
True
75
Access to JavaFX elements, like labels of buttons, can be done by any thread of a Java program
False
76