Chapter 19: Problem 39
Find the output of the flowchart below. (1) 20 (2) 19 (3) 18 (4) Infinite loop exists.
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.
Chapter 19: Problem 39
Find the output of the flowchart below. (1) 20 (2) 19 (3) 18 (4) Infinite loop exists.
These are the key concepts you need to understand to accurately answer the question.
All the tools & learning materials you need for study success - in one app.
Get started for freeWhat will be the output of the following program? 10 REM DISCRIMINANT OF THE QUADRATIC EQUATION \(20 \mathrm{READ} \mathrm{a}, \mathrm{b}, \mathrm{c}\) 30 DATA \(10,20,5\) 40 LET \(D=b^{\wedge} 2-4 * a * c\) 50 PRINT "THE VALUE OF D IS = "; D 60 END (1) 400 (2) 200 (3) 300 (4) 150
Low-level languages or machine languages use strings of (1) Zero's and two's (2) One's and two's (3) Zero's and One's (4) Both (2) and (3)
Which of the following is an algorithm to find the area of a square? (1) (i) Read an arm of the square. (ii) Find the area by using \(\mathrm{A}=4 * \mathrm{a}\). (iii) Display the area. (2) (i) Find the area by using \(\mathrm{A}=4 * \mathrm{a}\). (ii) Display the area. (iii) Read an one arm of square (a). (3) (i) Read an arm of square (a). (ii) Find the area using \(\mathrm{A}=(\mathrm{a} * \mathrm{a})\). (iii) Display the area. (4) (i) Read an arm of the square (a). (ii) Display the area. (iii) Find the area by using \(\mathrm{A}=(\mathrm{a} * \mathrm{a})\).
Find the output of the following program. \(10 \quad\) LET \(A=36, B=4\) \(20 \quad\) LET \(C=(A / B)^{\wedge}(1 / 2)\) 30 PRINT C 40 END (1) 9 (2) 36 (3) 3 (4) None of these
What is the output of the following program? 10 Let \(\mathrm{Sum}=0\) 20 Let \(\mathrm{N}=8\) 30 if \(\mathrm{N}<1\) then Go to 70 40 Let Sum \(=\) Sum \(+\mathrm{N} * \mathrm{~N}\) 50 Let \(\mathrm{N}=\mathrm{N}-2\) 60 Go to 30 70 Print Sum 80 end (1) 120 (2) 125 (3) 145 (4) 170
What do you think about this solution?
We value your feedback to improve our textbook solutions.