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
hammer [34]
3 years ago
12

How does an ALU perform a logical operation? A. It compares two conditions. B. It compares two additions. C. It compares two mul

tiplications. D. It compares two divisions. E. It compares two subtractions.
Computers and Technology
2 answers:
german3 years ago
6 0
A.It compares two conditions
Mashcka [7]3 years ago
3 0

Answer:

Option A is the correct answer for the above question.

Explanation:

ALU is used to operate on the computer system. It works on a instruction of CU (Control unit). CU gives the control to ALU that which operation is performed and how it is performed. ALU is of two type- first is AU and the other is LU. AU is used to perform Arithmetic operation while LU is used to perform Logical operation. The ALU performs logical operation by comparison the operands because logical operations gives the result either true or false which comes after comparison only.

The above question asked about the work of ALU then the option A is correct answer because it states about work of ALU while the other is not because--

  • Option B states that The ALU compares two addition but it compares any condition.
  • Option C states that The ALU compares two multiplications but it compares any condition.
  • Option D states that The ALU compares two divisions but it compares any condition.
  • Option E states that The ALU compares two subtractions but it compares any condition.

You might be interested in
Write the statement that includes a friend function named before in the class dateType that takes as parameters two objects of t
Lerok [7]

Answer:

In opp friend function is a function that gives the same access to private and protected data. It is declared in class that is granting access.

Explanation:

#include<iostream.h>

using namespace std;

class Sum

{

 int a, b, add;

 public:

 void input()  

{

 cout << "Enter the value of l and m:";

 cin >> l>>m;     taking input from users

}

 friend void add(sum &t);

 void display()  

{

  cout << "The sum is :" << z;

}

};

 void add(sum & p)  

{

  p.add = p.a + p.b;

}

 int main()  

{

  sum p1;

  p1.input();

  add(p1);

  p1.display();

  return false;  

if(display==5)  

{

 return true;  //true is returned if sum is equal to 5

}

else        //if they are not the same

{

 return false;

}

}

8 0
4 years ago
When should students practice netiquette in an online course? Check all that apply.
mixas84 [53]

Answer:

when sending emails to classmates

when participating in online discussion boards

when collaborating as part of digital team

Explanation:

i just took the test

5 0
3 years ago
Write a program that can be used as a math tutor for a young student. The program should display two random numbers (in the rang
levacccp [35]

Answer:

Code:

//<em>Needed Libraries</em>

#include <iostream>

#include <iomanip>

#include <cstdlib>

#include <ctime>

//<em>starting the program</em>

using namespace std;

int main()

{

//<em>Creating the variables needed</em>

double X,Y,Z;

//<em>command for generating random number every time the program runs. </em>

//<em>without it the program default value will be srand(1). </em>

srand(time(0));

// <em>printing the lines to show user what to do.</em>

cout << "Hello, Welcome to Math's Tutor " << endl;

cout << "I will be helping you learn addition today." << "\n\n";

cout << "I will display two random numbers, Solve for the answer." << endl;

//<em>doing the needed calculations and putting the sum in Z</em>

X = 1 + rand() % 500;

Y = 1 + rand() % 500;

Z = A + B;

//<em>printing the value for user to solve</em>

cout << "\n";

cout << X << " + " << Y << " = " << endl;

// <em>pausing the system for user to solve the problem and press any key</em>

system("pause");

//<em>showing the answer to the problem</em>

cout << X << " + " << Y << " = " << Z << endl;

return 0;

}

Explanation:

the above program will print some lines for showing user what to do and then displaying the numbers for user to solve for the answer and then let the user to see the answer when the user press any key.

the random number shown will be between 1 to 500. if the user want to change the range so

X = 1 + rand() % 500;

Y = 1 + rand() % 500;

Put the number for your range instead of 500. It can be 1000, 5000, etc it will increase the range if you want to decrease it then pu a lower number then 500 instead.

After it will allow the user to solve the problem. then show the answer when user press any key.

7 0
4 years ago
State five uses of building​
jekas [21]
Housing, warmth, shelter, to flex on others and pleasure

Hope this helped, but I doubt it(╹◡╹)
8 0
3 years ago
Read 2 more answers
python A year in the modern Gregorian Calendar consists of 365 days. In reality, the earth takes longer to rotate around the sun
e-lub [12.9K]

Answer:

// program in Python.

#read year

i_year=int(input("Please Enter a year:"))

#check leap year

if((i_year % 4 == 0 and i_year % 100 != 0) or (i_year % 400 == 0)):

   print("{} is a leap year.".format(i_year))

else:

   print("{} is not a leap year.".format(i_year))

Explanation:

Read year from user and assign it to variable "year".If year is completely divisible by 4 and not divisible by 100 or year is completely divisible by 400 then year is leap year otherwise year is not a leap year.

Output:

Please Enter a year:2003                                                                                                          

2003 is not a leap year.

3 0
4 years ago
Read 2 more answers
Other questions:
  • What is a possible style of formatting your company could prefer?
    14·2 answers
  • _____ is a major factor in the widespread use of global information systems
    7·1 answer
  • Can you think of any other disruptive or nontraditional ways of earning that you could use the Internet?
    13·1 answer
  • What certification is provided by an APMG-International
    6·1 answer
  • How do you put a picture when you ask a question?
    6·2 answers
  • Write down the result of each expression in the output column and specify the datatype of the result.Datatype should follow the
    14·1 answer
  • Design the program that reads two files and compares their contents. The program calls a method that reads the file one line at
    10·1 answer
  • WILL GIVE BRAINLEST PLZZZ HELP MEE
    14·2 answers
  • Imagine that you are about to make a presentation during an online meeting, where people will need to be able to see you, and yo
    10·1 answer
  • Does anyone know how to permanently delete photos on a dell computer? For my cousin.
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!