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
Vedmedyk [2.9K]
3 years ago
13

Read the following Python code:

Computers and Technology
1 answer:
Vinvika [58]3 years ago
6 0

Answer:

0b1100

Explanation:

use online python ide

online-python.com/

paste code in

get answer "0b1100"

You might be interested in
Remember not to use tools that are ________ in any way.
Vlad1618 [11]
Answer (Broken)

The answer is broken because I took the test and it is the most logical answer.

Hope this helps have a nice day :)
4 0
3 years ago
Software is giving instructions so that text is displayed on the monitor. This software is an example of _____.
harina [27]
C or 3 system software kinda like firmware internally programmed on your keyboard
6 0
3 years ago
Read 2 more answers
In a(n) __________ situation, a wireless device is configured to appear to be a legitimate access point, enabling the operator t
AnnZ [28]

Answer: Malicious association

Explanation:

 The malicious association is the situation where the wireless device are mainly configured so that they can connect by using the cracked device such as laptop to the organization network.

 This type of access point is known as access point (AP). It basically enabled the operator for stealing the password form the user. In the wired network, it penetrate by legitimate the wireless AP (Access point). The hackers also create the computer virus in the network.

3 0
3 years ago
after teaching a group of students about measuring systems and drug calculations, the instructor determines that the teaching wa
dusya [7]
  • After teaching a group of students about drug measurement and calculation systems, the instructor determines that teaching is successful when students can identify which metric system is the most widely used system.

  • The metric system is a measurement system for something that is done in a study and calculation. An example of a metric system is the meter used to measure length, grams to measure weight, milliliters to measure volume.

  • In this case, we can take an example from the application of the metric system in the world of health. A nurse uses the metric system to calculate doses and uses the liter as the base unit for measuring fluids.

Learn more about Metric System here brainly.com/question/1764307

#SPJ1

7 0
1 year ago
Write a client program that writes a struct with a privateFIFO name (call it FIFO_XXXX, where XXXX is the pid that you got from
ivann1987 [24]

Answer:

client code:

#include <stdio.h>

#include <fcntl.h>

#include <sys/stat.h>

#include <sys/types.h>

#include <unistd.h>

#include <stdlib.h>

#include <string.h>

int main (void)

{

 struct values

 {

   char privateFIFO[14];

   int intbuff;

 }input;

 int fda;  // common FIFO to read to write to server

 int fdb;      // Private FIFO to read from server

 int clientID;

 int retbuff;

 char temp[14];

 clientID = getpid();

 strcpy(input.privateFIFO, "FIFO_");

 sprintf(temp, "%d", clientID);

 strcat(input.privateFIFO, temp);

 printf("\nFIFO name is %s", input.privateFIFO);

 // Open common FIFO to write to server

 if((fda=open("FIFO_to_server", O_WRONLY))<0)

    printf("cant open fifo to write");

 write(fda, &input, sizeof(input));    // write the struct to the server

 close(fda);

 // Open private FIFO to read

 if((fdb=open(input.privateFIFO, O_RDONLY))<0)

    read(fdb, &retbuff, sizeof(retbuff));

 printf("\nAll done\n");

 close(fdb);

}

server code:

#include <stdio.h>

#include <errno.h>

#include <fcntl.h>

#include <sys/stat.h>

#include <sys/types.h>

#include <unistd.h>

#include <stdlib.h>

#include <string.h>

struct values

 {

   char privateFIFO[14];

   int intbuff;

 }input;

int main (void)

{

 int fda;  //common FIFO to read from client

 int fdb;  //private FIFO to write to client

 int retbuff;

 int output;

// create the common FIFO  

 if ((mkfifo("FIFO_to_server",0666)<0 && errno != EEXIST))

       {

       perror("cant create FIFO_to_server");

       exit(-1);

}

// open the common FIFO

 if((fda=open("FIFO_to_server", O_RDONLY))<0)

    printf("cant open fifo to write");

output = read(fda, &input, sizeof(input));

// create the private FIFO

 if ((mkfifo(input.privateFIFO, 0666)<0 && errno != EEXIST))

 {

   perror("cant create privateFIFO_to_server");

   exit(-1);

 }

 printf("Private FIFO received from the client and sent back from server is: %d", output);

 //open private FIFO to write to client

if((fdb=open(input.privateFIFO, O_WRONLY))<0)

   printf("cant open fifo to read");

 write(fdb, &retbuff, sizeof(retbuff));

 close(fda);

 unlink("FIFO_to_server");

 close(fdb);

 unlink(input.privateFIFO);

}

Explanation:

3 0
4 years ago
Other questions:
  • Var cookie = "username=mike2009";
    10·1 answer
  • The device used to connect a network to the internet is called a
    7·1 answer
  • Which best describes the differences between a resume and a CV?
    13·2 answers
  • In determining where to store specific data in a(n) centralized DBMS, factors such as communications cost, response time, storag
    12·1 answer
  • What is the best way to locate where my C program gets into an infinite loop
    5·1 answer
  • I am bad with excell pleasee heelp
    15·1 answer
  • What are the advantages of customer relationship managment​
    10·1 answer
  • A10:A20 Refer to values in
    8·1 answer
  • Make this be a 7th grade argument over a boy
    5·2 answers
  • This is science I just couldn’t find it
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!