Computer Science, asked by Anonymous, 8 hours ago

1. Name the process of restricting the free flow of data from the outside world.

2. A shorthand operator can be used only when a variable acts as an accumulator or a counter.
Explain it clearly!!

( Specifically explain what is accumulator or a counter. )
If you can it illustrate with an example it would be more clear :)​

Answers

Answered by xxcuteboyxx62
9

\begin{gathered}\huge\blue{\mid{\fbox{\tt{SOLUTION}}\mid}} \\ \end{gathered}

❥︎[ 1 ] The process of restricting the free flow of data from the outside world is known as: encapsulation.

❥︎[ 2 ] The Graphics Processing Unit (GPU)1 provides much higher instruction throughput and memory bandwidth than the CPU within a similar price and power envelope. Many applications leverage these higher capabilities to run faster on the GPU than on the CPU (see GPU Applications). Other computing devices, like FPGAs, are also very energy efficient, but offer much less programming flexibility than GPUs.

❥︎ This difference in capabilities between the GPU and the CPU exists because they are designed with different goals in mind. While the CPU is designed to excel at executing a sequence of operations, called a thread, as fast as possible and can execute a few tens of these threads in parallel, the GPU is designed to excel at executing thousands of them in parallel (amortizing the slower single-thread performance to achieve greater throughput).

❥︎ The GPU is specialized for highly parallel computations and therefore designed such that more transistors are devoted to data processing rather than data caching and flow control. The schematic Figure 1 shows an example distribution of chip resources for a CPU versus a GPU.

Figure 1. The GPU Devotes More Transistors to Data Processing

Answered by 44PurpleOcean
6

Answer:

1 . The process of restricting the free flow of data from the outside world is known as: encapsulation.

In object-oriented computer programming languages, the notion of encapsulation (or OOP Encapsulation) refers to the bundling of data, along with the methods that operate on that data, into a single unit.

Every Java class is an example of encapsulation because we write everything within the class only that binds variables and methods together and hides their complexity from other classes. Another example of encapsulation is a capsule. Basically, capsule encapsulates several combinations of medicine.

2. A shorthand operator is a shorter way to express something that is already available in the Java programming language. Shorthand operations do not add any feature to the Java programming language.

Shorthand Assignment Operators are Binary Operators which require 2 values or 1 variable and another value/expression. One on the left and the other on the right side.

<<= Shorthand Bitwise Left Shift

>>= Shorthand Bitwise Right Shift

~= Shorthand Bitwise Compliment

!= Shorthand Inequality

Similar questions