Interview Quizz Logo

 
  • Home
  • About Us
  • Electronics
  • Computer Science
  • Physics
  • History
  • Contact Us
  • ☰
  1. Computer Science
  2. Programming Technologies
  3. QB64 (QuickBASIC) Interview Question with Answer

QB64 (QuickBASIC) Questions and Answers for Viva - 64

Frequently asked questions and answers of QB64 (QuickBASIC) in Programming Technologies of Computer Science to enhance your skills, knowledge on the selected topic. We have compiled the best QB64 (QuickBASIC) Interview question and answer, trivia quiz, mcq questions, viva question, quizzes to prepare. Download QB64 (QuickBASIC) FAQs in PDF form online for academic course, jobs preparations and for certification exams .

Intervew Quizz is an online portal with frequently asked interview, viva and trivia questions and answers on various subjects, topics of kids, school, engineering students, medical aspirants, business management academics and software professionals.




Interview Question and Answer of QB64 (QuickBASIC)


Question-1. What is QB64?

Answer-1: QB64 is a modern BASIC compiler that is compatible with Microsoft QuickBASIC 4.5. It allows running old QuickBASIC programs on modern operating systems.



Question-2. Who developed QB64?

Answer-2: QB64 was initially developed by Galleon and is now maintained by the QB64 community.



Question-3. What operating systems does QB64 support?

Answer-3: QB64 runs on Windows, Linux, and macOS.



Question-4. What is the file extension for a QB64 source code file?

Answer-4: The source files use the .bas extension.



Question-5. How does QB64 differ from QuickBASIC?

Answer-5: QB64 supports modern graphics, audio, and networking while maintaining compatibility with QuickBASIC.



Question-6. Is QB64 an interpreter or compiler?

Answer-6: QB64 is a compiler that converts BASIC code into C++ and then compiles it into an executable file.



Question-7. Can QB64 run old QuickBASIC programs?

Answer-7: Yes, QB64 is designed to run legacy QuickBASIC programs without modification.



Question-8. Does QB64 support 64-bit operating systems?

Answer-8: Yes, QB64 supports both 32-bit and 64-bit operating systems.



Question-9. Can QB64 create standalone executable files?

Answer-9: Yes, QB64 compiles standalone EXE files that do not require an external runtime.



Question-10. What command is used to print text on the screen in QB64?

Answer-10: Example: PRINT "Hello, World!"



Question-11. How do you declare a variable in QB64?

Answer-11: Example: DIM x AS INTEGER



Question-12. What is the command to read user input in QB64?

Answer-12: INPUT "Enter your name: ", username$



Question-13. Can QB64 handle graphics programming?

Answer-13: Yes, QB64 has built-in support for graphics, colors, and pixel manipulation.



Question-14. What command is used to draw a circle in QB64?

Answer-14: CIRCLE (320, 240), 100, 15 (Draws a circle at (320,240) with radius 100 and color 15).



Question-15. How can you create a delay in QB64?

Answer-15: Using SLEEP (in seconds) or _DELAY (in fractions of a second).



Question-16. Can QB64 play sound?

Answer-16: Yes, using commands like SOUND frequency, duration and _SNDPLAYFILE for audio files.



Question-17. What is the equivalent of a function in QB64?

Answer-17: Functions are defined using FUNCTION and END FUNCTION.



Question-18. How do you create a loop in QB64?

Answer-18: Using FOR?NEXT, WHILE?WEND, or DO?LOOP.



Question-19. What is the purpose of DIM in QB64?

Answer-19: DIM is used to declare variables and arrays.



Question-20. What command clears the screen in QB64?

Answer-20: CLS (Clear Screen).



Question-21. How do you define an array in QB64?

Answer-21: DIM numbers(10) AS INTEGER (declares an integer array with 11 elements from 0 to 10).



Question-22. What is DATA used for in QB64?

Answer-22: DATA stores a list of values for later retrieval using READ.



Question-23. How can you generate random numbers in QB64?

Answer-23: RANDOMIZE TIMER followed by RND.



Question-24. Does QB64 support file handling?

Answer-24: Yes, QB64 supports file operations using OPEN, INPUT, OUTPUT, and CLOSE.



Question-25. How do you open a file for writing in QB64?

Answer-25: OPEN "file.txt" FOR OUTPUT AS #1



Question-26. What command reads a line from a file in QB64?

Answer-26: LINE INPUT #1, text$



Question-27. How do you close a file in QB64?

Answer-27: CLOSE #1



Question-28. Can QB64 handle mouse input?

Answer-28: Yes, using _MOUSEINPUT, _MOUSEX, and _MOUSEY.



Question-29. What is the use of GOTO in QB64?

Answer-29: GOTO allows jumping to a specific line label. However, it is discouraged in structured programming.



Question-30. What is IF?THEN used for in QB64?

Answer-30: It is used for conditional execution of statements.



Question-31. How do you declare a subroutine in QB64?

Answer-31: Using SUB SubName and END SUB.



Question-32. What is SELECT CASE used for in QB64?

Answer-32: It is used for multi-way decision-making instead of multiple IF?THEN statements.



Question-33. How do you exit a loop in QB64?

Answer-33: Using EXIT FOR, EXIT DO, or EXIT WHILE.



Question-34. What command sets the screen resolution in QB64?

Answer-34: SCREEN mode (e.g., SCREEN 12 for 640x480 graphics mode).



Question-35. Can QB64 use inline assembly language?

Answer-35: No, QB64 does not support inline assembly.



Question-36. How do you detect a key press in QB64?

Answer-36: Using INKEY$.



Question-37. How do you check if a number is even in QB64?

Answer-37: IF num MOD 2 = 0 THEN PRINT "Even"



Question-38. What is the default numeric type in QB64?

Answer-38: Single-precision floating-point (SINGLE).



Question-39. How do you format numbers in QB64?

Answer-39: Using PRINT USING (e.g., PRINT USING "#.##"; 3.14159).



Question-40. What is _DISPLAY used for in QB64?

Answer-40: _DISPLAY updates the screen only when called, preventing flickering in animations.



Question-41. How do you detect screen resolution in QB64?

Answer-41: _WIDTH and _HEIGHT return the screen dimensions.



Question-42. Can QB64 connect to the internet?

Answer-42: Yes, using external libraries and networking functions.



Question-43. How do you handle errors in QB64?

Answer-43: Using ON ERROR GOTO and RESUME.



Question-44. What is the maximum array size in QB64?

Answer-44: Limited by system memory.



Question-45. Can QB64 work with external libraries?

Answer-45: Yes, QB64 supports dynamic link libraries (DLLs).



Question-46. What command gets the system date in QB64?

Answer-46: DATE$ returns the current system date.



Question-47. How do you pause execution in QB64?

Answer-47: Using SLEEP or INPUT "Press any key to continue"; a$.



Question-48. What command returns the ASCII value of a character in QB64?

Answer-48: ASC("A") returns 65.



Question-49. How do you convert a string to uppercase in QB64?

Answer-49: Using UCASE$().



Question-50. What are some alternatives to QB64?

Answer-50: FreeBASIC, SmallBASIC, and FreeBASIC QB mode.




Tags

Frequently Asked Question and Answer on QB64 (QuickBASIC)

QB64 (QuickBASIC) Interview Questions and Answers in PDF form Online

QB64 (QuickBASIC) Questions with Answers

QB64 (QuickBASIC) Trivia MCQ Quiz

FAQ Questions Sidebar

Related Topics


  • API Testing
  • Python
  • AWS Amazon Web Services
  • Java
  • C++
  • JavaScript
  • C#
  • PHP
  • Swift
  • Ruby
  • Kotlin
  • TypeScript
  • Go Golang
  • Rust
  • SQL
  • R
  • MATLAB
  • Perl
  • Scala
  • Dart
  • Haskell
  • Objective-C
  • Shell Scripting Bash
  • Visual Basic VB
  • Lua
  • Groovy
  • F#
  • Julia
  • COBOL
  • Fortran
  • Assembly Language
  • PL/SQL
  • Scratch
  • D
  • Erlang
  • Elixir
  • Clojure
  • Pascal
  • Ada
  • Lisp Common Lisp, Scheme
  • Prolog
  • Apex Salesforce
  • ActionScript
  • ABAP SAP
  • Racket
  • Nim
  • Crystal
  • Smalltalk
  • VHDL
  • Verilog
  • SASS Syntactically Awesome Style Sheets
  • Less CSS Preprocessor
  • CoffeeScript
  • J Sharp
  • Tcl (Tool Command Language)
  • XQuery
  • XSLT
  • OpenCL
  • CUDA
  • OpenGL Shader Language (GLSL)
  • VBScript
  • Solidity (Blockchain/Smart Contracts)
  • Yaml
  • JSON
  • XML
  • GDScript (Godot Engine)
  • UnrealScript (Unreal Engine)
  • Maple
  • Mathematica
  • Max/MSP
  • AutoLISP
  • LabVIEW
  • ScratchJr
  • AWK
  • sed (Stream Editor)
  • PostScript
  • Xojo
  • Q Sharp
  • Ring
  • ActionScript 3
  • OpenEdge ABL
  • RPG (IBM)
  • Inform
  • Modula-3
  • Rebol
  • Tcl/Tk
  • Haxe
  • SML (Standard ML)
  • Eiffel
  • Chapel
  • Red
  • MUMPS
  • PASCAL ABC
  • Icon
  • BCPL
  • Simula
  • SNOBOL
  • Hack (Meta)
  • PowerShell
  • Batch Script
  • AppleScript
  • Glue
  • Oz
  • Io
  • Mercury
  • Wren
  • Genie
  • PureScript
  • MoonScript
  • Turing
  • ALGOL
  • Seed7
  • Kotlin Native
  • Kotlin Multiplatform
  • Elm
  • PureBasic
  • QB64 (QuickBASIC)
  • Nemerle
  • Ocaml
  • Alloy
  • Cobra
  • Forth
  • Ballerina
  • Deno (JavaScript Runtime)
  • WASM (WebAssembly)
  • Z shell (Zsh)
  • Fish Shell
  • Redscript
  • Felix
  • ReScript
  • Agda
  • Idris
  • Coq
  • SPARK
  • Vala
  • PicoLisp
  • Wolfram Language
  • BASH (Bourne Again Shell)
  • Hy (Lisp-like for Python)
  • Terra
  • Boo
  • ATS
  • K (Kdb+)
  • Picat
  • Nimrod
  • Pawn
  • Papyrus (Bethesda Games)
  • J Programming Language
  • X++
  • MQL4/MQL5 (MetaTrader)
  • Transact-SQL (T-SQL)
  • BASH Shell Scripting

More Subjects


  • Computer Fundamentals
  • Data Structure
  • Programming Technologies
  • Software Engineering
  • Artificial Intelligence and Machine Learning
  • Cloud Computing

All Categories


  • Physics
  • Electronics Engineering
  • Electrical Engineering
  • General Knowledge
  • NCERT CBSE
  • Kids
  • History
  • Industry
  • World
  • Computer Science
  • Chemistry

Can't Find Your Question?

If you cannot find a question and answer in the knowledge base, then we request you to share details of your queries to us Suggest a Question for further help and we will add it shortly in our education database.
© 2025 Copyright InterviewQuizz. Developed by Techgadgetpro.com
Privacy Policy