What value will be stored in the variable t after each of th

What value will be stored in the variable t after each of the following statement executes? Briefly describe how the && operator works. How many operands does a TERNARY type of operators require? What type of software controls the internal operations of the computer\'s hardware? Explain the difference between an object file and an executable file. How would each of the number -978.65 x 10^12 be represented in E notation? Convert the following for loop to a while loop. for (int x =50. x > 0; x-) cout

Solution

1) Syntactical error will come at compile time. It means if the rules and regulations of code is not met with corresponding language .
for example if we take sql statement of selecting all fields from EMPLOYEE table
SELEC * FROM EMPLOYEE ;
here we will get \"selec command not found\" error
but in case of logical error , it will come run time, it means when the code is not met with requirement ( means giving wrong answer )
for example if we take above sql statement
requirement says that to display specific entry , means who are the names starts with \"Dan\"

SELECT * FROM EMPLOYEE WHERE E_NAME LIKE \'D%\';

here all records comes under start with \"Dan\" will come but if any name will be there starts with \"D\" (like \"Dec\") also come in the same query.
so here we are getting extra records than expected . this is called run time error nothing but logicall error. there is no error in exectuing of the query

2) if the question is t=(5==(3*2)) ?
then the t can store the value as \"0\" beacuse if the relational expretion fails then it returs false (0) or if it is true then it returs true(1)
so here the answer will be \"0\" since 5==6 is fails

5) UNIX based operating system can control the internal operations , Kernal will control the hardware\'s internal operations .

6)

Object file is generated by the compiler and is called the object code ( .obj ), means reload format machine code that is usually not directly executable.
Where as executable file is, a program is composed by a part that we wrote and a part of the C++ library.
The linker links these two parts of a program and produces an executable file ( .exe )

Object file may also work like a shared library.
Object files are binary representation of programs proposed to be executed directly on a processor

An Executable file is simply understand by machine .
An executable files cannot be read by humans .
An Executable file in a format that the computer can directly execute .

7) a number can represent in E format as like belo
aEb = a x (10 power b )

so the answe is -> -978.65E12 (-978.65 x 10 power 12 )

8) the below one is the concept of while loop of given for loop

int x=50;
while(x>0)
{
   cout<<x<<\"second to go \ \";
   x--;
}

9) please find the below output for given code

What is your anual salary? 38700
Your monthly wages are 3225

10) please find the for loop to diaplay the set of numbers

int b=0;
count<<the required numbers are \ \"<< endl
for(int a=0;b>1000 ; a++)
{
b=a*10;
cout<<b<\", \";
}

 What value will be stored in the variable t after each of the following statement executes? Briefly describe how the && operator works. How many operan
 What value will be stored in the variable t after each of the following statement executes? Briefly describe how the && operator works. How many operan

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site