JSS2 COMPUTER STUDIES SECOND CA
(1a)
List 5 elements of QBASIC programming.
ANSWER:
1. Character set 2. Keywords
3. Variables 4. Constant 5. Operator 6. Statement
7. Expression
(2a)
Define variables and constants
ANSWER:
Variable: It is a name storage located in
the computer memory whose contents can be changed.
Constant: The data or the value in a
program that cannot be changed while executing the program is known as
constants
(2a)
List two types of variable and Constant Declaration
ANSWER
1.
String variable and numeric variable are two types of variables.
2.
String constant and numeric constant are two types of constants.
(3a)
What is an operator?
ANSWER
A
symbol which tells the computer to perform certain mathematical and logical calculation
is known as operator
(3b)
List four Programming operators you know
ANSWER:
Addition
sign (+), Minus (-), Multiplication (*) Division (/), MOD, AND, OR, NOT
(4)
Define the following: Character set,
Keywords, Expression
Character set:
A set of characters that are allowed to use in QBASIC is known as the character
set.
Keywords:
Those words which have special meaning in QBASIC are known as keywords.
Expressions:
The combination of operators, constants and variables that is evaluated to get
a result is known as expressions. For example: (A + B) -
C
(5)
List and explain commonly used programming tools?
Answer: Algorithm and Flowchart are the most commonly used programming
tools.
Flowchart: Flowchart is a pictorial representation of an algorithm
and Algorithm is a step by step procedure for solving a programming problem
(6) List any 3
QBASIC keywords.
Answer: Those words which have special meaning in QBASIC are
known as keywords. CLS, PRINT, INPUT, FN, NEXT, TIME are six QBASIC keywords.
(7) Give two examples
of string and numeric variables.
Answer: Name$ and Address$ are two examples of string variables.
Numl and Num2 are two example of numeric variables.
(8) What is the function of REM statement? Write with syntax.
Answer: REM statement is used to put comments in the program.
Syntax: REM "Remark". Example: REM This program is made by name.
(9) What is the function of INPUT statement? Write with
syntax.
Answer: Input statement is used to take input data from the user
during runtime of the program. Syntax INPUT "message";
"Variable". Example: INPUT "Enter your name"; Name$.
(10) What is statement? List any five
statements used in QBASIC.
Answer: A set of instructions written by using keywords or commands
is known as statement