Answer:
Exceptions are raised using throw statement in c++.
Explanation:
Try block is used to keep the statements which we felt that they will raise an exception. Catch block is used to catch the exception which is thrown by the try block.
#include<iostream.h>
void main(){
int x,y,z;
try{
cout<"enter 2 numbers";
cin>>x>>y;
if(y==0)
throw y;
z=x/y;
}
catch(int x){
cout<<"exception caught";
}
}
Answer: Single precision
Explanation:
A 1-bit sign, 8-bit exponent, 23-bit fraction and a bias of 127 is used for the single precision binary floating point representation. As, single precision is the smallest change that can be represented as floating point representation is called as precision. It is the computer format number, which occupies 32 bits in the computer memory.
The IEEE standard specify a binary 32 as:
Sign bit- 1 bit
Exponent width- 8 bits
Significant and precision- 24 bits (23 stored as explicitly)
The feature to restrict values allowed in a cell and need to create a drop-down list of values from which users can choose in the above scenario is data validation.
<h3>What is data validation?</h3>
Data validation is a term that connote the act of monitoring the truthfulness and quality of source data before one can make use of it, importing or even process data with it.
Note that The feature to restrict values allowed in a cell and need to create a drop-down list of values from which users can choose in the above scenario is data validation as it ensure that users can make their own choice.
Learn more about data validation from
brainly.com/question/27138101
#SPJ1
Answer:
The code that will cause the triangle of asterisks is given by;
for (i=1; i<=n; i++){
for (j=1; j<=i; j++)
cout << "*";
cout << "\n";
}
Explanation:
Answer:
Answered below
Explanation:
A macro or macroinstruction is a programmable pattern which translates a sequence of inputs into output. It is a rule that specifies how a certain input sequence is mapped to a replacement output sequence. Macros makes tasks less repetitive by representing complicated keystrokes, mouse clicks and commands.
By thoroughly testing a macro before deployment, you are able to observe the flow of the macro and also see the result of each action that occurs. This helps to isolate any action that causes an error or produces unwanted results and enable it to be consistent across end user platforms.