Skip to main content

Programming in QBASIC and C

QBASIC

  • Local Variable: A variable declared within a subroutine or function, accessible only within that block.
  • Global Variable: A variable declared outside any subroutine or function, accessible throughout the program.
  • Library Function: Predefined functions provided by QBASIC to perform common tasks.
  • User Defined Function: Functions created by the user to perform specific tasks.
  • File Handling: Operations for reading from and writing to files.
  • Modular Programming: Dividing a program into separate sub-programs or modules.
  • Sub Procedure: A block of code that performs a specific task, called using the CALL statement.
  • Function: A block of code that performs a specific task and can return a value.

C

  • Definition: C is a general-purpose, procedural programming language.
  • Keywords: Reserved words in C that have special meaning, such as int, return, if, etc.
  • Features of C: Includes simplicity, efficiency, portability, and flexibility.
  • Loops in C: Constructs like for, while, and do-while used to repeat a block of code.
  • Conditionals in C: Statements like if, else if, else, and switch used for decision making.
  • Elements of C: Basic components such as variables, data types, operators, and expressions.
  • Format Specifier: Symbols used in printf and scanf to specify data types, such as %d, %s, %f.
  • Header File: Files containing C declarations and macro definitions to be shared between several source files.
  • Why is C Called Structural: C is called structural because it allows the use of functions and control structures to create a structured and organized codebase.