Qbasic Quiz

15 Questions | Total Attempts: 972

SettingsSettingsSettings
Please wait...
Programming Quizzes & Trivia

Qbasic Quiz is a test made by Benedict Baguyo. Welcome!


Questions and Answers
  • 1. 
    If the following code was given, what would probably be the output screen? PRINT ((7+6-3*4)+2^3/2)+((7+6-3*4)+2^3/2)+((7+6-3*4)+2^3/2)+((7+6-3*4)+2*3/2)+((7+6*3-4)-2^0/1)
    • A. 

      15

    • B. 

      ((7+6-3*4)+2*3/2)+((7+6-3*4)+2*3/2)+((7+6-3*4)+2*3/2)+((7+6-3*4)+2*3/2)

    • C. 

      27

  • 2. 
    What does MOD mean?
    • A. 

      Modulus Division

    • B. 

      Modular Division

  • 3. 
    What will the following code produce?          PRINT "Hi"
    • A. 

      A paper printed with "Hi"

    • B. 

      A screen showing "Hi"

  • 4. 
    What will this code produce? firstword$ = "book" secondword$ = "keeper" PRINT firstword$ + secondword$
    • A. 

      An output screen with: "bookkeeper"

    • B. 

      An output screen with: firstword$ + secondword$

  • 5. 
    What is the purpose of Qbasic?
    • A. 

      As a replacement of GW-BASIC

    • B. 

      To combat the needs for a better software in the 1980s, like better graphics, better graphical user interface, and faster programs

  • 6. 
    What does OS mean?
    • A. 

      Operation System

    • B. 

      Operating System

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

      Strings

    • B. 

      Syntax

  • 8. 
    What must you do if "Syntax Error" appears?
    • A. 

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

    • B. 

      Delete it. It is a virus, maybe passed on from one computer to another, or through the Internet. Get the latest version of anti-virus. Disconnect Internet connections.

  • 9. 
    If a program does not stop from looping, what will you probably do?
    • A. 

      Press CTRL+ALT+DEL, to open Task Manager, click "Processes", and look for cmd.exe and ends it.

    • B. 

      Press CTRL+C, because "C" means "Close"

  • 10. 
    Press "A" to proceed, "B" to exit. Answer: = The program asks for an answer. Suppose the user entered a. What do you think would happen?
    • A. 

      The program will proceed. The "a" can be understood already by the QBasic program as only capitalization matters. The variable names are not case-sensitive, though.

    • B. 

      The program will neither proceed nor exit. There are no choices that match "a". Capitalization is important nowadays. It is a primary instruction for us to capitalize what should be capitalized.

  • 11. 
    If your grandmother is still living, how would you explain how to use QBasic to her?
  • 12. 
    There are 4 women who want to cross a bridge. They all begin on the same side. You have 17 minutes to get all of them across to the other side. It is night. There is one flashlight. A maximum of two people can cross at one time. Any party who crosses, either 1 or 2 people, must have the flashlight with them. The flashlight must be walked back and forth, it cannot be thrown, etc. Each woman walks at a different speed. A pair must walk together at the rate of the slower woman's pace.Woman 1: 1 minute to cross Woman 2: 2 minutes to cross Woman 3: 5 minutes to cross Woman 4: 10 minutes to cross For example if Woman 1 and Woman 4 walk across first, 10 minutes have elapsed when they get to the other side of the bridge. If Woman 4 then returns with the flashlight, a total of 20 minutes have passed and you have failed the mission. What is the order required to get all women across in 17 minutes? Now, what's the other way?
  • 13. 
    If you could add any feature to Microsoft Word, what would it be?
  • 14. 
    What do you think ARE the significances of knowing how to program? Do you think it can add color and effect to you as a person? If so, by how? Will it be capable of changing your life? How can you apply programming in your life?
  • 15. 
    What was the hardest question asked of you so far today?