Education

Programming Terms-QBASIC

Programming Language: Programming language is defined as a language that helps human to provide instruction to the computers. It is used in developing softwares which in turn are translated into the machine readable f

JBJyoti BhattaraiFeb 17, 2018
Programming Language: Programming language is defined as a language that helps human to provide instruction to the computers. It is used in developing softwares which in turn are translated into the machine readable form by respective language translator and then are executed by the machine. QBASIC: QBASIC is a high level programming language. It uses an interpreter to convert the high level program codes into machine code and also executes the statetement lines. There are different elements of QBASIC programming that makes up the program. Those elements are; Characterset, Variables, Constants, Operators, Exressions and Statements. Characterset: Characterset of QBASIC is a set of characters that can be used to write a program. The QBASIC characterset includes; Alpahbets from a-z(both uppercase and lower case) Digits from 0-9 Special symbols(type declaration symbols, operators and others) Variables: Programs are likely to use values to do some processing tasks. The values are stored in computer memory atleast during the processing on data. Variables are the named storage locations in computer memory that store data to be used in programs. It is named variable as its value may vary during the execution of program. In QBASIC, variables are of two major types; Numeric and String. Numeric variables: Numeric variables are those variables which store numeric values(number with or without decimal points and negation) on which mathematical calculations can be done. Numeric variables are further divided into four sub types; Integer, Long Integer, Single Precision(7-digit, with or without decimal points0 and Double precision(15-digit, with or without decimal point). The type declaration symbol used for each of these sub types are %, &, ! and # respectively. By default, the numeric variable is of single precision type. String Variable: String variables are those variables which store string of characters. These variables are identified by a $ sign during the implicit declaration of variable in QBASIC. Declaration of variable: Variables in QBASIC can be declared in two different ways; Implicit and Explicit Implicit declaration: Implicit declaration is the default method of declaring variable in QBASIC. Using this method, we can declare variable at the time of assigning value to the variable. One should take care of type declaration symbol during the declaration and use of variable. One can use LET statement to declare variables implicitly but LET statement is not mandatory in newer versions of QBASIC. Explicit declaration: Explicit declaration of variable is done before the use of variables. DIM statement is used to declare variables explicitly in QBASIC. Eg: DIM a AS INTEGER, DIM b AS STRING, etc. Its not mandatory to use type declaration symbol while declaring variables explicitly. Also, as all variables are declared at the top, programmers are less prone to use same variable name for different purpose. Local and Global Variables: In QBASIC(Modular Programming), based on the scope, variables can be categorized into two different types; Local Variable: Local variable is the variable defined in any module which can't be accessed from any other module. In QBASIC, variables are local by default. For Eg: LET x=10, DIM x AS DOUBLE Global Variable: Global variable is the variable defined in module(generally main module) which can be accessed from any module in a program. In QBASIC, variables are declared global by using statements like COMMON SHARED and DIM SHARED. For Eg: COMMON SHARED P, DIM SHARED R(10) Special Variables: Counter: Counter is a variable which is used to count the occurance of particular condition in a program. It can also be used to count the number of repetition in a loop. Accumulator: Accumulator is a variable which accumulates the value in a loop. A variable storing sum of 50 natural numbers can be named an accumulator. Flag: Flag is a variable which is used in program to check whether certain condition appeared or not. For Eg: IF C=3 THEN F=1. Here, F is flag whose. Constants: Constants are defined as the values used in programs that donot change during the execution of program. Constants are also categorised into two different types; Numeric and String. Numeric constants are numbers with or without decimal points or negation and String constants are the collection of string(alphabet, number or symbol) enclosed by double inverted comma. Constants can also be saved under a name which are called symbolic constants or literal constants. CONST statement is used to declare the constants in QBASIC programming. For Eg: CONST pi=3.14.

Operators:

Operator is the symbol or a command that is used to perform operation on operands(values or variables) in program. There are different types of variables supported by QBASIC.

  • Arithmetic operator: Arithmetic operators are those operators which helps program perform mathematical calculations in data. Below is the list of Arithmetic operators used in QBASIC;
Name of operator Symbol
Exponent    ^
Division     /
Integer Division(returns quotient without decimal points     \
Modular Division(Returns remainder)     MOD
Multiplication     *
Addition     +
Subtraction      -
  • Relational Operator: Relational operators are the symbols that are used to compare two values of same type. Examples of relational operator are:- >,<,>=,<=,= ,< >(not equale to). Relational operators gives logical(boolean) result. i.e. One among Yes or No(True or False). For. Eg: x>15, y$<>"E".
  • Logical Operator: Logical operators are the operators which are used to derive the result from one or more relational operators. Logical operators also provide result among "TRUE" or "FALSE",i.e. BOOLEAN or LOGICAL result. Logical operators used in QBASIC are AND, OR and NOT.
    • AND: AND operator is a logical operator that returns "TRUE" result only when all relational expression result in "TRUE" and returns "FALSE" if one or more relational expressions result in "FALSE". Truth table of AND operator is shown below;
      Truth Table "AND"
      Expression 1 Expression 2 Expression 1 AND Expression 2
      FALSE FALSE FALSE
      FALSE TRUE FALSE
      TRUE FALSE FALSE
      TRUE TRUE TRUE

       

    • OR: OR operator is the logical operator that returns "TRUE" when any relational expression results in "TRUE" and returns "FALSE" only when all the relational expressions return "FALSE". The truth table of OR operator is given below;
      Truth Table "OR"
      Expression 1 Expression 2

      Expression 1 OR Expression 2

      FALSE FALSE FALSE
      FALSE TRUE TRUE
      TRUE FALSE TRUE
      TRUE TRUE TRUE

       

    • NOT: NOT operator is a logical operator which reverses the result of relational expression. NOT operator is used with single operand. Truth Table of NOT operator is given below;
      Truth Table NOT
      Expression 1 NOT Expression 1
      FALSE TRUE
      TRUE FALSE

Modular Programming:

Modular programming is a programming technique in which the program is divided into multiple self-dependent modules. The advantages in adapting modular programming technique are listed below;

  1. Easy Development: Coding, Testing, Debugging and Modification of program becomes easier in small modules.
  2. Job Distribution: Single program can be distributed among various programmers.
  3. Reusability: Modules used in one program can be used in other programs if needed.

In QBASIC, two different types of modules can be used; Sub Procedure and Function Procedure. The following table explains about them with the differences;

Sub Procedure Function Procedure
- It is a block of program that performs a set of task. - It is a block of program that performs one particular task.
- It doesn't return any value. - It returns value.
- It doesn't have any datatype. - It has datatype.
- It is called using a CALL statement. - It is called wherever the function name is mentioned.

Parameters:

Parameters are defined as the values or variables passed from a calling module to a called module. Parameters are generally categorized into two different types;

  1. Formal Parameters: Formal parameters are those which are used to reserve the memory location to be occupied by the values used in program. These are used in Declare statement as well as in the sub module.
  2. Actual Parameters: Actual parameters are those which are passed to submodule during call. Actual parameters are also known as Real parameters or Arguments. These parameters are used with calling statement.

There are two different ways of passing arguments to sub modules;

  1. Pass by reference: In pass by reference method, we pass the memory address of the value to the sub module. Since the original address is sent, changes made in subprocedure are also reflected in the calling procedure. In QBASIC, the default method of passing argument is 'Pass by Reference' method. Eg: CALL ADD(C,D) or PRINT AREA(C,D)
  2. Pass by value: In pass by value method, instead of passing the memory address, the copy of value is sent to the sub module. Any changes made in subprocedure are not reflected in calling procedure. In QBASIC, passing of parameters by value is done by enclosing the parameters by an extra pair of paranthesis. For Eg: CALL ADD((C),D). Here, C is passed by value and D is passed by reference.
JB
Written by
Jyoti Bhattarai

Contributor at EdTecInfo. Writing about education, technology, and productivity for Nepali readers.

Swipe up, left, or right for the next story
Education

SEE Result 2079-80 | Here’s How to Check?

The National Examination Board (NEB) is set to make public the results of the Secondary Education Examination (SEE) for the year 2079 BS. The board is going to publish the results after verifying the internal evalua

AAdminJun 29, 2023
The National Examination Board (NEB) is set to make public the results of the Secondary Education Examination (SEE) for the year 2079 BS. The board is going to publish the results after verifying the internal evaluation done by the school. The Examination Control Office, Class 10, is going to publish the results of SEE Exam 2079 from the Board's website, SMS and IVR. 1. How to Check the SEE Result 2079? SEE Result 2079 Online with Marksheet You can visit following websites to check the results online with your marks: Nepal Telecom: see.ntc.net.np - NTC is one of the most trusted web-pages to find the SEE result. NTC is providing the SEE result for the last five years. To find the result in this site, you need to provide the SEE symbol number and your date of birth (must match with your entrance card). NTC provides the result with a mark sheet. National Examination Board (NEB): see.gov.np , neb.gov.np - This site also provides a result with a mark-sheet. To find the result in this site, you need to provide the SEE symbol number and your date of birth (must match with your entrance card). Kantipur results.ekantipur.com - This is the website by eKantipur. This website also provides the SEE result with a mark sheet. To find the result in this site, you need to provide the SEE symbol number. Ncell: see.ncell.axiatta.com - This is the website by Ncell. This website also provides the SEE result with a mark sheet. To find the result in this site, you need to provide the SEE symbol number. Edusanjal: see.edusanjal.com - This website also provides the SEE result with a mark sheet. To find the result in this site, you need to provide the SEE symbol number. We would recommend you checking your result from above websites, although there are other websites where you can check the SEE results. 2. How to Check the SEE Result 2079 Via SMS? Type SEE Symbol-Number and Send SMS to 35001 : Sparrow SMS is also a very popular and trusted way to find the SEE result. Sparrow provides the result via text to the mobile. If you don’t have access to the internet, it may make you easy to know the SEE result through SMS. Sparrow is also providing SEE results for the past five years. SEE Result 2079 via SMS with Marksheet You can also use SMS to check your result with Marksheet, to check the results of SEE examination by SMS, you need to send SMS to following numbers by typing SEE Symbol No. SMS Services Type SEE Symbol-Number and Send SMS to 1600 : 1600 (NTC - Works for Namaste users only) Example: Type SEE 03296623B and send it to 1600. Type SEE Symbol-Number and Send SMS to 31001 Type SEE Symbol-Number and Send SMS to 35566 Type SEE Symbol-Number and Send SMS to 34949 : 34949 (Easy Services - Works on all network) Type SEE Symbol-Number and Send SMS to 33624 After sending sms you will receive your result within a moment. 3. How to Check the SEE Result 2079 Via Call? Third Way to check result is dialing 1600 from landline phone and following the instructions. SEE Grading System: Letter Grading System – Scores and Grades Achieved Score (in %) Grade Point Grade Explanation of Grade 90 and more 4.0 A+ Outstanding 80 – less than 90 3.6 A Excellent 70 – less than 80 3.2 B+ Very Good 60 – less than 70 2.8 B Good 50 – less than 60 2.4 C+ Satisfactory 40 – less than 50 2.0 C Acceptable 35 – less than 40 1.6 D Basic less than 35 – NG Not Graded Outstanding Has deep and broad knowledge with highly developed critical insight as well as comprehensive and perceptive appreciation of the theoretical or practical subject matter; an exceptional ability to organize, use, analyze and succinctly present subject matter fluently and clearly with extraordinary performance; a significant capacity for original, creative, and logical thinking with superior communication skills. Excellent Has deep and broad knowledge with developed critical insight as well as comprehensive and perceptive appreciation of the theoretical or practical subject matter; an exceptional ability to organize, use, analyze and succinctly present subject matter fluently and clearly with exemplary performance; a significant capacity for original, creative, and logical thinking with advanced communication skills. Very Good Has broad knowledge with developed insight as well as comprehensive and independent appreciation of the theoretical or practical subject matter; a special ability to organize, use, analyze and succinctly present subject matter clearly with a high level of performance; a highly developed capacity for original, creative, and logical thinking with sound communication skills. Good Has decent knowledge with developed insight as well as comprehensive and good appreciation of the theoretical or practical subject matter; an ability to organize, use, analyze and succinctly present subject matter with respectable performance, a developed capacity for original, creative, and logical thinking with reasonable communication skills. Satisfactory Has adequate knowledge with developing insight as well as comprehensive and reasonably good appreciation of the theoretical or practical subject matter, an ability to organize, use, analyze and succinctly present subject matter with blameless performance; some capacity for original, creative, and logical thinking with sufficient communication skills. Acceptable Has sufficient knowledge with developing insight as well as comprehensive and acceptable understanding of the theoretical or practical subject matter; an ability to organize, use, analyze and present subject matter with guiltless performance; limited capacity for original, creative, and logical thinking with acceptable communication skills. Basic Has some knowledge with developing insight as well as comprehensive and partial understanding of the theoretical or practical subject matter; limited ability to organize, use, analyze and present subject matter with guiltless performance; limited capacity for original, creative, and logical thinking with minimal participation in communication skills. Not Graded Has less knowledge with incomplete insight as well as comprehensive and negligible understanding of the theoretical or practical subject matter; deficient ability to organize, use, analyze and present subject matter; very limited capacity for original, creative, and logical

 

A
Written by
Admin

Contributor at EdTecInfo. Writing about education, technology, and productivity for Nepali readers.

Swipe up, left, or right for the next story
Education

NEB Grade 12 Examination Routine 2080

NEB has published the examination routine for Grade 12; the examination will start on Baisakh 26, 2080, and will conclude on Jestha 5, 2080. According to the routine published by National Examination Board (NEB), the

AAdminMar 5, 2023
NEB has published the examination routine for Grade 12; the examination will start on Baisakh 26, 2080, and will conclude on Jestha 5, 2080. According to the routine published by National Examination Board (NEB), the examination time is 8 AM to 11 AM. View the official notice for the Grade 12 Examination 2080.
🔍
🔍
A
Written by
Admin

Contributor at EdTecInfo. Writing about education, technology, and productivity for Nepali readers.

Swipe up, left, or right for the next story
Education

Registration Opens for Class 9 Students 2079

Registration Opens for Class 9 Students 2079: The National Examination Board (NEB) in Nepal has opened the registration form for class 9 students who wish to participate in the regular Secondary Education Examination (SE

AAdminMar 4, 2023
Registration Opens for Class 9 Students 2079: The National Examination Board (NEB) in Nepal has opened the registration form for class 9 students who wish to participate in the regular Secondary Education Examination (SEE) of 2080. Students who are regularly studying in class 9 in general, traditional Sanskrit/Vedvidyashram/Gurukul/Madrasa/Gonpa, and technical streams will need to fill out the form between February 19 and May 15, during the academic session of 2079. Registration Process for SEE Exam 2080: To register for the regular SEE exam for the academic session 2079, students must have passed the annual examination of class 8th or 19th in the marking system with a minimum D+ grade and a minimum D grade in the year 2078 in compulsory subjects. The registration form is available from November 19, 2079, to January 15, 2080. The cost of the registration form is Rs. 300, and for students unable to register within the given timeframe, they can submit the amount along with late fees of Rs. 600 through the school they are studying at. Important Notes: It is essential to note that students should fill out the registration form only from the school where they are studying regularly. Double registration can lead to the cancellation of the exam, and the responsible person will be accountable. Schools should verify the name, date of birth, and name of the mother and father of the students studying regularly in their schools regardless of the difference. The Education Development and Coordinating Unit will send an online entry to schools for enrollment till the end of Ashad 2080, and the form must be submitted along with a copy of the grade sheet, birth certificate (attested by the headmaster), recent passport-size photograph in school uniform, and revenue return to the related education development and coordination unit.
A
Written by
Admin

Contributor at EdTecInfo. Writing about education, technology, and productivity for Nepali readers.