True / False
Overflow is usually ignored in most computer systems.

Answers

Answer 1

Answer: True

Explanation: Overflow in computer system is a situation when there is the occurrence of error or disruption due to very large number that is given for calculation cannot be handled.So whenever the range of the particular number given by the user for calculation exceeds is termed as overflow error.It is usually avoided by the computer system because there is not much input given with large numbers for arithmetic operation or can be handled.


Related Questions

A(n) ___________________ process is initiated by individuals who are subjected to forensic techniques with the intention of hiding or obfuscating items or objects with evidentiary value. a. digital forensics b. discovery c. eDiscovery d. anti-forensics

Answers

A(n) anti-forensics process is initiated by individuals who are subjected to forensic techniques with the intention of hiding or obfuscating items or objects with evidentiary value.

Is there any advantage of usingbranch predictor in a pipleline. Explain with example.

Answers

Answer:

Yes, there are advantages of using branch predictor in a pipeline.

Explanation:

Yes, there is advantage of using branch predictor in pipelining. T know this, lets first understand the Branching. Branches are the places in the instructions where multiple paths can be possible and one of the path (in branch) will be followed. This can be understood as conditional executions like If - Else conditions, Switch cases etc. Without branch prediction, the processor becomes slow, processing less number of instructions and taking more clock cycles. The processor has to stall without executing any instructions and wasting lot of clock cycles.  Without branch predictor the instructions that have to be next executed doesn't know. Branch prediction increases Instruction Level Parallelism. Examples are If - Else Conditions and Switch cases.

Write a complete C program that obtains two integers from the user, saves them in the memory, and calls the function void swap (int *a, int *b) to swap the content of the two integers. The main function of your program should display the two integers before and after swapping.

Answers

C program for swapping numbers

#include <stdio.h>

void swap(int *num1, int *num2)/*Defining function  for swapping the numbers*/

{

   int temp; /*using third variable to store data of numbers*/

  temp = *num1;    

  *num1 = *num2;  

  *num2 = temp;      

}

int main ()//driver function

{

  int a,b;

  printf("Enter the numbers for swapping\n");//taking input

  scanf("%d %d",&a,&b);

  printf("The numbers before swapping is a =%d and b=%d \n",a,b);  

  swap(&a, &b);//calling function for swaping  

  printf("The numbers after swapping is a=%d and b=%d",a,b);  

  return 0;      

}

Output

Enter the numbers for swapping  3,4

The numbers before swapping is a =3 and b=4  

The numbers after swapping is a=4 and b=3

Which of the following will cause asyntax error?(0 < num)&& (num <12)0 < num <120 < num&& num < 12num > 0&& num <12

Answers

Answer:

The answer to this question is that none of the following will give syntax error.All of them will get executed.

(0 < num)&& (num <12)

0 < num <12

0 < num&& num < 12

num > 0&& num <12

There is no syntax error i have checked on the compiler also.But logically we take variable on the left side of the comparison operator and the value to the right of the operator.

____ is a set of elements of the same type in which the elements are added at one end.

A.
hash table

B.
tree

C.
queue

Answers

Answer:

queue

Explanation:

queue is the data structure which perform the operation in specific order.

It follow the order first in first out (FIFO). The element is insert at the rear end and deleted from the front.

So, the element is added only the one end.

Tree is a hierarchical structure, their is not one end which used to insert the element.

Hash table also not having single end for insert the element.

Therefore, the answer is queue.

The scope of a variable declared in a for loop's initialization expression always extends beyond the body of the loop



True False

Answers

Answer:

False

Explanation:

for loop is used to run the statement again and again until the condition put inside the for loop is false.

syntax:

for(initialization;condition;increment/decrement)

{

  statement;

}

the initialization scope is valid only within the curly braces of the for loop. it is not valid outside the body of the for loop.

because initialization is the part of the for loop.

What is the printout of the call nPrint("a", 4)?

static void nPrint(String message, int n) {
while (n > 0) {
System.out.print(message);
n--;
}
}
Please explain so that I can learn from you.

Answers

Answer:

aaaa

Explanation:

We have a function nPrint which return type is void, it means it returns nothing.

we declare the two parameters, one parameter is string type and the second parameter is an integer type.

Then, it has a while loop that executes the statement again and again until the condition not FALSE.

Let dry run the code:

First, call the function nPrint("a", 4) bypassing the value in the argument.

then, the value receives by the parameters, the message contains "a" and n contain 4. After that, while loop checks the condition 4 > 0, which is TRUE and the program starts executing the statement.

The program prints the message on the screen "a" and then decreases the value of n by 1. So, the value of n becomes 3.

The above process repeats for the value of n = 3, 2, 1

and print the message "aaaa".

then, the condition becomes false and the program terminates the loop.

Therefore, the answer is aaaa

Write a calculator program that keep reading operations and double numbers from user, and print the result based on the chosen operation using while loop. The loop must stop if the user enters Q letter.

NOTE: no need to write two classes.

Typical run of the program:

Enter an operation(+,-,*,/), Q to quit: +

Enter your first number: 6

Enter your second number: 5

Result= 11.0

Enter an operation(+,-,*,/), Q to quit: *

Enter your first number: 5

Enter your second number: 5

Result= 25.0

Enter an operation(+,-,*,/), Q to quit: q

You calculator has been ended!

Answers

Answer:

 #include <iostream>

using namespace std;

int main()

{

   char opt;

   double num1,num2;

   cout<<"Enter an operation(+,-,*,/), Q to quit: ";

   cin>>opt;

  while(opt != 'Q'){

      cout<<"\nEnter your first number: ";

      cin>>num1;

      cout<<"\nEnter your second number: ";

      cin>>num2;

      if(opt == '+'){

          cout<<"Result = "<<num1+num2<<endl;

      }else if(opt == '-'){

           cout<<"Result = "<<num1-num2<<endl;

      }else if(opt == '*'){

           cout<<"Result = "<<num1*num2<<endl;

      }else if(opt == '/'){

           cout<<"Result = "<<num1/num2<<endl;

      }

      cout<<"Enter an operation(+,-,*,/), Q to quit: ";

      cin>>opt;

  }

  return 0;

}

Explanation:

First, include the library iostream, it allows to use the input/output instruction.

Create the main function and declare the variables.

Then print the message on the screen using cout instruction.

cin instruction is used to store the value into the variable.

then, take a while and check the condition if the value enters by the user is 'Q' or not. if true then enter the while otherwise exit.

after that, store the number enter by the user in the variables and then take the if-else statement for matching the operation enter by the user if match true then do the match operation.

This process continues until the user enters the value 'Q'.

if the user enters the 'Q'  then condition false and exit the program.

For most general purpose processors, how does the operating system handle the situation when the processor is idle?

Answers

Answer:

The operating system handle this system idle situation by using the System Idle Process.

Explanation:

This system idle process constantly keeps the processor occupied means that the processor will not freeze when no processes are in work.When a process is using 12% of the CPU then 88% of the CPU is used by the system idle process.You can see this in the task manager of your windows.

x, y,w and z are Booleanvariables. Make the truth table for the expressiongiven below. (Marks8)

z =NOT(x XORy )AND w

Answers

Answer:

Refer the image for the truth table.

Explanation:

First 3 columns of the truth table are for the values of x,y,and w. The fourth columns is for the expression x XOR y .XOR gives output 1 when the inputs are not same if they are same the output is 0.Fifth column is for the NOT of X XOR y.Then the last columns is for the expression z that is and operation of w and the expression in fifth column.

Convert the following Base 2 (binary) numbers to base 10(decimal):
11101
1010101

Answers

Answer:

11101=29 in base 10.

1010101=85 in base 10.

Explanation:

To convert a binary or Base 2 number into a decimal or base 10 we have multiply respective 1 and 0's to respective powers of 2 and then add them which gives us the decimal number.The LSB(Least Significant Bit) or right most digit in binary number will be multiplied by 2⁰ and increment the power by 1 as we move to the left side or to the MSB(Most Significant Bit).

(11101)₂=1x16+1x8+1x4+0x2+1x1 =16+8+4+1=(29)₁₀.

(1010101)₂=1x64+0x32+1x16+0x8+1x4+0x2+1x1=64+16+4+1=(85₁₀) .

. Which of thefollowing is not a characteristic of marketing plan?

a. It shouldprovide a strategy to accomplish the company mission

b. It shouldprovide for the use of existing resources

c. It should besimple and short

d. It should berigid

Answers

Answer: d)It should be rigid

Explanation: Marketing plan is the basic report that gives the outline about the strategy of marketing in the coming time. The marketing strategy usually include the facts such as simple plan, using resources accordingly and in sufficient way, some future goals, metrics with high level,etc .But the plan should not be rigid, it will make the marketing plan restricted to certain limit which is not included in good marketing strategy.

The good example of pivoting is changing thedimensions along the axis.? True? False

Answers

Answer:

False

Explanation:

The good example of pivoting is NOT changing the dimensions along the axis.

Write a pseudocode statement thatsubtracts the vaiable downPayment from the variable total andassigns the reult to the variable due.

Answers

Answer:

initialize the variables total and downPayment.

int due = total - downPayment;

Explanation:

In the programming, before use the variable in the code you have to declare the variable.

then, there are the mathematical operators in the programming to perform the mathematical calculation.

for perform addition, the operator is '+'.

for performing multiplication, the operator is '*'.

similarly, for performing subtraction, the operator is '-'.

and there is one more assignment operator in programming which is used to assign the value to the variables. The assignment operator is '='.

so,  int due = total - downPayment;

in the above, the program subtracts the downPayment value from the total value and assign to the variable due which is an integer type.

Describe the attacks in wireless networks that are more serious com pared to wired network

Answers

Answer:

Both types of attacks can be devastating.

Explanation:

Attacks Wireless Networks are sometimes considered more serious because they can be attacked from remote locations. One of the more serious attacks would be against commercial airplanes. A wireless hack and system shutdown of a commercial aircraft can be catastrophic, and can all be done wireless. While a Wired Network attack can cause catastrophic events they need to be attacked from within the location of the network which is usually guarded by security personnel as well as system firewalls.

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

The purpose of a report is to

A. organize and summarize data.
B. filter data.
C. search for specific data points.
D. sort data chronologically.

Answers

Answer:

c

Explanation:

Reports communicate information which has been compiled as a result of research and analysis of data and of issues

________splitting places a group of columns in onetable and the remaining columns in anothertable.1. Horizontal2. Vertical3. Both 1 and 2

Answers

Answer:

2. Vertical

Explanation:

Vertical splitting places a group of columns in one table and the remaining columns in another table.

In which of the following is “y” not equal to 5 after execution? X is equal to 4.

a) y = ++x; b) y = x = 5; c) y = 5; d) y = x++;

Answers

Answer:

d) y=x++

Explanation:

In all 3 statements:

y= ++x;

y=x=5;

y=5;

The value of y is equal to 5.

However in the statement y=x++, the value of 5 is equal to value of x prior to the increment operation. The original value of x was 4. So the value of y will be 4. Note that after the statement execution, the value of x will be updated to 5. In effect y=x++ can be visualized as a sequence of following steps:

x=4;

y=x;

x=x+1;

What process makes one group a member of another group? nesting cloning copying grouping

Answers

Answer: Nesting

Explanation: The process of making one group the part of another group is defines as nesting. it is mostly done in the programming . This process helps in reduction of the program by nesting the functions. Nesting is done in computer field in applications as well to make one document the part of other  document .Therefore, nesting is the correct option .

Special variables that hold copies of function arguments are called _________.

Answers

Answer:

Special variables that hold copies of function arguments are called parameters.

What is the value of "d" after this line of code has been executed? double d = Math.round ( 2.5 + Math.random() ); A. 2 B. 3 C. 4 D. 2.5

Answers

Answer:

  3

Explanation:

Math.random() is the function which gives the value greater than or equal to 0.0 and less than 1.0. it gives the double type value.

Math.round is also the function which gives the closest long to the argument.

for example:

Math.round(2.5) it gives 3.

so, Math.random() generate number 0.000 to 0.999

maximum possible value inside the Math.round(2.5+0.999) which is equal to

Math.round(3.499) which gives 3 not 4 when it 3.5 then it gives 4.

therefore, the result is 3

Glven an array named Scores with 25 elements, what is the correct way to assign the 25th element to myScore? A. myScores + 25 B. myScore Scores[24] C. myScore Scores[25) D. myScore== Score[last]

Answers

Answer:

myScore Scores[24]

Explanation:

The array is used to store the data in continuous memory location.

The index of array start from zero, it means first element store in the index zero and second element store in the index 1. So, the index at which the element store is less than 1 from the number of element.

so, the last element is 25 - 1=24.

Option A: myScores + 25

It is not the correct way to store the element.

Option B: myScore Scores[24]

it is the correct form and also the index location is correct.

Option C: myScore Scores[25)

index number is wrong and also the bracket is wrong, it must be [ ].

Option D: myScore== Score[last]

It is not the correct way to store the element.

There, the correct option is B.

Suppose a computer design has -bit integers. What happens when overflow occurs?

Answers

Answer:

When a computer designed has a bit-integers so the overflow occurred when magnitude of number exceeding and the results of the arithmetic operation are exceeding the maximum size of the type of an integer like the addition and the multiplication, which are used to stored in it. The two similar signed number sum are varying with the exceeding range of bit then, it increases the possibility of the overflow.

State whether true or false.
i) init( ) of servlet is called after a client request comes in
ii) Servlets are ultimately converted into JSP
A) i-false, ii-false
B) i-false, ii-true
C) i-true, ii-false
D) i-true, ii-true

Answers

Answer:

                A) i-false, ii-false

Explanation:

i)

init() method is only called once at the time of creation of servlet,it is not called for the client request.It is a one time initialization.The init() method is used  creating and loading data that will be used throughout the life of the servlet.

Definition Init() method

public void init() throws ServletException {

  // Initialization code...

}

ii)

Servlet is a java class that contains Java Api specification.Every Jsp is ultimately converted to Servlet, as in JSP you put Java inside HTML and for Servlet you put HTML inside JAVA.Both JSP and Servlet is used for server side scripting.

In what conditions we use forward and backwardchaining in prolog please specify?

Answers

Answer:

Explanation:

Forward Chaining:

As the name suggests, Forward Chaining is the method of arriving at the goal with the available data and the data that is produced from the available data. With the help of the available data more data is produced by using inference rules. With the combination of available data and the produced data, a goal will be reached.

Backward Chaining:

As the name suggests, Backward Chaining is the method of finding the reasons behind the goal or hypothesis. It is used when the goal is present and checking if the available data supports / satisfies the goal.

When the average amplitude is non zero then the problemarises is ______________.

Answers

Answer:

Average amplitude is the average magnitude in a wave cycle of all instant values. Average amplitude is the ratio of the sum of all instantaneous values to the number of instantaneous values considered in cycle.

When the average amplitude is non zero then the problem arises is it make it  ineffective to carry a signal over the transmission medium.

An issue arises when there is a long 0s or 1s sequence and the voltage level is maintained for a long time at the same value. This creates a receiving end problem because the clock synchronization is now lost due to the lack of any transitions.

What is the purpose of TCP?

Answers

Answer:

The purpose of TCP / IP is to provide computers with a method to transmit data to each other. TCP/ IP provides the means for application to send data between computers and for networks to deliver that data to applications on others computers.

Explanation:

The internet control protocol (TCP/ IP, transmission control IP / internet protocol) is the set of protocols used to transport information on the internet and in most private networks. The TCP/IP name leaves two more important protocols of the transport layers (TCP) and the network layer (IP).

Each internet application depends on the communication of data between two or more processes. The most common is that they are two processes, and that their roles are well defined as client and server. The applications under this model ''client-server'', will issue a service request on the client side, and the server will elaborate a response and return it to the client.

To communicate these two processes it is necessary that the data that configure the requirement made by the client, and those that configure the response, produced by the server, can circulate through the network in both directions. The TCP/IP protocol suite resolves this need. For this, IP performs communication between devices, hosts, or nodes of the network, creating virtual paths between them through its fundamental function, which is routing.

In Java, which of these classes implement the LayoutManagerinterface?

?? RowLayout

?? ColumnLayout

?? GridBagLayout

?? FlowLayoutManager

Answers

Answer:

GridBagLayout,FlowLayoutManager

Explanation:

LayoutManager interface is the interface used for laying out containers.Components like Button,text boxes are placed by Layout Manager,it is used to determine size and position of components in a container.

We can implement this interface via many classes like -

 SpringLayout, SynthScrollBarUI, ViewportLayout  ,  FlowLayout, GridBagLayout, GridLayout etc.

GridBagLayout-This layout arranges the components in vertical,horizontal or in baseline irrespective of their size.The orientation of the GridBagLayout depends on the container's ComponentOrientation property.  

GridBagLayout is associated with an instance of GridBagConstraints which manages each component.

FlowLayoutManager-This layout arranges the components in a directional flow. The alignment of line is determined by componentOrientation.

ComponentOrientation .LEFT_TO_RIGHT  

ComponentOrientation.RIGHT_TO_LEFT

T F The exit function can only be called from main .

Answers

Answer:

FALSE

Explanation:

The exit function is used to terminate or halt the process.

Syntax-

            void exit(int status)  

Exit function (exit()) can be used in any function not only main() and it will terminate your whole process.

Example- C Program

#include<stdio.h>

#include <stdlib.h>  

//  function declaration

float exitexample ( float x );                                

// Driver program

int main( )                

{

 float a, b ;

 printf ( "\nEnter some number for finding square \n");

  scanf ( "%f", &a ) ;

 // function call

 b = exitexample ( a ) ;                      

 printf ( "\nSquare of the given number %f is %f",a,b );  

/*This will not printed as exit function is in exitexample() function*/

}

float exitexample ( float x )   // function definition  

{

 exit(0);    //exit function

   float p ;

  p = x * x ;

return ( p ) ;

}

Describe the general process of creating a DataFlow Diagram (DFD)

Answers

 Answer:

General process of creating a data flow diagram:

  Data flow diagram are used to represents the flow of data graphically and it is divided into physical and logical parameters. For creating the data flow diagram the steps involved are:

Select the data and name the DFD. In DFD add the entity for start the process and add that process in data flow diagram. Add a data store and continuous adding that data into DFD.Now, adding the data flow in DFD and name the data.

 

Other Questions
Third-party candidates have difficulty winning elections in the United states becausenearly all elected officials are selected by Frank was tested by the school psychologist and diagnosed with Attention Deficit/Hyperactivity Disorder (ADD/ADHD). The test results have been explained to his parents. His parents are curious as to brain involvement and ADD/ADHD. The school psychologist informs them that (A) ADD/ADHD would be considered a developmental delay.(B) if there is a lag in neural functioning, it will go away with age. (C) some research indicates that ADD/ADHD is related to a delay in neural development.(D) there is little research to link ADD/ADHD with specific brain involvement. A steel wire of length 4.7 m and cross section 3 x 103 m2 stretches by the same amount as a copper wire of length 3.5 m and cross section 4 x 10-5 m2 under a given load. What is the ratio of the Young's modulus of steel to that of copper? (a) 3.83 x 103 (b) 1.46 x 10-2 (d) 5.85 x 10-3 (c) 1.79 x 10-2 2. Find the volume of the prism. Find the area of a trapezoid Why does Susan B. Anthony connect the struggle of black people and thefight for women's suffrage in the passage?) A. To appeal to those who are unsure about the end of slaveryOOB. To appeal to the audience members who are pro-slaveryC. To appeal to an audience that is against slaveryOD. To appeal to the former slaves in the audience A bag contains 12 red marbles, 5 yellow marbles, and 15 green marbles. How many additional red marbles must be added to the 32 marbles already in the bag so that the probability of randomly drawing a red marble is ? The center of a circle is located at (6, 1) . The radius of the circle is 4.What is the equation of the circle in general form?x2+y212x+2y+21=0x2+y212x+2y+33=0x2+y2+12x2y+21=0x2+y2+12x2y+33=0 Solve x2 + 12x + 6 = 0 using the completing-the-square method. (2 points) What does Perseus need from the grey women What is the connotation of the word rampaged ________ is the most common and most widely used LAN technology, with networked devices in close proximity; it can be used with almost any kind of computer. Most microcomputers come with a port for this type of network connection, which uses cable. Find the GCF of the following numbers:n and (n-1), where n is a natural number, greater than 1.13 POINTS! NEED ANSWER QUICK! THANKS!! which information must be known about a compound to find the molecular formula from the empirical formula Four objects are situated along the y axis as follows: a 2.00-kg object is at 13.00 m, a 3.00-kg object is at 12.50 m, a 2.50-kg object is at the origin, and a 4.00-kg object is at 20.500 m. Where is the center of mass of these objects? What is the volume of a gas at 50.0C and 0.80 atm, if there are 0.75 moles of the gaspresent? Name three major heat transfer mechanisms giving one example of each from day-to-day life. Also explain the physical mechanism behind these modes of heat transfer. Select the false statement below : Fe2+ is more paramagnetic (has more unpaired electrons) than Fe3+ Fe3+ is isoelectronic with Mn2+ Fe has 2 outer electrons, 8 valence electrons, and 18 core electrons Fe3+ is predicted to be a stronger potential oxidizing agent (can be reduced more) than Fe2+ none of these ions (Fe2+, Fe3+, Mn2+) have any electrons in the 4s subshell a profectile is shot upward, and it's distance above the ground, in feet after s t seconds is represented by the function below. s(t)-4t^2+24t. use the number line to represent the interval on which the projectile is desce ding Please add thenodes given below to construct the AVL tree show all the necessarysteps,30,33,37,18,23,34,15,38,40,17