IRQ 0 interrupt have _______________ priority
? low
? medium
? highest
? lowest

Answers

Answer 1

Answer:

Highest

Explanation:

A interrupt request / IRQ is in which instructions are sent to Cpu and uses an interrupt handler to run distinct program . Hardware interrupts are used to manage occurrences such as obtaining modem or network card information, important presses, or mouse motions.

Interrupt request 0. – it is a system timer (can not be altered) Interrupt request 1 – keyboard controller (can not be changed) Interrupt request 2 – cascaded IRQ 8–15 signals (any device configured to use IRQ 2 will genuinely use IRQ 9) Interrupt request 3 – serial port 2 controller Interrupt request 4 –  serial port 1 controller Interrupt request 5 –parallel port 2 and 3  Interrupt request 6 - floppy disk controller  Interrupt request 7 –parallel port 1. If a printer is not present, it is used for printers or for any parallel port. It can also possibly be shared with a secondary sound card with cautious port management.

As interrupt number increases priority level decreases, Priority level 0 is the highest priority level .


Related Questions

What is disaster recovery? How could it be implemented at your school or work?

Answers

Answer:

Disaster recovery is a set of procedure/plans/actions which are put in place to protect an organization which is facing a disaster. In a technological terms, a government organizations facing cyber attack will follow certain counter measures to recover from cyber disaster. Similarly, in school a disaster recovery can be natural calamity or cyber threat at school's database.

To implement disaster recovery at school or work we must aware everyone with proper procedures and mock drills must be conducted so that people can act swiftly when a disaster occurs and speed up disaster recovery.

What are table buffers?

Answers

Answer:

Table buffers are tools used to avoid the process of accessing a database in servers.

The main benefit of shielded twisted pair cabling over unshielded twisted pair is that STP is much more durable.

a) True b) False

Answers

Answer: True

Explanation:

In shielded twisted pair (STP) we have two wires which are twisted together and they have a shielding layer outside them which helps them to avoid interference from outside noise. STP thus having the advantage with an additional layer of shield covering the two wires together makes them more durable compared to unshielded twisted pair.

Indirect recursion requires the same careful analysis as direct recursion.

True

False

Answers

Answer: True

Explanation: Direct recursion is the process when a function call for itself and indirect recursion is the recursion process where a function calls another function and the result driven is the actual function . The aim of both the recursion process to provide with appropriate result by calling function so this declares that both the process indirect and direct recursion requite same careful analysis .

____ refers to the order in which values are used with operators.

a.
Floating

b.
Associativity

c.
Declaration

d.
Initialization

Answers

Answer:

b. Associativity

Explanation:

Associativity specifies the order in which operators are processed vis a vis operands/values in an expression. For example: Consider the expression: a + b + c. Here a + b is evaluated first before adding the result with c as the '+' operator is left associative. The default associativity can also be overridden by the use of parentheses. For example a + (b + c) . In this case b+c will be evaluated first.

When an expression containing a ____ is part of an if statement, the assignment is illegal.

a.
greater than sign

b.
double equal sign

c.
single equal sign

d.
Boolean value

Answers

Answer:

single equal sign

Explanation:

The if statement is used for check the condition.

syntax:

if(condition)

{

  statement;

}

let discuss the option one by one for find the answer:

Option a:  greater than sign

this assignment operator '>' is valid. it is used to create the condition like n>0, p>4.

Option b:  double equal sign

this assignment operator '==' is valid. it is used to check the equal condition.

like 2 == 2.

Option c:  single equal sign

this assignment operator '=' is not valid. it is used for assign the value to variable not for checking like a=2, in this 2 assign to a but it not apply the condition.

Option d:  Boolean value

we can provide the Boolean value as well if Boolean is TRUE, if condition true otherwise false.

Therefore, the option c is correct option.

Composite analog signals are SineWaves. True/false

Answers

False the answer is false

You observe that classmates who get good grades tend to sit toward the front of the classroom, while those who receive poor grades tend to sit toward the back. What are three possible cause-and-effect relationships for this nonexperimental observation?

Answers

1.Students at front rows will have to sit attentive and have to concentrate on the lecture being delivered,thus their knowledge about the lecture is way better than the students at back rows.

2. Front row students are more in line with the teacher and they have much better concepts regarding the lecture delivered and they have more score in exams.

3. Generally the more interested a student is about the lectures being delivered,the more front he/she is in classroom and thus this results in more grades.

Final answer:

Three possible cause-and-effect relationships explaining why students with good grades sit at the front include higher motivation, increased teacher attention, and the third-factor explanation such as self-confidence or socioeconomic status, which could indicate a spurious relationship.

Explanation:

You observe that classmates who get good grades tend to sit toward the front of the classroom, while those who receive poor grades tend to sit toward the back. Three possible cause-and-effect relationships for this nonexperimental observation could include:

Students with higher motivation levels might choose to sit at the front to minimize distractions and engage more directly with the lesson, leading to better performance.Teachers may pay more attention to students at the front, which might result in better understanding and higher grades for these students due to increased interaction.There could be a spurious relationship where both seat choice and academic performance are influenced by a third factor, such as self-confidence or socioeconomic status, as shown in Rist's study which linked social class with proximity to the teacher.

It is difficult to determine without further investigation whether the observed correlation indicates a causal relationship or a spurious relationship. Investigating the root causes of this observation would require a more rigorous research design with clear independent and dependent variables, as well as controls to account for potential confounding factors.

Write a program that generates two 3x3 matrices, A and B, withrandom values in the range [1, 100] and calculates the expression½A + 3B

Answers

Answer:

#include <bits/stdc++.h>

using namespace std;

int main() {

int A[3][3],B[3][3],res[3][3],i,j;

srand(time(0));//for seed.

for(i=0;i<3;i++)

{

   for(j=0;j<3;j++)

{

   int val=rand()%100+1;//generating random values in range 1 to 100.

   int val2=rand()%100+1;

   A[i][j]=val;

   B[i][j]=val2;

}

cout<<endl;

}

for(i=0;i<3;i++)

{

   for(j=0;j<3;j++)

   {

       res[i][j]=0.5*A[i][j]+3*B[i][j];//storing the result in matrix res.

   }

}

cout<<"Matrix A is"<<endl;

for(i=0;i<3;i++)

{

   for(j=0;j<3;j++)

   {

       cout<<A[i][j]<<" ";//printing matrix A..

   }

   cout<<endl;

}

cout<<"Matrix B is"<<endl;

for(i=0;i<3;i++)

{

   for(j=0;j<3;j++)

   {

       cout<<B[i][j]<<" ";//printing matrix B..

   }

   cout<<endl;

}

cout<<"The result is"<<endl;

for(i=0;i<3;i++)

{

   for(j=0;j<3;j++)

   {

       cout<<res[i][j]<<" ";//printing the result..

   }

   cout<<endl;

}

return 0;

}

Output:-

Matrix A is

13 95 83  

88 7 14  

24 22 100  

Matrix B is

11 13 95  

48 35 20  

68 100 18  

The result is

39.5 86.5 326.5  

188 108.5 67  

216 311 104  

Explanation:

I have created 2 matrices A and B and storing random numbers int the matrices A and B.Then after that storing the result in res matrix of type double to store decimal values also.Then printing the res matrix.

Assuming vecList is a vector container, the expression ____ deletes all elements from the container.

A.
vecList.erase(position)

B.
vecList.erase(beg, end)

C.
vecList.clear()

Answers

Answer:

A. vecList.erase(position)

Explanation:

Assuming vecList is a vector container, the expression vecList.erase(position) deletes all elements from the container.

Assuming vecList is a vector container, the expression vecList.erase(position) deletes all elements from the container. Thus, the correct option for this question is A.

What is a Vector container?

A vector container may be defined as a type of sequence that significantly represents arrays that can change in size. They significantly utilize contiguous storage locations for their elements. This means that their elements can also be accessed using offsets on regular pointers to their elements, and just as efficiently as in arrays.

According to the context of this question, vecList.erase(position) is the tool of the vector container in order to delete all sorts of elements that have been expressed by the vector container.

Therefore, the expression vecList.erase(position) deletes all elements from the container. Thus, the correct option for this question is A.

To learn more about vector containers, refer to the link:

https://brainly.com/question/12949818

#SPJ5

Do you think that people accept poor quality in information technology projects and products in exchange for faster innovation? What other reasons might there be for such poor quality?

Answers

Answer:

Explanation:

Great question, it is always good to ask away and get rid of any doubts that you may be having.

This depends on the company, but some companies will accept poor quality as long as the product works and provides them faster innovation. This will happen especially if a company knows or has an idea that a competitor is working on a similar product.

Another big reason why a company might accept poor quality in order to release a product is money. Sometimes a company does not have the budget to continue the project, therefore they release it usually in Early Access. This allows them to start making some money on the project while they continue to work on it.

I hope this answered your question. If you have any more questions feel free to ask away at Brainly.

In this exercise, we are analyzing the context in which we have the quality of technological products linked to monetary value, as follows:

We know that some companies are focused on having a worse quality as long as they make a quick profit, as the consumer is not a priority.

Who seeks price does not find quality?

When it comes to Price or Quality, many entrepreneurs most of the time have a false perception that the cheaper a product they tend to offer to the consumer, the greater the chances of success.

We must take into account that the option of a lower quality is often linked to the budget that a company may have.

See more about technology at brainly.com/question/9171028

Write a program that sorts an array of 10 integers using bubble sort. In the bubble sort algorithm, smaller values gradually “bubble” their way upward to the top of the array like air bubbles rising in water, while the larger values sink to the bottom. The bubble sort makes several passes through the array (of 10 items). On each pass, successive pairs of elements are compared. If a pair is in increasing order (or the values are identical), we leave the values as they are. If a pair is in decreasing order, their values are swapped in the array. The comparisons on each pass proceed as follows—the 0th element value is compared to the 1st, the 1st is compared to the 2nd, the 2nd is compared to the third, ..., the second-to-last element is compared to the last element.

Answers

Answer:

#include<iostream>

using namespace std;

int main(){

   //initialization

  int arr1[10] = {2,4,6,1,7,9,0,3,5,8};

  int temp;

   int size_arr;

   //nested for loop

  for(int i=0;i<size_arr-1;i++){

   for(int j=0;j<size_arr-i-1;j++){

       if(arr1[j]>arr1[j+1]){ //compare

               //swapping

           temp = arr1[j];

           arr1[j]=arr1[j+1];

           arr1[j+1]=temp;

       }

   }

  }

  //display the each element

  for(int i=0;i<10;i++){

   cout<<arr1[i]<<" ";

  }

    return 0;

}

Explanation:

Create the main function and declare the variable and defining the array with 10 values.

take the nested for loop, nested loop means loop inside another loop.

the outer loop traverse in the array from 0 to size-1.

and inside loop traverse from 0 to size -i-1, because for every cycle of the outer loop the one element is sorted at the end. so, we do not consider the element from the last for every cycle of the outer loop. That's why (size-i-1)

In the bubble sort, the first element compares with the second element and if the first id greater than the second then swap the value. so, for the above algorithm, we take the if statement and it checks the condition if the condition becomes true then the swap algorithm executes.

we take a third variable for swapping. after that, if the outer loop condition false it means all elements will traverse and then the loop will terminate.

and finally, take another for loop and display the output.

Final answer:

The answer provides a Python program example that uses the bubble sort algorithm to sort an array of 10 integers. The program defines a function, bubble_sort, which sorts the array in ascending order and then prints the sorted array.

Explanation:

To sort an array of 10 integers using the bubble sort algorithm, you can use the following program as a reference. Bubble sort compares adjacent elements and swaps them if they are in the wrong order. Here's a basic example in Python:

def bubble_sort(arr):
   n = len(arr)
   for i in range(n):
       swapped = False
       for j in range(0, n-i-1):
           if arr[j] > arr[j+1]:
               arr[j], arr[j+1] = arr[j+1], arr[j]
               swapped = True
       if not swapped:
           break
   return arr

# Example array:
numbers = [64, 34, 25, 12, 22, 11, 90, 88, 66, 23]
sorted_numbers = bubble_sort(numbers)
print("Sorted array is:", sorted_numbers)

This program will sort the given array of integers in ascending order. The function bubble_sort takes an array as input, performs the bubble sort algorithm, and returns the sorted array.

When multiple exceptions are caught in the same try statement and some of them are related through inheritance, does the order in which they are listed matter?

Answers

Answer:

Yes, the order in which the catch blocks are listed matter in case where multiple exceptions are caught in the same try statement and some of them are related through inheritance.

Explanation:

A try block may be followed by one or mutiple catch blocks. Each catch block should contain a separate exception handler. Thus, if we need to perform different tasks for the occurrence of different exceptions then we need to use java multiple catch blocks.

Every catch block should be ordered from the most particular to the most generic like catch for the NumberFormatException class must come before the catch for the Exception class.

Thus, the order in which the catch blocks are listed matter in case where multiple exceptions are caught in the same try statement and some of them are related through inheritance.

Some data files should be totally hidden from view, while others should have ____ so users can view, but not change, the data.
Answer
no-access properties
read-only properties
full-access properties
write-only properties

Answers

Answer:

read-only properties.

Explanation:

Only the read only properties can view but cannot change the data.The user don't have access to the no access properties, full-access properties can read and modify the data.The write only properties can only modify the data.So to only view the data the data should have read only properties.

h(n)=h(n)+h(n-2)

h(2)=h(1)=h(0)=1, n>=2

Write a C++ function int h(int n)

Answers

Answer:

#include<iostream>

using namespace std;

int h(int i)

{

if(i==0 ||i==1||i==2)

 return 1;

else

 return(h(i-1)+h(i-2));

}

int main()

{

int n, result;

cout<<"Enter value for n:";

cin>>n;

result = h(n);

cout<<result;

}

Explanation:

The recurrence relation will be h(n)= h(n-1)+h(n-2), unless the recursion will not finish.

using Matlab programming I need to rotate the line defined by x,y by 45 degrees around 2,2

x= 2,4,6,8,10
y= 2,4,6,8,10

Answers

Answer:

% here x and y is given which we can take as

x = 2:2:10;

y = 2:2:10;

% creating a matrix of the points

point_matrix = [x;y];

%  center point of rotation  which is 2,2 here

x_center_pt = x(2);

y_center_pt = y(2);

% creating a matrix of the center point

center_matrix = repmat([x_center_pt; y_center_pt], 1, length(x));

% rotation matrix with rotation degree which is 45 degree

rot_degree = pi/4;      

Rotate_matrix = [cos(rot_degree) -sin(rot_degree); sin(rot_degree) cos(rot_degree)];

% shifting points  for the center of rotation to be at the origin

new_matrix = point_matrix - center_matrix;  

% appling rotation  

new_matrix1 = Rotate_matrix*new_matrix;          

Explanation:

We start the program by taking vector of the point given to us and create a matrix by adding a scaler to each units with repmat at te center point which is (2,2). Then we find the rotation matrix by taking the roatational degree which is 45 given to us. After that we shift the points to the origin and then apply rotation ans store it in a new matrix called new_matrix1.

What is variable hoisting in JavaScript? Provide examples.

Answers

Answer:

before executing a code using javascript hoisting we can move any variable declaration to the top of the scope in a code.

Explanation:

It is to be remembered that hoisting works with declaration not with initialization.

example:

//initializing a variable s

var s = 2;

t = 4

elem.innerHTML = s + " " + t;           // Display s and t values

// initializing a variable for hoisting

var t;

Which of the following is not a standard method called aspart of the JSP life cycle*
*jspInit()

*jspService()

*_jspService()

*jspDestroy()

Answers

Answer:

*jspService()

Explanation:

These are the steps in JSP life cycle.

1. Conversion JSP page to Servlet .

2.Compilation of JSP page(test.java)

3.Class is loaded (test.java to test.class)

4.Instantiation (Object is created)

5.Initialization (jspInit() method is only called once at the time of servlet     generation )

6.Request processing(_jspService() method is used for serving requests by JSP)

7.JSP Cleanup (jspDestroy() method is used for removing JSP from use)

There is no *jspService() method in the JSP life cycle.

What is output when the CarTest application is run? Why?
public class Car {



private String color;

private int numWheels;



public Car(String color, int numWheels) {

this.color = color;

this.numWheels = numWheels;

}



public String getColor() {

return color;

}



public void setColor(String color) {

this.color = color;

}



public int getNumWheels() {

return numWheels;

}



public void setNumWheels(int numWheels) {

this.numWheels = numWheels;

}

}

public class CarTest {

public static void main(String[] argvs) {



CarTest carTest = new CarTest();

carTest.runDemo();

}



public void runDemo() {

Car c = new Car("blue", 4);

changeColor(c, "red");

System.out.println(c.getColor());

}



public void changeColor(Car car, String newColor) {

car.setColor(newColor);

}

}

What is output when the CarTest application is run? Why?

Answers

Answer:

red

Explanation:

public class CarTest {

public static void main(String[] argvs) {

//below line will create an object of CarTest class Object

CarTest carTest = new CarTest();

//This will call runDemo method

carTest.runDemo();

}

public void runDemo() {

//Below line will create an object of Car class  with color blue and 4 wheel

Car c = new Car("blue", 4);

//Bellow Line will change the color from blue to red, see the logic writteen in chnageColor method definition

changeColor(c, "red");

//Below line will print the color as red

System.out.println(c.getColor());

}

public void changeColor(Car car, String newColor) {

//This line will set the color as passed color in the car object

car.setColor(newColor);

}

}

Create an application program that will compute theradius and circumference of a circle. Write a Main class withHelper methods to prompt for and input the radius of acircle(getRadius), calculate thecircumference(calcCirc), and calculate thearea(calcArea) of a circle. Define the radius,area, and circumference in main which will call each calc method,passing radius to each one. Assume PI = 3.14159 or use theMath.PI builtin constant. Format theoutput to show two decimal places in the calculatedvalues.

Answers

Final answer:

An application to compute the radius and circumference of a circle requires creating a Main class with methods to input radius, calculate circumference, and area, formatting results to two decimal places using Math.PI.

Explanation:

To create an application that calculates the radius and circumference of a circle, you will need to define methods within your Main class. The getRadius method will prompt the user for input, calcCirc for calculating the circumference using the formula C = 2 * PI * r, and calcArea for calculating the area with A = PI * r * r. You should use the Math.PI constant for PI, and ensure all results are formatted to two decimal places.

Sample code structure in Java:

public class Main {
   public static void main(String[] args) {
       double radius = getRadius(); // prompts user and gets radius
       double circumference = calcCirc(radius);
       double area = calcArea(radius);
       System.out.printf("Radius: %.2f\n", radius);
       System.out.printf("Circumference: %.2f\n", circumference);
       System.out.printf("Area: %.2f\n", area);
   }
   // Helper methods here
}

Ensure that you correctly use double data types for storing the input from the user, as well as the calculated values, since these can include decimal points.

the largest distribution of software cost will be when in the programs life cycle?

Answers

Answer: Early

Explanation:

The largest distribution of software cost will be in the early stages of program life cycle. The different phases in the program life cycle are edit time, compile time, link time, distribution time, installation time, load time, and run time. So during early program life cycle we have editing stage which involves correcting the code , debugging earlier codes and addition of features into the code which leads to a large software cost

difference between global and local variables

Answers

Answer:

Global variables:

1. It is declare outside of all functions.

2. Cannot be declare the two global variable with same name.

3. It can be used in any where in the program, the is no problem with scope.

Local variables:

1. It is declare inside the functions.

2. Can be declare the two or more local variable with same name in the different functions.

3. It is available until that functions are executed.

Explanation:

Global variables are declare outside of all function,, we can access that variable anywhere in the program

for example:

int num = 10;

int main(){

statement;

fun(){

statement;

}

}

The variable is outside of all functions. So, it is a global variable.

It is not declare in the function or block, this is reason it has no problem with availability. it is available until the program is executed.

Other side, local variable is declare in the function.

for example:

int main(){

int num = 10;

statement;

fun(){

int num = 10;

statement;

}

}

Here, the  variable num is local variable and it can be more than one time with same name but in the different function.

it is available untill that function executed.

The term asymptotic means the study of the function f as n becomes larger and larger without bound.

True

False

Answers

Answer:

False

Explanation:

The term asymptotic means approaching a value or curve arbitrarily closely

Random access iterators are ____ iterators that can randomly process elements of a container.

A.
input

B.
forward

C.
bidirectional

Answers

Answer:

C. Bidirectional

Explanation:

If we want to access elements at an any random offset position then we can use random access iterators.They use the functionality 'as relative to the element they point to' like pointers.Random access iterators are Bidirectional iterators that can randomly process elements,pointer types are also random-access iterators.

Do the following SQL questions. The resulting columns must all have descriptive names. You must show the result of the query. For example, if the query is:

Show the office id, the city, and the region
Your query should be:
select office, city, region

Answers

Answer:

We can use CREATE command to create tables with columns having descriptive names

Explanation:

Firstly, create a table using CREATE  command in SQL. The syntax is as follows:

CREATE TABLE [table_name]

(

 [col_name] [datatype]),

[col_name] [datatype]),

[col_name] [datatype]),

[col_name] [datatype])

)

Once the table is created, we can insert the data into table using INSERT command. It's syntax is as follows:

INSERT INTO table_name VALUES('', '', '')

if datatype is string, values must be entered within single quotes. If datatype is int, values are entered directly without using  quotes.

Now, you can select the data from  the table using SELECT command. It's syntax is as follows:

SELECT column-list FROM table_name

If you want to filter rows according to conditions, you can use WHERE command.

I have created  sample table and inserted some data into it. Now, I applied some queries on it to select data from the table.

I have written in a text file and attached the same. Please find. Thank you!

Which of the following method signatures correctly specifies an array as a return type?

a) private array testMethod ( int x )
b) private int[ ] testMethod ( int x )
c) private double[5] testMethod ( int x )
d) private double testMethod[ ] ( int x )
e) can't tell from this code

Answers

Answer:

private int[ ] testMethod ( int x )

Explanation:

Before going to the reason first understand the syntax of declare the function.

Syntax:

Access_modifier return_type name (argument_1, argument_2,...);

Access_modifier is used for making the restriction to access the values.

it is public, private and protected.

Return_type:  it is used to define return type of the function.

it can be int, float, double.

In the question:

Option 1:  private array testMethod ( int x )

it is not valid because array is not valid return type.

Option 2: private int[ ] testMethod ( int x )

int[ ]  denotes the integer array. so, the function return the integer array.

Option 3: private double[5] testMethod ( int x )

it is not valid because double[5] is not valid return type. we cannot enter the size of the array.

if we replace double[5] to double[ ], then it valid and the function return double type array.

Option 4: private double testMethod[ ] ( int x )

it return type is double. So, it return the decimal value but not array.

Therefore, the correct option is (b).

Write a C++ program that usesInsertion Sort to sort an unsorted list of numbers.

Answers

C++ program - Insertion sort

#include <bits/stdc++.h>  

using namespace std;  

/* Defining function for sorting numbers*/

void insertionSort(int array[], int n)  

{  

   int i, k, a;  

  for(i=1;i<n;i++)

           {

              k=array[i];

               a=i-1;

            while(a>=0 && array[a] > k) // moving elements of array[0 to i-1] are greater than k, to one position //

                      {

                       array[a+1] = array[a];

                        a =a-1;

                      }

              array[a+1] =k;

             }  

}              

/* Driver function */

int main()  

{  

   int array[] = { 12,56,76,43,21};   //input integers

   int n = sizeof(array) / sizeof(array[0]);   //finding size of array

 

   insertionSort(array, n);   //Calling function

    for (int i = 0; i < n; i++)   //printing sorted array

        cout << array[i] << " ";  

    cout << endl;  

    return 0;  

}  

Draw directed graphs representing relations of the following types.
(a) Reflexive, transitive, and antisymmetric.
(b) Reflexive, transitive, and neither symmetric nor antisymmetric.

Answers

Answer:

The first graph in the picture describes a relation that is (a) Reflexive, transitive, and anti-symmetric.

Because a, b, c, d all are related to itself, so reflexive.

where (a, b) and (b, d) are in the relation, (a,d) is in the relation,    

for (c,a) and (a,b) there is (c,b).

so it's transitive.

for all a,b in the relation, (a,b) there is no (b,a) with a ≠b.

The second graph in the picture describes a relation that is (b) Reflexive, transitive, and neither symmetric nor anti-symmetric.

Because a, b, c, d all are related to itself, so reflexive.

where (a, b) and (b, a) are in the relation, (a,a) is in the relation,                                                    

where (c, d) and (d, d) are in the relation, (c,d) is in the relation,                                                    

so it's transitive.

Because, (a,b) and (b.a) are there, but for (c,d) there is no (d,c) in relation.

So, the relation is not symmetric.

(a,b) and (b,a) is in relation but, a≠b, so not anti symmetric.

Explanation:

For all a in a set,  if (a,a) in a relation then the relation is reflexive.

For all (a,b) in relation R, if (b,a) is also in R, then R is symmetric.

For all (a,b), (b,c) in relation R, if (a,c) is also in R, then R is transitive.

For all (a,b), (b,a) in R, a = b,  then R is an anti- symmetric relation.

The update expression of a for loop can contain more than one statement, e.g. counter++, total+= sales



True False

Answers

True.

Update expression conditions the iterations of a for loop. Counter++ is the most basic form of use, but others like total += sales are also valid.

Hope this helps.

r3t40

Differentiate between global alignment and local alignment.

Answers

Answer: In global alignment an end to end alignment is made in the entire sequence however in local alignment a local region is found wit the highest level of similarity in their sequences.

Explanation:

Global alignment is more suitable for closely related sequences whereas local is suitable for divergent sequences.

global alignment is used for comparing genes base on same functionalities whereas local alignment is used to find sequences in DNA.

EMBOSS needle is a global alignment tool and BLAST is a local alignment tool

Other Questions
Benito spent $1822 to operate his car last year. Some of these expenses are listed below. Benito's only other expense was for gasoline. If he drove 7340 miles, what was the average cost of the gasoline per mile?Operating Expenses Insurance$809Registration$170Maintenance$57A. 61.06 centsB. 10.71 centsC. 1.27 centsD. not enough information Choose the equation that represents the line that passes through the point (1, 6) and has a slope of 3. Figure ABCD is translated down by 6 units:Which of the following best describes the sides of the transformed figure A'B'C'D'?A'D' || A'B'A'B' || BCDC || A'D'A'D' || BC Help plz system of inequalities 20 PTS! PLEASE HELP ME T^T!! Using complete sentences, explain which function has the greatest y-intercept. When electrons are removed from the outermost shell of a calcium atom, the atom becomesA. an anion that has a larger radius than the atomB. an anion that has a smaller radius than the atom.C. a cation that has a larger radius than the atom.D. a cation that has a smaller radius than the atom. When you touch a cold piece of ice with your finger,energy flowsA) from your finger to the ice.B) from the ice to your finger.C) actually, both ways. Explain why surface temperature increases when two bodies are rubbed against each other. What is the significance of temperature rise due to friction? If Jackie were to paint her living room alone, it would take 8 hours. Her sister Patricia could do the job in 9 hours. How long would it take them working together? If needed, submit your answer as a fraction reduced to lowest terms. what are the solutions to the quadratic equation x^2=7x+4 A nurse is caring for a client who has diabetes mellitus and is taking pioglitazone. The nurse should plan to monitor the client for which of the following adverse effects?a. Tinnitusb. Insomniac. Fluid retentiond. Orthostatic hypotension Which of the following choices has the parts of the bronchial tree in the correct order from largest (in diameter) to smallest (in diameter)? a) Primary bronchus, Tertiary bronchus, Terminal bronchioles, Secondary bronchus, Respiratory bronchioles, Alveoli b) Primary bronchus, Secondary bronchus, Tertiary bronchus, Terminal bronchioles, Respiratory bronchioles, Alveoli c) Primary bronchus, Secondary bronchus, Tertiary bronchus, Respiratory bronchioles, Terminal bronchioles, Alveoli d) Primary bronchus, Tertiary bronchus, Secondary bronchus, Respiratory bronchioles, Terminal bronchioles, Alveoli According to the cladogram shown, which two animal species shared the most recent common ancestor? A. Primates and crocodiles B. Birds and rodents C. Sharks and birds D. Birds and crocodiles A magazine provided results from a poll of 2000 adults who were asked to identify their favorite pie. Among the 2000 respondents, 14% chose chocolate pie, and the margin of error was given as plus or minus5 percentage points. Describe what is meant by the statement that "the margin of error was given as plus or minus5 percentage points". Write the equation of the line that is perpendicular to the line 5y=x5 through the point (-1,0).A. y= 1/5x+5B. y= 1/5x5C. y= 5x5D. y= 5x+5 Which writer coined the phrase ships that pass in the night? You have a hat containing 8 red chips, 4 green chips, 5 yellow chips, and 3 white chips. Find the following probabilities and write the answers as simplified fractions:(4 points each)Probability of picking a red chip?Probability of not picking a green chip?Probability of picking one chip and it is a yellow or green chip? According to the Gordon growth model, what is an investor's valuation of a stock whose last dividend was $1.00 per year if dividends are expected to grow at a constant rate of 10 percent over a long period of time and the investor's required return is 16 percent? When you become too cold, your hypothalamus will signal what parts of your body to raise the temperature? At 85C, the vapor pressure of A is 566 torr and that of B is 250 torr. Calculate the composition of a mixture of A and B that boils at 85C when the pressure is 0.60 atm. Also, calculate the composition of the vapor mixture. Assume ideal behavior.