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.
/*! This file is auto-generated */ .wp-block-button__link{color:#fff;background-color:#32373c;border-radius:9999px;box-shadow:none;text-decoration:none;padding:calc(.667em + 2px) calc(1.333em + 2px);font-size:1.125em}.wp-block-file__button{background:#32373c;color:#fff;text-decoration:none}
Learning Materials
Features
Discover
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 free
BASIC is (1) Business Arithmetic System Instruction Code. (2) Beginners All Purpose Symbolic Instruction Code. (3) Basic All Purpose System Instruction code. (4) Beginners All Purpose System Instruction Code.
Which of the following statements is true? (1) Every variable in the INPUT statement must have a corresponding constant or value in the READ statement. (2) Every variable in the READ statement must have a corresponding constant or value in the DATA statement. (3) There can be one READ statement and many Data statements. (4) Every variable in the DATA statement must have many corresponding constants.
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)
Find the output of the program given below. 10 REM Area of a triangle when the sides are given \(20 \mathrm{READ} \times, \mathrm{y}, \mathrm{z}\) 30 DATA \(8,15,17\) 40 Let \(S=(x+y+z) / 2\) 50 Let \(\mathrm{A}=\left[\mathrm{S}^{\star}(\mathrm{S}-\mathrm{x}) \star(\mathrm{S}-\mathrm{y}) \star(\mathrm{S}-\mathrm{Z})\right]^{1 / 2}\) 60 PRINT "The area \(=", A\) 70 END (1) 120 (2) 60 (3) 90 (4) The triangle is not feasible
Read the following algorithm: 10 Let \(\mathrm{P}=1\), Sum \(=0\) 20 If \(\mathrm{P} \leq \mathrm{N}\), then \((\mathrm{N}\) is the given Number) 30 Sum \(=\) Sum \(+\mathrm{P}\) 40 \(\mathrm{P}=\mathrm{P}+1\) 50 Repeat this loop 60 End Above algorithm is used to ______. (1) find first \(\mathrm{N}\) natural numbers (2) find sum of first \(\mathrm{N}\) natural numbers (3) find the sum of first \(\mathrm{N}\) even numbers (4) find the sum of first \(\mathrm{N}\) odd numbers
What do you think about this solution?
We value your feedback to improve our textbook solutions.