Step 1: Click 'File' and select 'Save As' from the drop-down menu. The QBASIC screen will be ready to write the program. Step 3: Select the 'File' menu and click the option 'New Program'. Step 2: Press 'ESC' key to clear the contents of the screen. Otherwise, select a path and open QBASIC window. To write a new program, follow these steps: PRINT A, B Write down all the steps to perform the following tasks in QBASIC Question 1 PRINT statement may be used with or without a variable. PRINT statement is used to display any data, value, or message on the screen. Hence, the computer will ignore the content of the REM statement at the time of execution and the content will go to the next line. REM statement is used to write remarks about any program which basically shows the purpose of a program. This statement can be used to assign a numeric or string constant to a variable. LET statement is used to assign a value to a variable. It allows the user to study the desired output of the program. This command is used at the beginning of the program. Question 2ĬLS means to clear the content of the program and the output screen. The output of the program is displayed on the output screen. This can also be done by pressing F5, a function key. This command is used in QBASIC to execute any program or to see the output of the program. It allows the user to quit QBASIC and return to the desktop. It allows the user to get a hard copy of the current program. It allows the user to save the current program in the computer's memory for future use. It allows the user to open an existing program which is already stored in the main memory of the computer. It allows the user to clear the working memory for fresh storage of the next program. Correct the errors Question 1ĮND Explain the meaning of the following commands/statements with reference to QBASIC Question 1 Save As option is used to store a program in the secondary memory for the future use. Statements are the set of instructions to a program. Using EXIT command, you can quit QBASIC and return to the desktop. The maximum number of characters in the primary name of a BASIC file is eight. Question 4į5 function key is used to execute a program in QBASIC. The term used to correct errors in a program is called debugging. The full form of QBASIC is Quick Beginner's All-Purpose Symbolic Instruction Code. Chapter 9 - Unit 3 Fundamentals of QBASIC: Commands and Statements Class 6 - APC Understanding Computer Studies
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
January 2023
Categories |