Q 1 S!"!e Tr#e $r F"%se
1. In QBASIC, CLS command is used to clear the output screen. Tr#e 2. PRINT 2!"#$% displa&s 2!"#$. Tr#e ". Input de'ice is used to displa& the processed in(ormation. F"%se ). SCR**N 1 has $)+ columns and 2++ ro,s. F"%se -. In LIN* command B is used to dra, a .o/. Tr#e $. 0ard dis1 is a secondar& stora2e de'ice. 3. All the Input and 4utput de'ices are attached to the S&stem unit. 5. In QBASIC, line num.ers that ,e 2i'e should .e ,hole num.ers. Tr#e 6. In QBASIC, output ,ill .e ,ithout 2ap ,hen ,ords are seperated .& comma7,8. F"%se 1+. In QBASIC, LIN* command is used to dra, a line or a .o/ (rom the speci(ied position. Tr#e Tr#e Tr#e

Q 2 F&%% &n !'e (%"n)s
1. In QBASIC, the (i2ures are dra,n in 2raphics ,ith an in'isi.le *+$&n!er** 2. In QBASIC, 9RA: 0-+% command will draw a line in upward direction towards the
left side.

". *In+#!** de'ice is used to (eed data into a computer. ). In QBASIC, SCR**N 2 is called **'&,'** resolution 2raphic mode.
Pa2e 1 o( -

1. An Interpeter is a computer pro2ram that e/ecutes instructions . :rite the s&nta/ o( PRINT Statement. 5. direction steps% -. Ans. BASIC = Be2inners> All Purpose S&m. :hat is a SCR**N Command. PRINT Te/t% $.rite the commands and a statement is called S&nta/. S/n!"0 $. :rite the (ull (orm o( o( ro. PRINT 1$22"n3 ? Line No.ith the *en!er** 1e&. Ans. :hat is an Interpreter. This command is used to chan2e the resolutions o( the screen i.s and columns on the screen. to . Q 3 Answer !'e . Ans. Pa2e 2 o( - .ritten in a pro2rammin2 lan2ua2e.e. 2. The rule that . All statements in BASIC must terminate . :hat is S&nta/. S&stem Bnit.e (ollo. as SCR**N 2 2raphics are onl& in . */amples o( Primar& Stora2e de'ices are @ RAA. This command is used (or SCR**N + and SCR**N 1onl&. :rite the (unction o( a C4L4R command. Stora2e Bnit and 4utput Bnit. Ans. S/n!"0 ? 9ra.olic Instruction Code C4B4L ? Common Business 4riented Lan2ua2e <4RTRAN ? <ormula Translation ". 3.-. Ans. C4B4L and <4RTRAN. 1.$%%$w&n. This command is used to chan2e the colour o( te/t and 2raphics. R4A */amples o( Secondar& Stora2e de'cies are @ 0ard 9is1. S/n!"0 ? SCR**N n :here n is the choice o( the mode 7+. :rite the main components o( computer. Ans. Ans. Ans.lac1 and . <lopp& 9is1. :rite the e/amples o( Primar& and Secondar& Stora2e de'ice. :rite the s&nta/ o( 9RA: command. The main components o( computer are Input Bnit. or 28 ). Aa2netic tapes 6.hite. Ans. to chan2e the num.

e on the same line.eren!&"!e !'e . 9RA: *)+% and 9RA: <)+% Ans.ords or num.ill . Pa2e 3 o( - . The de'ices on .ith the e/ample.e 2i'en to a computer throu2h an INPBT BNIT.een t. Input and 4utput Bnit.1+. C$22" &n PRINT S!"!e2en!5 In PRINT statement. a.ill appear on the same line.ill send the data to the s&stem unit.oard.. E0"2+%e= 1+ PRINT %0*LL4%D%<RI*N9S% 2+ *N9 4utput .ill . 9e(ine S&stem Bnit. This unit .et. E0"2+%e= 1+ PRINT %0*LL4%. Fo&stic1. c. Ans.ers are separated . Aouse.ers then the output .& semicolon the output .et.$%%$w&n. Q 4 4&.ords or num.ithout a 2ap. O#!+#! Un&! ? :hen data or in(ormation is 2i'en to the S&stem Bnit throu2h the input Bnit.e 0*LL4 <RI*N9S Se2&1$%$n &n PRINT S!"!e2en!5 I( the .e 0*LL4<RI*N9S .. Ans. the processed in(ormation is sent to the 4BTPBT BNIT. DRAW “E40” Will draw a diagonal line by 40 steps in the upward direction towards the right side.o .ill .%<RI*N9S% 2+ *N9 4utput . . Ans. */amples@ Ee&. 1.een. Comma and Semicolon in PRINT statement . 2.ith Conal 2aps in . .hen comma is used . . S&stem Bnit ? Aost parts o( the computer are (ound in a .hich processed in(ormation is displa&ed are called 4utput de'ices.o/ called S&stem Bnit. In+#! Un&! ? 9ata and in(ormation need to . DRAW “F40” Will draw a diagonal line by 40 steps in the downward direction towards the right side. The de'ices used to (eed data or in(ormation are called Input de'ices. Scanner etc.

d. . CIRCLE 1$22"n3@ CIRCL* 7&.e used . Ans. CIRCL* Command ? This command is used to dra. a . c & is the column num. r as the radius o( the circle and c is (or the colour. a circle (rom the 2i'en Position as the centre and (or the 2i'en and a is the ro. 2.e 2i'e to the computer must . Q . LINE 1$22"n3 ? This command is used to dra. num. S/n!"0 ? LIN* 7&. #n SCREEN 1' we can change the colour o( graphics. This screen has 20 colu!ns and 200 rows. num. SCREEN 2 This screen has "40 colu!ns and 200 rows./ !'e err$rs "n3 wr&!e !'e 1$rre1! +r$.o/. < is 2i'en . Ans. ". B is 2i'en .. SCR**N 1 and SCR**N 2 command. */plain LIN* command .er o( end position.ith the s&nta/. :rite the rules o( .er and / is the ro. r. */plain CIRCL* command .ith the s&nta/. o( startin2 position. 2. 2. / is the ro. All instructions must start .ritin2 a QBASIC pro2ram. num.e in capital letters. S/n!"0 $.o/ (rom the speci(ied position. .er.ith B to (ill the . ". /8 ? 7.ords must . #n SCREEN 2' we can not change the colour o( graphics. /8 . is the column num. All the instructions that .*/amples@ Aonitor. #t is a $ediu! Resolution %raphics $ode.r"2 Pa2e 4 o( - .ant to dra. SCREEN 1 and SCREEN 2 SCREEN 1 C speci(ies the colour.o/.ers. a line or a .hen &ou . Ans. a8.hile 2i'in2 instructions. C. B< & is the column num. Q 6 I3en!&. R#%es ? 1. #t is a &igh Resolution %raphics $ode.ith the num.E0+%"&n &n 3e!"&% 1. Appropriate BASIC lan2ua2e . 7a8 Ans.

r"2 1+ PRINT )!-#%D )!2+ PRINT " "+ PRINT TAB7$+8D :elcome % )+ PRINT 5!)% -+ PRINT hello% D ton&% $+ PRINT 2+H)+ 5!) helloton& $+ )!-#2+ " :elcome Pa2e .o( - . 9RA: B)+%D%9)+% )+ 9RA: *-$% -+ dra. C4L4BR " "+. r$+% $+ end 1+ SCR**N 1 2+ C4L4R " "+ 9RA: B)+D9)+% )+ 9RA: *-$% -+ 9RA: R$+% $+ *N9 Q 7 8r&!e !'e $#!+#! .") 1+. PRINT 6H2# )+ PRINT TABI2+JD Aonitor% -+ PRINT )!" # $!2% $+ PRINT computer 1+ CLS 2+ PRINT 1$G) "+ PRINT 6H2#% )+ PRINT TAB72+8D Aonitor% -+ PRINT )!" # $!2% $+ PRINT computer% () 1+. PRINT 1$G) "+. SCR**N 1 2+.$r !'e .$%%$w&n. cls 2+. 9ASIC Pr$.