The following decision structure is invalid if x SolutionAns

The following decision structure is invalid: if x

Solution

Answers:

1.True ,Reason:after if opening and closing bracket must be there otherwise it will give compilation error.
Correct:if(x<=y)

2.False ,Reason:pseudocode is the high-level description of algorithm used for program design,using pseudocode actula coding is done.

3.True ,Reason:As it will improve the readability of the program.

4.True ,Reason:It should be carefully hand traced before implementation as it will let the coder to understand the logic and functionality of the algorithm.

5.False ,Reason:It will not print anything,basicallu it will give the logical error.

6.True

7.True ,Reason:As scope of local variable limited to the function in which it is defined.

8.False ,Reason:it is represented by int not int*.

9.False ,Reason:It will cause compilation error.

10.False ,Reason:It must be of same data type of the return type of the function.


In case of any doubt,please let me know,Thanks.
         
         

 The following decision structure is invalid: if x SolutionAnswers: 1.True ,Reason:after if opening and closing bracket must be there otherwise it will give com

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site