1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
GalinKa [24]
3 years ago
6

What is the value of alpha[3] after the following code executes?

Computers and Technology
1 answer:
12345 [234]3 years ago
6 0

Answer:

Option (4) i.e., 10 is the correct answer to the following question.

Explanation:

Here, in the following question that is written in the Java Programming Language in which they set an integer data type array variable "alpha" and pass index value 5 then 3. Set the for loop which is starets from 4 to 0 in reverse order then, initialize the value of the variable "j + 5" in the array variable alpha then, check condition if j is less than equal to 2 then perform calculation "alpha[j + 1] = alpha[j] + 3".

You might be interested in
Rob calls the help desk to report that he cannot access any websites on the Internet. While he is still on the phone, you have h
kotykmax [81]
In order for Rob to connect to the network,be must check all the connections he has in order to verify if it is physical problem or not. Let Rob check the wires and all the necessary devices like the routers and switches. If its not physical problem then check if the packets have gone out to the different layers of the network.
8 0
3 years ago
(a) How many locations of memory can you address with 12-bit memory address? (b) How many bits are required to address a 2-Mega-
I am Lyosha [343]

Answer:

Follows are the solution to this question:

Explanation:

In point a:

Let,

The address of 1-bit  memory  to add in 2 location:

\to \frac{0}{1}  =2^1  \ (\frac{m}{m}  \ location)

The address of 2-bit  memory to add in 4 location:

\to \frac{\frac{00}{01}}{\frac{10}{11}}  =2^2  \ (\frac{m}{m}  \ location)

similarly,

Complete 'n'-bit memory address' location number is = 2^n.Here, 12-bit memory address, i.e. n = 12, hence the numeral. of the addressable locations of the memory:

= 2^n \\\\ = 2^{12} \\\\ = 4096

In point b:

\to Let \  Mega= 10^6

              =10^3\times 10^3\\\\= 2^{10} \times 2^{10}

So,

\to 2 \ Mega =2 \times 2^{20}

                 = 2^1 \times 2^{20}\\\\= 2^{21}

The memory position for '2^n' could be 'n' m bits'  

It can use 2^{21} bits to address the memory location of 21.  

That is to say, the 2-mega-location memory needs '21' bits.  

Memory Length = 21 bit Address

In point c:

i^{th} element array addresses are given by:

\to address [i] = B+w \times (i-LB)

_{where}, \\\\B = \text {Base  address}\\w= \text{size of the element}\\L B = \text{lower array bound}

\to B=\$ 52\\\to w= 4 byte\\ \to L B= 0\\\to address  = 10

\to address  [10] = \$ 52 + 4 \times (10-0)\\

                       =   \$ 52   + 40 \ bytes\\

1 term is 4 bytes in 'MIPS,' that is:

= \$ 52  + 10 \ words\\\\ = \$ 512

In point d:

\to  base \ address = \$ t 5

When MIPS is 1 word which equals to 32 bit :

In Unicode, its value is = 2 byte

In ASCII code its value is = 1 byte

both sizes are  < 4 byte

Calculating address:

\to address  [5] = \$ t5 + 4 \times (5-0)\\

                     = \$ t5 + 4 \times 5\\ \\ = \$ t5 + 20 \\\\= \$ t5 + 20  \ bytes  \\\\= \$ t5 + 5 \ words  \\\\= \$ t 10  \ words  \\\\

3 0
3 years ago
To filter media means to :
hammer [34]

Answer:

A. decide what is meaningful and useful and what is not

Explanation:

"Media" refers to the<u> different modes of communication </u>such as <em>TV, radio, Internet, newspaper, etc. </em>

"To Filter" means to<u> remove something that is not meant for people to know</u>.

So to speak, to filter the media means <em>to remove unnecessary information or useless information from the pool of information in the media.</em> This means that only the meaningful things or information will be relayed or posted for the audience/readers to know.

3 0
3 years ago
Proofreaders' marks are:
yuradex [85]
They are symbols and notations for correcting typeset pages.
8 0
3 years ago
JQuery uses CSS selectors to select elements?
rusak2 [61]

Answer:

jQuery uses CSS selector to select elements using CSS. Let us see an example to return a style property on the first matched element. The css( name ) method returns a style property on the first matched element.

5 0
3 years ago
Other questions:
  • Jameis is researching at his local library when he finds a perfect source to use in his paper. When he goes to check the book ou
    12·2 answers
  • About ___% of children score within one standard deviation above or below the national average in intelligence.
    5·1 answer
  • Write a program in C++ to implement bubblesort using the swap function ?
    11·1 answer
  • It's inventiveness uncertainty and futuristic ideas typically deals with science and technology ......what is it.
    8·1 answer
  • How do you return a value from a function?
    6·1 answer
  • The program to check the highEst of n numbercan be done by ......,..
    15·1 answer
  • In cell I5, enter a formula to calculate the total admission fees collected for the 2018
    5·2 answers
  • . List four different ways automation can be used in testing?
    11·1 answer
  • What is the difference between the ISO and the OSI?
    12·2 answers
  • I need help plz
    14·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!