Qbasic Programming

20 Questions | Total Attempts: 2622

SettingsSettingsSettings
Please wait...
Programming Quizzes & Trivia

This set contains 18 multiple choice and 2 short answer questions for QBASIC. Each question has four possible options and there is one and only one correct answer for each question.


Questions and Answers
  • 1. 
    What will the following code produce? PRINT "Afrikom Computer School"
    • A. 

      A paper printed with Afrikom Computer School

    • B. 

      A screen printed with Afrikom Computer School

    • C. 

      None of the above

    • D. 

      An error indicating on the screen

  • 2. 
    If the English language follows formats and rules on grammar, what does QBasic follow as counterpart?
    • A. 

      Strings

    • B. 

      Syntax

    • C. 

      Grammar

    • D. 

      All of the above

  • 3. 
    "Name$" is known as a .
    • A. 

      Stringer

    • B. 

      Constant

    • C. 

      Variable

    • D. 

      Input driver

  • 4. 
    Text that you wish to appear on the screen while your program runs must appear inside of ---------------------
    • A. 

      Slashes

    • B. 

      Brackets

    • C. 

      Quotes

    • D. 

      Braces

  • 5. 
    • A. 

      Check for flaws, edit, and rerun. It may be a programmer's error.

    • B. 

      Close the programme

    • C. 

      Delete it

    • D. 

      None of the above

  • 6. 
    A computer program is simply
    • A. 

      An exercise of the brain

    • B. 

      A set of instructions to tell a computer how to perform a particular task

    • C. 

      Pairs of computer system

    • D. 

      None of the above

  • 7. 
    An algorithm is
    • A. 

      The output of the instruction to computer

    • B. 

      The required data to be processed

    • C. 

      A finite sequence (or series) of precise instructions for solving a problem

    • D. 

      Problem definition

  • 8. 
    The following symbols are used in flowcharting except
    • A. 

      The terminal symbol

    • B. 

      The process symbol

    • C. 

      The input/output symbol

    • D. 

      The cross symbol

  • 9. 
    The following are  types of errors in programming except
    • A. 

      Grammar error

    • B. 

      Syntax error

    • C. 

      Logic error

    • D. 

      Compile error

  • 10. 
    What will be the output of the following code? 10 REM EXAMPLE OF HOW A COMMA 20 REM AFFECTS THE OUTPUT 30 REM PRINT STATEMENT 40 PRINT  “4 + 7 = ”, 50 PRINT  4 + 7 60 PRINT END
    • A. 

      4 + 7

    • B. 

      4 + 7 = 11

    • C. 

      11

    • D. 

      All of the above

  • 11. 
    The LET statement in BASIC
    • A. 

      Allows us to assign a value to a variable

    • B. 

      Check the errors within the code

    • C. 

      Allow the user to enter data into the computer from “outside” the programme during programme execution

    • D. 

      None of the above

  • 12. 
    The CLS statement
    • A. 

      Is to instruct the user to enter data

    • B. 

      To enter data

    • C. 

      Is used for clearing the screen.

    • D. 

      All of the above

  • 13. 
    What happen when you the run the code below 10 REM EXAMPLE OF GOTO STATEMENT 2 20 PRINT “HIV is real and abstinence is the solution” 30 GOTO 20 40 END
    • A. 

      The programme will not execute

    • B. 

      The programme will never end because the computer can never execute the END statement.

    • C. 

      An error will be displayed on the screen

    • D. 

      The will be executed without any problem

  • 14. 
    The IF…… THEN Statements
    • A. 

      Is transfer of control

    • B. 

      Is to re-direct a statement

    • C. 

      Is to eliminates the need for prompting each INPUT statement

    • D. 

      Is a conditional branch statement

  • 15. 
  • 16. 
    Mention any three of the BASIC Statement use to give instruction to a computer
  • 17. 
    BASIC is a typical example of an interpreted language.  
    • A. 

      True

    • B. 

      False

  • 18. 
    What is the acronym for BASIC?
    • A. 

      Beginner Action- Purpose Symbolic Instruction Code

    • B. 

      Basic Algorithm Sequence Instruction of Computer

    • C. 

      Beginner's All - Purpose Symbolic Instruction Code

    • D. 

      None of the above

  • 19. 
    The following arithmetic operations are carried out in BASIC except
    • A. 

      ^

    • B. 

      *

    • C. 

      +

    • D. 

      X

  • 20. 
    This expression (a+b) 3 can be written in BASIC as follows 
    • A. 

      (a+b)^3

    • B. 

      (a+b)*(a+b)*(a+b)

    • C. 

      Both as in A and B

    • D. 

      (a+b)x(a+b)x(a+b)