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
AysviL [449]
3 years ago
8

This help me please. ​

Computers and Technology
1 answer:
MariettaO [177]3 years ago
7 0

Answer:

1) 1011010

2) 1100100

3) 1010101

4) 23

5) 22

6) 24

You might be interested in
Suppose that a machine with a 5-stage pipeline uses branch prediction. 15% of the instructions for a given test program are bran
zhenek [66]

Answer:

solution attached below

Explanation:

3 0
3 years ago
Using the program below, explain what the output will be at LINE A. 1 #include 2#include 3#include 4 5 int value - 128; 6 7 int
slega [8]

Answer:

This is the complete correct program:

#include <stdio.h>

#include<sys/types.h>

#include<unistd.h>

int value = 128;

int main()

{

  pid_t pid;

  pid=fork();

  if (pid==0) /* child process */

  {

  value +=8;

  return 0; }

  else if (pid > 0) {/* parent process */

 wait (NULL);

 printf ("PARENT: value =%d\n" ,value); /* LINEA */

 return 0;

}

}

The output of the LINE A is:

PARENT: value = 128

Explanation:

The fork() function used in the program creates a new process and this process is the child process. The child process is same as the original process having its own address space or memory.

In the child process the value of pid is 0. So the if condition checks if pid==0. Then the child process adds 8 to the value of its variable according to the following statement  

value +=8;

Now the original process has value = 128. In else if part the parents process has the value of pid greater than zero and this portion of the program is of the parent process :

else if (pid > 0)

{ wait (NULL);

printf ("PARENT: value =%d\n" ,value);

return 0; }

So the value 128 is printed at the end in the output.

wait(NULL) is used to wait for the child process to terminate so the parent process waits untill child process completes.

So the conclusion is that even if the value of the variable pid is changed in the child process but it will not affect the value in the variable of the parent process.

5 0
3 years ago
Write any four causes of cyber crime
jenyasd209 [6]
A Lack of Empathy
The Victim Deserves It
Self-loathing
It Becomes an Addiction
7 0
3 years ago
Select each procedure that will keep the computer safe and working properly. the correct answers are A, D, E
Mekhanik [1.2K]
Yes uo daddddy deff uuxk me. har we. dd dads aafddu
6 0
3 years ago
Express the following binary numbers in hexadecimal. (a) %100011100101 (b) %1011001111 (show work)
Lapatulllka [165]

Answer:

(100011100101)_{2} = (8E5)_{16} = %8E5

(1011001111) = (2CF)_{16} = %2CF

Explanation:

Binary and hexadecimal values have the following pair equivalences.

(0000)_{2} = (0)_{16}

(0001)_{2} = (1)_{16}

(0010)_{2} = (2)_{16}

(0011)_{2} = (3)_{16}

(0100)_{2} = (4)_{16}

(0101)_{2} = (5)_{16}

(0110)_{2} = (6)_{16}

(0111)_{2} = (7)_{16}

(1000)_{2} = (8)_{16}

(1001)_{2} = (9)_{16}

(1010)_{2} = (A)_{16}

(1011)_{2} = (B)_{16}

(1100)_{2} = (C)_{16}

(1101)_{2} = (D)_{16}

(1110)_{2} = (E)_{16}

(1111)_{2} = (F)_{16}

We convert from binary to hexadecimal selecting groups of 4 binary from the binary code, from the least significant bits(at the right) to the most significant bits(at the left). The conversion is an hexadecimal "string" from the last group you converted to the first. So:

(a) %100011100101

(0101)_{2} = (5)_{16}

(1110)_{2} = (E)_{16}

(1000)_{2} = (8)_{16}

So

(100011100101)_{2} = (8E5)_{16}

(b) %1011001111

(1111)_{2} = F_{16}

(1100)_{2} = C_{16}

(10)_{2} = (0010)_{2} = 2_{16}

(1011001111) = (2CF)_{16}

7 0
3 years ago
Other questions:
  • Monetary Policy can be either Expansionary or Contractionary. Which of the following actions classify as Expansionary Monetary P
    7·2 answers
  • Why is it important to ask an interviewer at least one question at the end of an interview?
    12·2 answers
  • Which of the following describe a required
    7·1 answer
  • How to get the home button on your screen?
    13·1 answer
  • Within a major students can choose to study a specific area within major. For example a journalism student may study military jo
    8·1 answer
  • What provision of the Government Paperwork Elimination Act was designed to encourage a paperless society?
    6·2 answers
  • The information provided in text aids can help us to understand a text’s content before we even read it.
    8·1 answer
  • Question :
    6·1 answer
  • 13. Place where names, addresses and email information<br> is stored
    6·1 answer
  • Sub to the channel plz plz
    6·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!