===برنامج أهلا بالعالم - النسخة القصيرة===<syntaxhighlight lang="QBasic">PRINT "Hello, World"</syntaxhighlight><syntaxhighlight lang="QBasic">CLSPRINT "Hello, World"END</syntaxhighlight>===99 قارورة===<syntaxhighlight lang="QBasic">LET BOTTLES = 99: LET BOTTLES$ = "99": LET BOTTLE$ = " bottles"FOR A = 1 TO 99PRINT BOTTLES$; BOTTLE$; " on the wall, "; BOTTLES$; BOTTLE$; " .
"Hello, World"</syntaxhighlight>Hello, World - Extended version:<syntaxhighlight lang="QBasic">CLSPRINT "Hello, World"END</syntaxhighlight>99 bottles of beer:<syntaxhighlight lang="QBasic">LET BOTTLES = 99: LET BOTTLES$ = "99": LET BOTTLE$ = " bottles"FOR A = 1 TO 99PRINT BOTTLES$; BOTTLE$; " of beer on the wall, "; BOTTLES$; BOTTLE$; " of beer.