viva Voce

Q: 1: What does BASIC means?
Ans: BASIC  is the abbreviation of  Beginner’s All-Purpose Symbolic Instruction Code. It is a language which was invented to teach students a fundamental concept of programming.
Q: 2: Who invented the BASIC Language?
Ans: In 1963 two Americans John Kemeny and Thomas Kurtz developed BASIC (Beginner’s All-Purpose Symbolic Instruction Code) language for computers at Darmouth College.
Q: 3: What are the basic rules of a GW-BASIC program?
Every GW-BASIC program should have the following rules:
1-Every program statement must begin with line number.
2-Every program should end with an END statement.
3-There should be no repetition of lines.
4-Every statement should be separated by (: ) colon.
Q:4 : How many types of variables are used in GW-BASIC?
Ans: Two types of variables are used in GW-BASIC. They are called Numeric Variables and String Variables.
Q: 5: What are Numeric Variables?
Ans: Numeric Variables are those variables that can store numeric values.
Q: 6: What are String Variables?
Ans: String Variables are those variables that can store sequence of characters.
Q: 7: What is a  constant ?
Ans: A Constant is a quantity whose value cannot be changed; it cannot be changed like a Variable. There are Numeric Constants and String Constants.
 Q:8: What is a Numeric Constant?
Ans: Numeric Constant consists of integers, single-precision or double- precision numbers.
Q: 9: What is a String Constant?
Ans: A String Constant is a sequence of alphanumeric characters enclosed in double quotation marks. The maximum length of a String Constant is 255 characters.
Q: 10: What is a Direct Mode?
Ans: When GW-BASIC is loaded, it shows OK message, it is in Direct Mode. In this mode GW-BASIC commands are executed as they are typed. Results are displayed immediately but the commands themselves are lost after execution
Q: 11: What is an Indirect Mode?
Ans: The Indirect mode is used to type the programs. The program loaded in memory is executed by entering RUN command.
Q: What is a Flow Chart?
Ans: Flowchart is the pictorial representation of an algorithm. We can present the flow of data in visual form with a Flowchart. The following symbols are used in a Flow chart.
Q: 12: What is an Algorithm?
Ans: An Algorithm is a finite set of steps which, if followed, accomplish a particular task.
Q: 13: What are logical errors?
Ans:  Such errors are called Logical Errors that are caused in a program due to improper use of symbols and date or wrong use of formula.
Q:14: What are Syntax Errors?
Ans:  Such errors that arise due to limitation of computer are called Syntax Errors.
Q:15: What is a Loop?
Ans:  Loop is a technique to execute a set of statements repeatedly.
Q: 16: What is an array?
Ans:   Such collection of contiguous memory collections is called array which can store data of same type.
Q:17:  What is a pixel?
Ans:  A tiny dot that is used to represent a picture is called a pixel.
Q:18: What are reserved words or Key words?
Ans: IN GW-BASIC some words have fixed meanings and cannot be used as a variable, such words are called Key Words or reserved Words. Such as, IF, THEN, NEXT, FOR.
Q:19: What is the use of REM statement?
Ans:  We use REM statement to add remarks in our GW-BASIC programs.
Q: 20: What is a Screen statement?
Ans: In GW-BASIC programming Screen statement is used to change the text mode into graphic mode or to change graphic mode into text mode. 

No comments:

Post a Comment

ShareThis