d. Write a program to print odd numbers in the range of 1 to 30. e. Write a program to print cubes of first ten natural numbers. 2. Fill up the blanks. a. ______ is used for unconditionally transferring the control from one point to another in a QBASIC program. b. The ______ clause in a FOR statement allows us to increment the counter variable by any value. c. DO... WHILE repeats a block of statements while a condition is ______. d. To break an infinite loop, we press ______ key. e. An accumulator is normally initialized to ______. 3. State whether following statements are true or false. a. GOTO can transfer the control only in forward direction. b. FOR...NEXT statement causes a set of statements to be repeatedly executed for a given number of times. c. An accumulator should be initialized at the beginning of a program. d. WHILE... WEND is an iteration statement. while using the GOTO statement.
Added by Heather F.
Close
Step 1
First, we need to understand what looping means in QBasic. Looping allows us to repeat a set of instructions multiple times until a certain condition is met. Show more…
Show all steps
Your feedback will help us improve your experience
Maanya Naveen and 55 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
write a program in qbasic to display the sum of first 10 natural numbers using while wend loop
Willis J.
Write a Qbasic program to find the sum of two number
Chandra J.
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
Watch the video solution with this free unlock.
EMAIL
PASSWORD